api.toggleChatDefaultDisableNotification()
Changes the value of the default disable_notification parameter, used when a message is sent to a chat
Parameters
ToggleChatDefaultDisableNotificationParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
chatId | number | Chat identifier |
defaultDisableNotification | boolean | 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>
}