messages.setChatAvailableReactions
Ändern Sie den Satz an Nachrichtenreaktionen », die in einer bestimmten Gruppe, Supergruppe oder einem bestimmten Kanal verwendet werden können
Ändern Sie den Satz von [Nachrichtenreaktionen »](https://core.telegram.org/api/reactions.md), die in einer bestimmten Gruppe, Supergruppe oder einem bestimmten Kanal verwendet werden können
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
peer | InputPeer | Ja | Group where to apply changes |
available_reactions | ChatReactions | Ja | Zulässige Reaktions-Emojis |
reactions_limit | int | Nein | This flag may be used to impose a custom limit of unique reactions (i.e. a customizable version of [appConfig.reactions_uniq_max](https://core.telegram.org/api/config.md#reactions-uniq-max)); this field and the other info set by the method will then be available to users in [channelFull](https://core.telegram.org/constructor/channelFull.md) and [chatFull](https://core.telegram.org/constructor/chatFull.md). If this flag is not set, the previously configured `reactions_limit` will not be altered. |
paid_enabled | Bool | Nein | If this flag is set and a [Bool](https://core.telegram.org/type/Bool.md) is passed, the method will enable or disable [paid message reactions »](https://core.telegram.org/api/reactions.md#paid-reactions). If this flag is not set, the previously stored setting will not be changed. |
Antworten
Updates
MTProto RPC
- 400 · CHAT_ADMIN_REQUIRED — Um dies zu tun, müssen Sie in diesem Chat Administrator sein.
- 400 · CHAT_NOT_MODIFIED — An den Chat-Informationen wurden keine Änderungen vorgenommen, da die neuen Informationen, die Sie übergeben haben, mit den aktuellen Informationen identisch sind.
- 400 · DOCUMENT_INVALID – Das angegebene Dokument ist ungültig.
- 400 · LIMIT_PER_POST_INVALID – Der angegebene reactions_limit-Wert ist ungültig.
- 400 · PEER_ID_INVALID – Die angegebene Peer-ID ist ungültig.
- 400 · REACTION_INVALID — Die angegebene Reaktion ist ungültig.