Airgram

Guides
/
/
Methods

api.sendChatScreenshotTakenNotification()

Sends a notification about a screenshot taken in a chat. Supported only in private and secret chats

Parameters SendChatScreenshotTakenNotificationParams:

NameTypeDescription
chatIdnumber Chat identifier
Returns ApiResponse interface:
interface ApiResponse {
  _: 'sendChatScreenshotTakenNotification' | 'error'
  airgram: Airgram
  request: {
    method: 'sendChatScreenshotTakenNotification'
    params: SendChatScreenshotTakenNotificationParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}