telegram api method · layer 215 · #34435f2d
channels.deleteTopicHistory
not in the latest layer 229: last defined in layer 215
definition
channels.deleteTopicHistory#34435f2d channel:InputChannel top_msg_id:int = messages.AffectedHistory;
parameters
| name | type | description |
|---|---|---|
channel | InputChannel | |
top_msg_id | int |
returns
errors (5)
| 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 | TOPIC_ID_INVALID | The specified topic ID is invalid. |
| 403 | CHAT_WRITE_FORBIDDEN | You can't write in this chat. |
history
present in layers 148–215
| id | layers |
|---|---|
| #34435f2d | 148–215 |