messages.deleteTopicHistory #

Delete message history of a forum topic

Layer 223

messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory;
---functions---
messages.deleteTopicHistory#d2816f10 peer:InputPeer top_msg_id:int = messages.AffectedHistory;

Parameters #

NameTypeDescription
peerInputPeerThe supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located.
top_msg_idintTopic ID

Result #

messages.AffectedHistory

Both users and bots can use this method #

Possible errors #

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.

Forum topics #

Telegram allows creating forums with multiple distinct topics.