Airgram

Guides
/
/
Methods

api.getChatListsToAddChat()

Returns chat lists to which the chat can be added. This is an offline request

Parameters GetChatListsToAddChatParams:

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