api.setChatNotificationSettings()
Changes the notification settings of a chat. Notification settings of a chat with the current user (Saved Messages) can't be changed
Parameters
SetChatNotificationSettingsParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
chatId | number | Chat identifier |
notificationSettings | New notification settings for the chat. If the chat is muted for more than 1 week, it is considered to be muted forever |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'setChatNotificationSettings' | 'error'
airgram: Airgram
request: {
method: 'setChatNotificationSettings'
params: SetChatNotificationSettingsParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}