Skip to main content

messages.sendScreenshotNotification

Notify the other user in a private chat that a screenshot of the chat was taken

func (c *Client) MessagesSendScreenshotNotification(ctx context.Context, request *MessagesSendScreenshotNotificationRequest) (UpdatesClass, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.MessagesSendScreenshotNotification(ctx, &tg.MessagesSendScreenshotNotificationRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})

Parameters

NameTypeRequiredDescription
PeerInputPeerClassyesOther user
ReplyToInputReplyToClassyesIndicates the message that was screenshotted (the specified message ID can also be 0 to avoid indicating any specific message).
RandomIDint64yesRandom ID to avoid message resending

Returns

UpdatesClass

Possible errors

CodeTypeDescription
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.

References