Airgram

Guides
/
/
Methods

api.toggleChatDefaultDisableNotification()

Changes the value of the default disable_notification parameter, used when a message is sent to a chat

Parameters ToggleChatDefaultDisableNotificationParams:

NameTypeDescription
chatIdnumber Chat identifier
defaultDisableNotificationboolean New value of default_disable_notification
Returns ApiResponse interface:
interface ApiResponse {
  _: 'toggleChatDefaultDisableNotification' | 'error'
  airgram: Airgram
  request: {
    method: 'toggleChatDefaultDisableNotification'
    params: ToggleChatDefaultDisableNotificationParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}