Layer 220
method Users
messages.deleteChat#5bd0ee50 chat_id:long = Bool;

Parameters

Name Type Description
ChatId long Chat ID

Returns

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.

Gogram Example

// MessagesDeleteChat - positional arguments
result, err := client.MessagesDeleteChat(int64(0))
if err != nil {
    // handle error
}
// result is *tg.Bool