Airgram

Guides
/
/
Methods

api.createBasicGroupChat()

Returns an existing chat corresponding to a known basic group

Parameters CreateBasicGroupChatParams:

NameTypeDescription
basicGroupIdnumber Basic group identifier
forceboolean If true, the chat will be created without network request. In this case all information about the chat except its type, title and photo can be incorrect
Returns ApiResponse interface:
interface ApiResponse {
  _: 'createBasicGroupChat' | 'error'
  airgram: Airgram
  request: {
    method: 'createBasicGroupChat'
    params: CreateBasicGroupChatParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}