messages.CreateForumTopic

class pyrogram.raw.functions.messages.CreateForumTopic

{schema}

Details:
  • Layer: 223

  • 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_missingtrue (optional)
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── titlestring
├── icon_colorint (optional)
├── icon_emoji_idlong (optional)
├── random_idlong
└── send_asInputPeer (optional)
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_idlong
├── InputPeerUser
│ ├── user_idlong
│ └── access_hashlong
│ ├── channel_idlong
│ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── channel_idlong

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),
    )
)