Airgram

Guides
/
/
Methods

api.checkCreatedPublicChatsLimit()

Checks whether the maximum number of owned public chats has been reached. Returns corresponding error if the limit was reached

Parameters CheckCreatedPublicChatsLimitParams:

NameTypeDescription
type Type of the public chats, for which to check the limit
Returns ApiResponse interface:
interface ApiResponse {
  _: 'checkCreatedPublicChatsLimit' | 'error'
  airgram: Airgram
  request: {
    method: 'checkCreatedPublicChatsLimit'
    params: CheckCreatedPublicChatsLimitParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}