channels.CreateForumTopic#

class pyrogram.raw.functions.channels.CreateForumTopic#

Create a forum topic; requires manage_topics rights.

Details:
  • Layer: 158

  • ID: F40C0224

Parameters:
  • channel (InputChannel) – The forum.

  • 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.

  • 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