messages.forwardMessage

Forwards single messages.

{schema}

Parameters

Name Type Description
peer InputPeer User or chat where a message will be forwarded
id int Forwarded message ID
random_id long Unique client message ID required to prevent message resending

Result

messages.StatedMessage

Possible errors

Code Type Description
400 CHAT_ID_INVALID The provided chat id is invalid
400 MESSAGE_ID_INVALID The provided message id is invalid
400 PEER_ID_INVALID The provided peer id is invalid
400 YOU_BLOCKED_USER You blocked this user