messages.CreateForumTopic#

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

Create a forum topic.

Details:
  • Layer: 224

  • ID: 2F98C3D5

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

  • title (str) – Topic title (maximum UTF-8 length: 128)

  • random_id (int 64-bit) – Unique client message ID to prevent duplicate sending of the same event

  • title_missing (bool, optional)

  • icon_color (int 32-bit, optional) – If no custom emoji icon is specified, specifies the color of the fallback topic icon (RGB), one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F.

  • icon_emoji_id (int 64-bit, optional) – ID of 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.

  • send_as (InputPeer, optional) – Create the topic as the specified peer

Returns:

Updates