messages.EditForumTopic#

class pyrogram.raw.functions.messages.EditForumTopic[source]#

Edit forum topic.

Details:
  • Layer: 224

  • ID: CECC1134

Parameters:
  • peer (InputPeer) – The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located.

  • topic_id (int 32-bit) – Topic ID

  • title (str, optional) – If present, will update the topic title (maximum UTF-8 length: 128).

  • icon_emoji_id (int 64-bit, optional) – If present, updates the custom emoji used as topic icon. Telegram Premium users can use any custom emoji, other users can only use the custom emojis contained in the inputStickerSetEmojiDefaultTopicIcons emoji pack. Pass 0 to switch to the fallback topic icon.

  • closed (bool, optional) – If present, will update the open/closed status of the topic.

  • hidden (bool, optional) – If present, will hide/unhide the topic (only valid for the “General” topic, id=1).

Returns:

Updates