messages.SetChatAvailableReactions

class pyrogram.raw.functions.messages.SetChatAvailableReactions

Change the set of message reactions » that can be used in a certain group, supergroup or channel

Details:
  • Layer: 223

  • ID: 864B2581

Parameters:
  • peer (InputPeer) – Group where to apply changes

  • available_reactions (ChatReactions) – Allowed reaction emojis

  • reactions_limit (int 32-bit, optional) – This flag may be used to impose a custom limit of unique reactions (i.e. a customizable version of appConfig.reactions_uniq_max); this field and the other info set by the method will then be available to users in channelFull and chatFull. If this flag is not set, the previously configured reactions_limit will not be altered.

  • paid_enabled (bool, optional) – If this flag is set and a Bool is passed, the method will enable or disable paid message reactions ». If this flag is not set, the previously stored setting will not be changed.

Returns:

Updates

TL Schema

messages.setChatAvailableReactions#864b2581
flags:#
peer:InputPeer
available_reactions:ChatReactions
reactions_limit:flags.0?int
paid_enabled:flags.1?Bool

= Updates

Parameter Tree

SetChatAvailableReactions
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── available_reactionsChatReactions
│ ├── ChatReactionsNone
│ ├── ChatReactionsAll
│ │ └── allow_customtrue (optional)
│ └── ChatReactionsSome
│ └── reactionsVector < Reaction >
│ ├── ReactionEmpty
│ ├── ReactionEmoji
│ │ └── emoticonstring
│ ├── ReactionCustomEmoji
│ │ └── document_idlong
│ └── ReactionPaid
├── reactions_limitint (optional)
└── paid_enabledBool (optional)

Example

await app.invoke(
    SetChatAvailableReactions(
        peer=await app.resolve_peer(chat_id),
        available_reactions=ChatReactionsNone(),
        reactions_limit=0,
        paid_enabled=None,
    )
)