deleteForumTopic¶
Returns: bool
- class litegram.methods.delete_forum_topic.DeleteForumTopic(*, chat_id: ChatIdUnion, message_thread_id: int, **extra_data: Any)[source]¶
Use this method to delete a forum topic along with all its messages in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the can_delete_messages administrator rights. Returns
Trueon success.Source: https://core.telegram.org/bots/api#deleteforumtopic
- chat_id: ChatIdUnion¶
Unique identifier for the target chat or username of the target supergroup (in the format
@supergroupusername)
Usage¶
As bot method¶
result: bool = await bot.delete_forum_topic(...)
Method as object¶
Imports:
from litegram.methods.delete_forum_topic import DeleteForumTopicalias:
from litegram.methods import DeleteForumTopic
With specific bot¶
result: bool = await bot(DeleteForumTopic(...))
As reply into Webhook in handler¶
return DeleteForumTopic(...)