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.

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
payments.toggleChatStarGiftNotifications#60eaefa1 flags:# enabled:flags.0?true peer:InputPeer = Bool;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
enabledflags.0?trueWhether to enable or disable reception of notifications in the form of messageActionStarGiftUnique and messageActionStarGift service messages from the channel.
peerInputPeerThe channel for which to receive or not receive notifications.

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

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.