MessageFwdHeader

class pyrogram.raw.types.MessageFwdHeader

Info about a forwarded message

Constructor of MessageFwdHeader.

Details:
  • Layer: 223

  • ID: 4E4DF4BB

Parameters:
  • date (int 32-bit) – When was the message originally sent

  • imported (bool, optional) – Whether this message was imported from a foreign chat service, click here for more info »

  • saved_out (bool, optional) – Only for messages forwarded to saved messages », set if the original message was outgoing (though the message may have been originally outgoing even if this flag is not set, if from_id points to the current user).

  • from_id (Peer, optional) – The ID of the user that originally sent the message

  • from_name (str, optional) – The name of the user that originally sent the message

  • channel_post (int 32-bit, optional) – ID of the channel message that was forwarded

  • post_author (str, optional) – For channels and if signatures are enabled, author of the channel message

  • saved_from_peer (Peer, optional) – Only for messages forwarded to saved messages », contains the dialog where the message was originally sent.

  • saved_from_msg_id (int 32-bit, optional) – Only for messages forwarded to saved messages », contains the original ID of the message in saved_from_peer.

  • saved_from_id (Peer, optional) – Only for forwarded messages reforwarded to saved messages », contains the sender of the original message (i.e. if user A sends a message, then user B forwards it somewhere, then user C saves it to saved messages, this field will contain the ID of user B and from_id will contain the ID of user A).

  • saved_from_name (str, optional) – Only for forwarded messages from users with forward privacy enabled, sent by users with forward privacy enabled, reforwarded to saved messages », contains the sender of the original message (i.e. if user A (fwd privacy enabled) sends a message, then user B (fwd privacy enabled) forwards it somewhere, then user C saves it to saved messages, this field will contain the name of user B and from_name will contain the name of user A).

  • saved_date (int 32-bit, optional) – Only for forwarded messages reforwarded to saved messages », indicates when was the original message sent (i.e. if user A sends a message @ unixtime 1, then user B forwards it somewhere @ unixtime 2, then user C saves it to saved messages @ unixtime 3, this field will contain 2, date will contain 1 and the date of the containing message will contain 3).

  • psa_type (str, optional) – PSA type

TL Schema

messageFwdHeader#4e4df4bb
flags:#
imported:flags.7?true
saved_out:flags.11?true
from_id:flags.0?Peer
from_name:flags.5?string
date:int
channel_post:flags.2?int
post_author:flags.3?string
saved_from_peer:flags.4?Peer
saved_from_msg_id:flags.4?int
saved_from_id:flags.8?Peer
saved_from_name:flags.9?string
saved_date:flags.10?int
psa_type:flags.6?string

= MessageFwdHeader

Parameter Tree

MessageFwdHeader
├── importedtrue (optional)
├── saved_outtrue (optional)
├── from_idPeer (optional)
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
├── from_namestring (optional)
├── dateint
├── channel_postint (optional)
├── post_authorstring (optional)
├── saved_from_peerPeer (optional)
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
├── saved_from_msg_idint (optional)
├── saved_from_idPeer (optional)
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
├── saved_from_namestring (optional)
├── saved_dateint (optional)
└── psa_typestring (optional)

Example

MessageFwdHeader(
    date=0,
)