api.createNewBasicGroupChat()
Creates a new basic group and sends a corresponding messageBasicGroupChatCreate. Returns the newly created chat
Parameters
CreateNewBasicGroupChatParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
userIds | number[] | Identifiers of users to be added to the basic group |
title | string | 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>
}