tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::message Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::message:
td::td_api::Object td::TlObject

Public Member Functions

 message ()
 
 message (int53 id_, object_ptr< MessageSender > &&sender_id_, int53 chat_id_, object_ptr< MessageSendingState > &&sending_state_, object_ptr< MessageSchedulingState > &&scheduling_state_, bool is_outgoing_, bool is_pinned_, bool is_from_offline_, bool can_be_saved_, bool has_timestamped_media_, bool is_channel_post_, bool is_paid_star_suggested_post_, bool is_paid_ton_suggested_post_, bool contains_unread_mention_, bool contains_unread_poll_votes_, int32 date_, int32 edit_date_, object_ptr< messageForwardInfo > &&forward_info_, object_ptr< messageImportInfo > &&import_info_, object_ptr< messageInteractionInfo > &&interaction_info_, array< object_ptr< unreadReaction > > &&unread_reactions_, object_ptr< factCheck > &&fact_check_, object_ptr< suggestedPostInfo > &&suggested_post_info_, object_ptr< MessageReplyTo > &&reply_to_, object_ptr< MessageTopic > &&topic_id_, object_ptr< MessageSelfDestructType > &&self_destruct_type_, double self_destruct_in_, double auto_delete_in_, int53 via_bot_user_id_, int53 sender_business_bot_user_id_, int32 sender_boost_count_, string const &sender_tag_, int53 paid_message_star_count_, string const &author_signature_, int64 media_album_id_, int64 effect_id_, object_ptr< restrictionInfo > &&restriction_info_, string const &summary_language_code_, object_ptr< MessageContent > &&content_, object_ptr< ReplyMarkup > &&reply_markup_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

int53 id_
 Message identifier; unique for the chat to which the message belongs.
 
object_ptr< MessageSendersender_id_
 Identifier of the sender of the message.
 
int53 chat_id_
 Chat identifier.
 
object_ptr< MessageSendingStatesending_state_
 The sending state of the message; may be null if the message isn&#x27;t being sent and didn&#x27;t fail to be sent.
 
object_ptr< MessageSchedulingStatescheduling_state_
 The scheduling state of the message; may be null if the message isn&#x27;t scheduled.
 
bool is_outgoing_
 True, if the message is outgoing.
 
bool is_pinned_
 True, if the message is pinned.
 
bool is_from_offline_
 True, if the message was sent because of a scheduled action by the message sender, for example, as away, or greeting service message.
 
bool can_be_saved_
 True, if content of the message can be saved locally.
 
bool has_timestamped_media_
 True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message.
 
bool is_channel_post_
 True, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts.
 
bool is_paid_star_suggested_post_
 True, if the message is a suggested channel post which was paid in Telegram Stars; a warning must be shown if the message is deleted in less than getOption("suggested_post_lifetime_min") seconds after sending.
 
bool is_paid_ton_suggested_post_
 True, if the message is a suggested channel post which was paid in Toncoins; a warning must be shown if the message is deleted in less than getOption("suggested_post_lifetime_min") seconds after sending.
 
bool contains_unread_mention_
 True, if the message contains an unread mention for the current user.
 
bool contains_unread_poll_votes_
 True, if the message contains unread poll votes for the current user.
 
int32 date_
 Point in time (Unix timestamp) when the message was sent; 0 for scheduled messages.
 
int32 edit_date_
 Point in time (Unix timestamp) when the message was last edited; 0 for scheduled messages.
 
object_ptr< messageForwardInfoforward_info_
 Information about the initial message sender; may be null if none or unknown.
 
object_ptr< messageImportInfoimport_info_
 Information about the initial message for messages created with importMessages; may be null if the message isn&#x27;t imported.
 
object_ptr< messageInteractionInfointeraction_info_
 Information about interactions with the message; may be null if none.
 
array< object_ptr< unreadReaction > > unread_reactions_
 Information about unread reactions added to the message.
 
object_ptr< factCheckfact_check_
 Information about fact-check added to the message; may be null if none.
 
object_ptr< suggestedPostInfosuggested_post_info_
 Information about the suggested post; may be null if the message isn&#x27;t a suggested post.
 
object_ptr< MessageReplyToreply_to_
 Information about the message or the story this message is replying to; may be null if none.
 
object_ptr< MessageTopictopic_id_
 Identifier of the topic within the chat to which the message belongs; may be null if none; may change when the chat is converted to a forum or back.
 
object_ptr< MessageSelfDestructTypeself_destruct_type_
 The message&#x27;s self-destruct type; may be null if none.
 
double self_destruct_in_
 Time left before the message self-destruct timer expires, in seconds; 0 if self-destruction isn&#x27;t scheduled yet.
 
double auto_delete_in_
 Time left before the message will be automatically deleted by message_auto_delete_time setting of the chat, in seconds; 0 if never.
 
int53 via_bot_user_id_
 If non-zero, the user identifier of the inline bot through which this message was sent.
 
int53 sender_business_bot_user_id_
 If non-zero, the user identifier of the business bot that sent this message.
 
int32 sender_boost_count_
 Number of times the sender of the message boosted the supergroup at the time the message was sent; 0 if none or unknown. For messages sent by the current user, supergroupFullInfo.my_boost_count must be used instead.
 
string sender_tag_
 Tag of the sender of the message in the supergroup at the time the message was sent; may be empty if none or unknown. For messages sent in basic groups or supergroup administrators, the current custom title or tag must be used instead.
 
int53 paid_message_star_count_
 The number of Telegram Stars the sender paid to send the message.
 
string author_signature_
 For channel posts and anonymous group messages, optional author signature.
 
int64 media_album_id_
 Unique identifier of an album this message belongs to; 0 if none. Only audios, documents, photos and videos can be grouped together in albums.
 
int64 effect_id_
 Unique identifier of the effect added to the message; 0 if none.
 
object_ptr< restrictionInforestriction_info_
 Information about the restrictions that must be applied to the message content; may be null if none.
 
string summary_language_code_
 IETF language tag of the message language on which it can be summarized; empty if summary isn&#x27;t available for the message.
 
object_ptr< MessageContentcontent_
 Content of the message.
 
object_ptr< ReplyMarkupreply_markup_
 Reply markup for the message; may be null if none.
 

Static Public Attributes

static const std::int32_t ID = -1874132956
 Identifier uniquely determining a type of the object.
 

Detailed Description

Describes a message.

Definition at line 38501 of file td_api.h.

Constructor & Destructor Documentation

◆ message() [1/2]

td::td_api::message::message ( )

Describes a message.

◆ message() [2/2]

td::td_api::message::message ( int53  id_,
object_ptr< MessageSender > &&  sender_id_,
int53  chat_id_,
object_ptr< MessageSendingState > &&  sending_state_,
object_ptr< MessageSchedulingState > &&  scheduling_state_,
bool  is_outgoing_,
bool  is_pinned_,
bool  is_from_offline_,
bool  can_be_saved_,
bool  has_timestamped_media_,
bool  is_channel_post_,
bool  is_paid_star_suggested_post_,
bool  is_paid_ton_suggested_post_,
bool  contains_unread_mention_,
bool  contains_unread_poll_votes_,
int32  date_,
int32  edit_date_,
object_ptr< messageForwardInfo > &&  forward_info_,
object_ptr< messageImportInfo > &&  import_info_,
object_ptr< messageInteractionInfo > &&  interaction_info_,
array< object_ptr< unreadReaction > > &&  unread_reactions_,
object_ptr< factCheck > &&  fact_check_,
object_ptr< suggestedPostInfo > &&  suggested_post_info_,
object_ptr< MessageReplyTo > &&  reply_to_,
object_ptr< MessageTopic > &&  topic_id_,
object_ptr< MessageSelfDestructType > &&  self_destruct_type_,
double  self_destruct_in_,
double  auto_delete_in_,
int53  via_bot_user_id_,
int53  sender_business_bot_user_id_,
int32  sender_boost_count_,
string const &  sender_tag_,
int53  paid_message_star_count_,
string const &  author_signature_,
int64  media_album_id_,
int64  effect_id_,
object_ptr< restrictionInfo > &&  restriction_info_,
string const &  summary_language_code_,
object_ptr< MessageContent > &&  content_,
object_ptr< ReplyMarkup > &&  reply_markup_ 
)

Describes a message.

Parameters
[in]id_Message identifier; unique for the chat to which the message belongs.
[in]sender_id_Identifier of the sender of the message.
[in]chat_id_Chat identifier.
[in]sending_state_The sending state of the message; may be null if the message isn&#x27;t being sent and didn&#x27;t fail to be sent.
[in]scheduling_state_The scheduling state of the message; may be null if the message isn&#x27;t scheduled.
[in]is_outgoing_True, if the message is outgoing.
[in]is_pinned_True, if the message is pinned.
[in]is_from_offline_True, if the message was sent because of a scheduled action by the message sender, for example, as away, or greeting service message.
[in]can_be_saved_True, if content of the message can be saved locally.
[in]has_timestamped_media_True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message.
[in]is_channel_post_True, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts.
[in]is_paid_star_suggested_post_True, if the message is a suggested channel post which was paid in Telegram Stars; a warning must be shown if the message is deleted in less than getOption("suggested_post_lifetime_min") seconds after sending.
[in]is_paid_ton_suggested_post_True, if the message is a suggested channel post which was paid in Toncoins; a warning must be shown if the message is deleted in less than getOption("suggested_post_lifetime_min") seconds after sending.
[in]contains_unread_mention_True, if the message contains an unread mention for the current user.
[in]contains_unread_poll_votes_True, if the message contains unread poll votes for the current user.
[in]date_Point in time (Unix timestamp) when the message was sent; 0 for scheduled messages.
[in]edit_date_Point in time (Unix timestamp) when the message was last edited; 0 for scheduled messages.
[in]forward_info_Information about the initial message sender; may be null if none or unknown.
[in]import_info_Information about the initial message for messages created with importMessages; may be null if the message isn&#x27;t imported.
[in]interaction_info_Information about interactions with the message; may be null if none.
[in]unread_reactions_Information about unread reactions added to the message.
[in]fact_check_Information about fact-check added to the message; may be null if none.
[in]suggested_post_info_Information about the suggested post; may be null if the message isn&#x27;t a suggested post.
[in]reply_to_Information about the message or the story this message is replying to; may be null if none.
[in]topic_id_Identifier of the topic within the chat to which the message belongs; may be null if none; may change when the chat is converted to a forum or back.
[in]self_destruct_type_The message&#x27;s self-destruct type; may be null if none.
[in]self_destruct_in_Time left before the message self-destruct timer expires, in seconds; 0 if self-destruction isn&#x27;t scheduled yet.
[in]auto_delete_in_Time left before the message will be automatically deleted by message_auto_delete_time setting of the chat, in seconds; 0 if never.
[in]via_bot_user_id_If non-zero, the user identifier of the inline bot through which this message was sent.
[in]sender_business_bot_user_id_If non-zero, the user identifier of the business bot that sent this message.
[in]sender_boost_count_Number of times the sender of the message boosted the supergroup at the time the message was sent; 0 if none or unknown. For messages sent by the current user, supergroupFullInfo.my_boost_count must be used instead.
[in]sender_tag_Tag of the sender of the message in the supergroup at the time the message was sent; may be empty if none or unknown. For messages sent in basic groups or supergroup administrators, the current custom title or tag must be used instead.
[in]paid_message_star_count_The number of Telegram Stars the sender paid to send the message.
[in]author_signature_For channel posts and anonymous group messages, optional author signature.
[in]media_album_id_Unique identifier of an album this message belongs to; 0 if none. Only audios, documents, photos and videos can be grouped together in albums.
[in]effect_id_Unique identifier of the effect added to the message; 0 if none.
[in]restriction_info_Information about the restrictions that must be applied to the message content; may be null if none.
[in]summary_language_code_IETF language tag of the message language on which it can be summarized; empty if summary isn&#x27;t available for the message.
[in]content_Content of the message.
[in]reply_markup_Reply markup for the message; may be null if none.

Member Function Documentation

◆ store()

void td::td_api::message::store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements td::TlObject.

Member Data Documentation

◆ author_signature_

string td::td_api::message::author_signature_

For channel posts and anonymous group messages, optional author signature.

Definition at line 38578 of file td_api.h.

◆ auto_delete_in_

double td::td_api::message::auto_delete_in_

Time left before the message will be automatically deleted by message_auto_delete_time setting of the chat, in seconds; 0 if never.

Definition at line 38566 of file td_api.h.

◆ can_be_saved_

bool td::td_api::message::can_be_saved_

True, if content of the message can be saved locally.

Definition at line 38528 of file td_api.h.

◆ chat_id_

int53 td::td_api::message::chat_id_

Chat identifier.

Definition at line 38516 of file td_api.h.

◆ contains_unread_mention_

bool td::td_api::message::contains_unread_mention_

True, if the message contains an unread mention for the current user.

Definition at line 38538 of file td_api.h.

◆ contains_unread_poll_votes_

bool td::td_api::message::contains_unread_poll_votes_

True, if the message contains unread poll votes for the current user.

Definition at line 38540 of file td_api.h.

◆ content_

object_ptr<MessageContent> td::td_api::message::content_

Content of the message.

Definition at line 38588 of file td_api.h.

◆ date_

int32 td::td_api::message::date_

Point in time (Unix timestamp) when the message was sent; 0 for scheduled messages.

Definition at line 38542 of file td_api.h.

◆ edit_date_

int32 td::td_api::message::edit_date_

Point in time (Unix timestamp) when the message was last edited; 0 for scheduled messages.

Definition at line 38544 of file td_api.h.

◆ effect_id_

int64 td::td_api::message::effect_id_

Unique identifier of the effect added to the message; 0 if none.

Definition at line 38582 of file td_api.h.

◆ fact_check_

object_ptr<factCheck> td::td_api::message::fact_check_

Information about fact-check added to the message; may be null if none.

Definition at line 38554 of file td_api.h.

◆ forward_info_

object_ptr<messageForwardInfo> td::td_api::message::forward_info_

Information about the initial message sender; may be null if none or unknown.

Definition at line 38546 of file td_api.h.

◆ has_timestamped_media_

bool td::td_api::message::has_timestamped_media_

True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message.

Definition at line 38530 of file td_api.h.

◆ ID

const std::int32_t td::td_api::message::ID = -1874132956
static

Identifier uniquely determining a type of the object.

Definition at line 38644 of file td_api.h.

◆ id_

int53 td::td_api::message::id_

Message identifier; unique for the chat to which the message belongs.

Definition at line 38512 of file td_api.h.

◆ import_info_

object_ptr<messageImportInfo> td::td_api::message::import_info_

Information about the initial message for messages created with importMessages; may be null if the message isn&#x27;t imported.

Definition at line 38548 of file td_api.h.

◆ interaction_info_

object_ptr<messageInteractionInfo> td::td_api::message::interaction_info_

Information about interactions with the message; may be null if none.

Definition at line 38550 of file td_api.h.

◆ is_channel_post_

bool td::td_api::message::is_channel_post_

True, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts.

Definition at line 38532 of file td_api.h.

◆ is_from_offline_

bool td::td_api::message::is_from_offline_

True, if the message was sent because of a scheduled action by the message sender, for example, as away, or greeting service message.

Definition at line 38526 of file td_api.h.

◆ is_outgoing_

bool td::td_api::message::is_outgoing_

True, if the message is outgoing.

Definition at line 38522 of file td_api.h.

◆ is_paid_star_suggested_post_

bool td::td_api::message::is_paid_star_suggested_post_

True, if the message is a suggested channel post which was paid in Telegram Stars; a warning must be shown if the message is deleted in less than getOption("suggested_post_lifetime_min") seconds after sending.

Definition at line 38534 of file td_api.h.

◆ is_paid_ton_suggested_post_

bool td::td_api::message::is_paid_ton_suggested_post_

True, if the message is a suggested channel post which was paid in Toncoins; a warning must be shown if the message is deleted in less than getOption("suggested_post_lifetime_min") seconds after sending.

Definition at line 38536 of file td_api.h.

◆ is_pinned_

bool td::td_api::message::is_pinned_

True, if the message is pinned.

Definition at line 38524 of file td_api.h.

◆ media_album_id_

int64 td::td_api::message::media_album_id_

Unique identifier of an album this message belongs to; 0 if none. Only audios, documents, photos and videos can be grouped together in albums.

Definition at line 38580 of file td_api.h.

◆ paid_message_star_count_

int53 td::td_api::message::paid_message_star_count_

The number of Telegram Stars the sender paid to send the message.

Definition at line 38576 of file td_api.h.

◆ reply_markup_

object_ptr<ReplyMarkup> td::td_api::message::reply_markup_

Reply markup for the message; may be null if none.

Definition at line 38590 of file td_api.h.

◆ reply_to_

object_ptr<MessageReplyTo> td::td_api::message::reply_to_

Information about the message or the story this message is replying to; may be null if none.

Definition at line 38558 of file td_api.h.

◆ restriction_info_

object_ptr<restrictionInfo> td::td_api::message::restriction_info_

Information about the restrictions that must be applied to the message content; may be null if none.

Definition at line 38584 of file td_api.h.

◆ scheduling_state_

object_ptr<MessageSchedulingState> td::td_api::message::scheduling_state_

The scheduling state of the message; may be null if the message isn&#x27;t scheduled.

Definition at line 38520 of file td_api.h.

◆ self_destruct_in_

double td::td_api::message::self_destruct_in_

Time left before the message self-destruct timer expires, in seconds; 0 if self-destruction isn&#x27;t scheduled yet.

Definition at line 38564 of file td_api.h.

◆ self_destruct_type_

object_ptr<MessageSelfDestructType> td::td_api::message::self_destruct_type_

The message&#x27;s self-destruct type; may be null if none.

Definition at line 38562 of file td_api.h.

◆ sender_boost_count_

int32 td::td_api::message::sender_boost_count_

Number of times the sender of the message boosted the supergroup at the time the message was sent; 0 if none or unknown. For messages sent by the current user, supergroupFullInfo.my_boost_count must be used instead.

Definition at line 38572 of file td_api.h.

◆ sender_business_bot_user_id_

int53 td::td_api::message::sender_business_bot_user_id_

If non-zero, the user identifier of the business bot that sent this message.

Definition at line 38570 of file td_api.h.

◆ sender_id_

object_ptr<MessageSender> td::td_api::message::sender_id_

Identifier of the sender of the message.

Definition at line 38514 of file td_api.h.

◆ sender_tag_

string td::td_api::message::sender_tag_

Tag of the sender of the message in the supergroup at the time the message was sent; may be empty if none or unknown. For messages sent in basic groups or supergroup administrators, the current custom title or tag must be used instead.

Definition at line 38574 of file td_api.h.

◆ sending_state_

object_ptr<MessageSendingState> td::td_api::message::sending_state_

The sending state of the message; may be null if the message isn&#x27;t being sent and didn&#x27;t fail to be sent.

Definition at line 38518 of file td_api.h.

◆ suggested_post_info_

object_ptr<suggestedPostInfo> td::td_api::message::suggested_post_info_

Information about the suggested post; may be null if the message isn&#x27;t a suggested post.

Definition at line 38556 of file td_api.h.

◆ summary_language_code_

string td::td_api::message::summary_language_code_

IETF language tag of the message language on which it can be summarized; empty if summary isn&#x27;t available for the message.

Definition at line 38586 of file td_api.h.

◆ topic_id_

object_ptr<MessageTopic> td::td_api::message::topic_id_

Identifier of the topic within the chat to which the message belongs; may be null if none; may change when the chat is converted to a forum or back.

Definition at line 38560 of file td_api.h.

◆ unread_reactions_

array<object_ptr<unreadReaction> > td::td_api::message::unread_reactions_

Information about unread reactions added to the message.

Definition at line 38552 of file td_api.h.

◆ via_bot_user_id_

int53 td::td_api::message::via_bot_user_id_

If non-zero, the user identifier of the inline bot through which this message was sent.

Definition at line 38568 of file td_api.h.


The documentation for this class was generated from the following file: