telegram api method · layer 229 · #a1405817

messages.sendScreenshotNotification

usable by users

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

nametypedescription
peerInputPeerOther user
reply_toInputReplyToIndicates the message that was screenshotted (the specified message ID can also be 0 to avoid indicating any specific message).
random_idlongRandom ID to avoid message resending

returns

Updates

errors (7)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis 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.
400INPUT_USER_DEACTIVATEDThe specified user was deleted.
400PEER_ID_INVALIDThe provided peer id is invalid.
400REPLY_MESSAGE_ID_INVALIDThe specified reply-to message ID is invalid.
400STORY_ID_INVALIDThe specified story ID is invalid.
400YOU_BLOCKED_USERYou blocked this user.
401AUTH_KEY_UNREGISTEREDThe 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×

idlayers
#c97df02070–159
#a1405817160–229