messages.CreateForumTopic¶
- class pyrogram.raw.functions.messages.CreateForumTopic[source]¶
Create a forum topic.
Usable by Users Bots- Details:
Layer:
229ID:
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 (
int64-bit) – Unique client message ID to prevent duplicate sending of the same event. See here » for more info on random ID deduplication and updateMessageID mapping.title_missing (
bool, optional) – If set, the topic has no user-defined title, can only be set for the per-user topics of bot forums; if this field is set, the topic title likely needs to be changed by the bot.icon_color (
int32-bit, optional) – If no custom emoji icon is specified, specifies the color of the fallback topic icon (RGB), one of0x6FB9F0,0xFFD67E,0xCB86DB,0x8EEE98,0xFF93B2, or0xFB6F5F.icon_emoji_id (
int64-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: