Airgram

Guides
/
/
Methods

api.createNewBasicGroupChat()

Creates a new basic group and sends a corresponding messageBasicGroupChatCreate. Returns the newly created chat

Parameters CreateNewBasicGroupChatParams:

NameTypeDescription
userIdsnumber[] Identifiers of users to be added to the basic group
titlestring Title of the new basic group; 1-128 characters
Returns ApiResponse interface:
interface ApiResponse {
  _: 'createNewBasicGroupChat' | 'error'
  airgram: Airgram
  request: {
    method: 'createNewBasicGroupChat'
    params: CreateNewBasicGroupChatParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}