telegram api method · layer 229 · #a1405817
messages.sendScreenshotNotification
Notify the other user in a private chat that a screenshot of the chat was taken
definition
messages.sendScreenshotNotification#a1405817 peer:InputPeer reply_to:InputReplyTo random_id:long = Updates;
parameters
| name | type | description |
|---|---|---|
peer | InputPeer | Other user |
reply_to | InputReplyTo | Indicates the message that was screenshotted (the specified message ID can also be 0 to avoid indicating any specific message). |
random_id | long | Random ID to avoid message resending |
returns
errors (7)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 400 | INPUT_USER_DEACTIVATED | The specified user was deleted. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | REPLY_MESSAGE_ID_INVALID | The specified reply-to message ID is invalid. |
| 400 | STORY_ID_INVALID | The specified story ID is invalid. |
| 400 | YOU_BLOCKED_USER | You blocked this user. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 70–229 · constructor id changed 1×
| id | layers |
|---|---|
| #c97df020 | 70–159 |
| #a1405817 | 160–229 |