payments.toggleChatStarGiftNotifications

Enables or disables the reception of notifications every time a gift » is received by the specified channel, can only be invoked by admins with post_messages admin rights.

 Method schema is available as of layer 198. Switch »

Parameters

Name Type Description
flags # Flags, see TL conditional fields
enabled flags.0?true Whether to enable or disable reception of notifications in the form of messageActionStarGiftUnique and messageActionStarGift service messages from the channel.
peer InputPeer The channel for which to receive or not receive notifications.

Result

Bool

Only users can use this method

Possible errors

Code Type Description
400 PEER_ID_INVALID The provided peer id is invalid.

Related pages

messageActionStarGiftUnique

A gift » was upgraded to a collectible gift ».

messageActionStarGift

You received a gift, see here » for more info.

Telegram Gifts

Users can send Gifts to their friends. The recipients of gifts can display them on their profile pages or turn them into Telegram Stars ». Telegram Stars can be used for many things, including supporting creators and buying services in mini apps.

chatAdminRights

Represents the rights of an admin in a channel/supergroup.