api.getGroupsInCommon()
Returns a list of common group chats with a given user. Chats are sorted by their type and creation date
Parameters
GetGroupsInCommonParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
userId | number | User identifier |
offsetChatId | number | Chat identifier starting from which to return chats; use 0 for the first request |
limit | number | The maximum number of chats to be returned; up to 100 |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'getGroupsInCommon' | 'error'
airgram: Airgram
request: {
method: 'getGroupsInCommon'
params: GetGroupsInCommonParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}