Airgram

Guides
/
/
Methods

api.setChatTheme()

Changes the chat theme. Supported only in private and secret chats

Parameters SetChatThemeParams:

NameTypeDescription
chatIdnumber Chat identifier
themeNamestring Name of the new chat theme; pass an empty string to return the default theme
Returns ApiResponse interface:
interface ApiResponse {
  _: 'setChatTheme' | 'error'
  airgram: Airgram
  request: {
    method: 'setChatTheme'
    params: SetChatThemeParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}