unbanChatSenderChat¶
Returns: bool
- class litegram.methods.unban_chat_sender_chat.UnbanChatSenderChat(*, chat_id: ChatIdUnion, sender_chat_id: int, **extra_data: Any)[source]¶
Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights. Returns
Trueon success.Source: https://core.telegram.org/bots/api#unbanchatsenderchat
- chat_id: ChatIdUnion¶
Unique identifier for the target chat or username of the target channel (in the format
@channelusername)
Usage¶
As bot method¶
result: bool = await bot.unban_chat_sender_chat(...)
Method as object¶
Imports:
from litegram.methods.unban_chat_sender_chat import UnbanChatSenderChatalias:
from litegram.methods import UnbanChatSenderChat
With specific bot¶
result: bool = await bot(UnbanChatSenderChat(...))
As reply into Webhook in handler¶
return UnbanChatSenderChat(...)