api.removeNotification()
Removes an active notification from notification list. Needs to be called only if the notification is removed by the current user
Parameters
RemoveNotificationParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
notificationGroupId | number | Identifier of notification group to which the notification belongs |
notificationId | number | Identifier of removed notification |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'removeNotification' | 'error'
airgram: Airgram
request: {
method: 'removeNotification'
params: RemoveNotificationParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}