Link Search Menu Expand Document

Constructor: messageFwdHeader

Back to constructors index

Info about a forwarded message

Attributes:

NameTypeRequiredDescription
importedBoolOptionalWhether this message was imported from a foreign chat service, click here for more info »
saved_outBoolOptional
from_idPeerOptionalThe ID of the user that originally sent the message
from_namestringOptionalThe name of the user that originally sent the message
dateintYesWhen was the message originally sent
channel_postintOptionalID of the channel message that was forwarded
post_authorstringOptionalFor channels and if signatures are enabled, author of the channel message
saved_from_peerPeerOptionalOnly for messages forwarded to the current user (inputPeerSelf), full info about the user/channel that originally sent the message
saved_from_msg_idintOptionalOnly for messages forwarded to the current user (inputPeerSelf), ID of the message that was forwarded from the original user/channel
saved_from_idPeerOptional
saved_from_namestringOptional
saved_dateintOptional
psa_typestringOptionalPSA type

Type: MessageFwdHeader

Example:

$messageFwdHeader = ['_' => 'messageFwdHeader', 'imported' => Bool, 'saved_out' => Bool, 'from_id' => Peer, 'from_name' => 'string', 'date' => int, 'channel_post' => int, 'post_author' => 'string', 'saved_from_peer' => Peer, 'saved_from_msg_id' => int, 'saved_from_id' => Peer, 'saved_from_name' => 'string', 'saved_date' => int, 'psa_type' => 'string'];