Airgram

Guides
/
/
Methods

api.setChatPhoto()

Changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires can_change_info administrator right

Parameters SetChatPhotoParams:

NameTypeDescription
chatIdnumber Chat identifier
photo New chat photo; pass null to delete the chat photo
Returns ApiResponse interface:
interface ApiResponse {
  _: 'setChatPhoto' | 'error'
  airgram: Airgram
  request: {
    method: 'setChatPhoto'
    params: SetChatPhotoParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}