Airgram

Guides
/
/
Methods

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:

NameTypeDescription
notificationGroupIdnumber Identifier of notification group to which the notification belongs
notificationIdnumber 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>
}