Airgram

Guides
/
/
Methods

api.getGroupsInCommon()

Returns a list of common group chats with a given user. Chats are sorted by their type and creation date

Parameters GetGroupsInCommonParams:

NameTypeDescription
userIdnumber User identifier
offsetChatIdnumber Chat identifier starting from which to return chats; use 0 for the first request
limitnumber 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>
}