Airgram

Guides
/
/
Methods

api.getChat()

Returns information about a chat by its identifier, this is an offline request if the current user is not a bot

Parameters GetChatParams:

NameTypeDescription
chatIdnumber Chat identifier
Returns ApiResponse interface:
interface ApiResponse {
  _: 'getChat' | 'error'
  airgram: Airgram
  request: {
    method: 'getChat'
    params: GetChatParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}