Layer 224
method Users Bots
messages.deleteTopicHistory#d2816f10 peer:InputPeer top_msg_id:int = messages.AffectedHistory;

Parameters

Name Type Description
Peer InputPeer The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located.
TopMsgId int Topic ID

Gogram Example

// MessagesDeleteTopicHistory - positional arguments
result, err := client.MessagesDeleteTopicHistory(&tg.InputPeerUser{UserID: int64(777000)}, 42)
if err != nil {
    // handle error
}
// result is *tg.MessagesAffectedHistory

Possible Errors

Code Type Description
400 CHANNEL_INVALID The provided channel is invalid.