Layer 224
MessagesDeleteChat
Delete a chat
method
Users
messages.deleteChat#5bd0ee50 chat_id:long = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| ChatId | long | Chat ID |
Returns
BoolGogram Example
// MessagesDeleteChat - positional arguments result, err := client.MessagesDeleteChat(int64(1234567890)) if err != nil { // handle error } // result is *tg.Bool
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHAT_ADMIN_REQUIRED | You must be an admin in this chat to do this. |
| 400 | CHAT_ID_INVALID | The provided chat id is invalid. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |