messages.CreateForumTopic

class pyrogram.raw.functions.messages.CreateForumTopic

{schema}

Details:
  • Layer: 227

  • ID: 2F98C3D5

Parameters:
  • peer (InputPeer)

  • title (str)

  • random_id (int 64-bit)

  • title_missing (bool, optional)

  • icon_color (int 32-bit, optional)

  • icon_emoji_id (int 64-bit, optional)

  • send_as (InputPeer, optional)

Returns:

Updates

TL Schema

messages.createForumTopic#2f98c3d5
flags:#
title_missing:flags.4?true
peer:InputPeer
title:string
icon_color:flags.0?int
icon_emoji_id:flags.3?long
random_id:long
send_as:flags.2?InputPeer

= Updates

Parameter Tree

CreateForumTopic
├── title_missing → true (optional)
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── title → string
├── icon_color → int (optional)
├── icon_emoji_id → long (optional)
├── random_id → long
└── send_as → InputPeer (optional)
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_id → long
├── InputPeerUser
│ ├── user_id → long
│ └── access_hash → long
│ ├── channel_id → long
│ └── access_hash → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── user_id → long
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_id → int
└── channel_id → long

Example

await app.invoke(
    CreateForumTopic(
        title_missing=None,
        peer=await app.resolve_peer(chat_id),
        title="text",
        icon_color=0,
        icon_emoji_id=0,
        random_id=app.rnd_id(),
        send_as=await app.resolve_peer(chat_id),
    )
)