getChat

Returns: ChatFullInfo

class litegram.methods.get_chat.GetChat(*, chat_id: ChatIdUnion, **extra_data: Any)[source]

Use this method to get up-to-date information about the chat. Returns a litegram.types.chat_full_info.ChatFullInfo object on success.

Source: https://core.telegram.org/bots/api#getchat

chat_id: ChatIdUnion

Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)

Usage

As bot method

result: ChatFullInfo = await bot.get_chat(...)

Method as object

Imports:

  • from litegram.methods.get_chat import GetChat

  • alias: from litegram.methods import GetChat

With specific bot

result: ChatFullInfo = await bot(GetChat(...))