Layer 220
method Users
messages.sendScreenshotNotification#a1405817 peer:InputPeer reply_to:InputReplyTo random_id:long = Updates;

Parameters

Name Type Description
Peer InputPeer Other user
ReplyTo InputReplyTo Indicates the message that was screenshotted (the specified message ID can also be 0 to avoid indicating any specific message).
RandomId long Random ID to avoid message resending

Returns

Updates

Possible Errors

Code Type Description
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.

Gogram Example

// MessagesSendScreenshotNotification - positional arguments
result, err := client.MessagesSendScreenshotNotification(&tg.InputPeerUser{UserID: int64(123456789)}, &tg.InputReplyToMessage{ReplyToMsgID: 123}, int64(0))
if err != nil {
    // handle error
}
// result is *tg.Updates