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
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Other user |
ReplyTo | InputReplyToClass | yes | Indicates the message that was screenshotted (the specified message ID can also be 0 to avoid indicating any specific message). |
RandomID | int64 | yes | Random ID to avoid message resending |
Returns
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. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.sendScreenshotNotification#a1405817