telegram api method · layer 215 · #f40c0224
channels.createForumTopic
not in the latest layer 229: last defined in layer 215
definition
channels.createForumTopic#f40c0224 flags:# channel:InputChannel title:string icon_color:flags.0?int icon_emoji_id:flags.3?long random_id:long send_as:flags.2?InputPeer = Updates;
parameters
| name | type | description |
|---|---|---|
flags | # | |
channel | InputChannel | |
title | string | |
icon_color | int | |
icon_emoji_id | long | |
random_id | long | |
send_as | InputPeer |
returns
errors (7)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 400 | CHANNEL_FORUM_MISSING | This supergroup is not a forum. |
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | DOCUMENT_INVALID | The specified document is invalid. |
| 400 | TOPIC_TITLE_EMPTY | The specified topic title is empty. |
| 403 | CHAT_WRITE_FORBIDDEN | You can't write in this chat. |
| 403 | PREMIUM_ACCOUNT_REQUIRED | A premium account is required to execute this action. |
history
present in layers 148–215
| id | layers |
|---|---|
| #f40c0224 | 148–215 |