Class: TD::Types::Message
- Defined in:
- lib/tdlib/types/message.rb
Overview
Describes a message.
Instance Attribute Summary collapse
-
#author_signature ⇒ TD::Types::String?
For channel posts and anonymous group messages, optional author signature.
-
#auto_delete_in ⇒ Float
Time left before the message will be automatically deleted by message_auto_delete_time setting of the chat, in seconds; 0 if never.
-
#can_be_saved ⇒ Boolean
True, if content of the message can be saved locally or copied.
-
#chat_id ⇒ Integer
Chat identifier.
-
#contains_unread_mention ⇒ Boolean
True, if the message contains an unread mention for the current user.
-
#content ⇒ TD::Types::MessageContent
Content of the message.
-
#date ⇒ Integer
Point in time (Unix timestamp) when the message was sent.
-
#edit_date ⇒ Integer
Point in time (Unix timestamp) when the message was last edited.
-
#effect_id ⇒ Integer
Unique identifier of the effect added to the message; 0 if none.
-
#fact_check ⇒ TD::Types::FactCheck?
Information about fact-check added to the message; may be null if none.
-
#forward_info ⇒ TD::Types::MessageForwardInfo?
Information about the initial message sender; may be null if none or unknown.
-
#has_sensitive_content ⇒ Boolean
True, if media content of the message must be hidden with 18+ spoiler.
-
#has_timestamped_media ⇒ Boolean
True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message.
-
#id ⇒ Integer
Message identifier; unique for the chat to which the message belongs.
-
#import_info ⇒ TD::Types::MessageImportInfo?
Information about the initial message for messages created with importMessages; may be null if the message isn’t imported.
-
#interaction_info ⇒ TD::Types::MessageInteractionInfo?
Information about interactions with the message; may be null if none.
-
#is_channel_post ⇒ Boolean
True, if the message is a channel post.
-
#is_from_offline ⇒ Boolean
True, if the message was sent because of a scheduled action by the message sender, for example, as away, or greeting service message.
-
#is_outgoing ⇒ Boolean
True, if the message is outgoing.
-
#is_pinned ⇒ Boolean
True, if the message is pinned.
-
#is_topic_message ⇒ Boolean
True, if the message is a forum topic message.
-
#media_album_id ⇒ Integer
Unique identifier of an album this message belongs to; 0 if none.
-
#message_thread_id ⇒ Integer
If non-zero, the identifier of the message thread the message belongs to; unique within the chat to which the message belongs.
-
#reply_markup ⇒ TD::Types::ReplyMarkup?
Reply markup for the message; may be null if none.
-
#reply_to ⇒ TD::Types::MessageReplyTo?
Information about the message or the story this message is replying to; may be null if none.
-
#restriction_reason ⇒ TD::Types::String
If non-empty, contains a human-readable description of the reason why access to this message must be restricted.
-
#saved_messages_topic_id ⇒ Integer
Identifier of the Saved Messages topic for the message; 0 for messages not from Saved Messages.
-
#scheduling_state ⇒ TD::Types::MessageSchedulingState?
The scheduling state of the message; may be null if the message isn’t scheduled.
-
#self_destruct_in ⇒ Float
Time left before the message self-destruct timer expires, in seconds; 0 if self-destruction isn’t scheduled yet.
-
#self_destruct_type ⇒ TD::Types::MessageSelfDestructType?
The message’s self-destruct type; may be null if none.
-
#sender_boost_count ⇒ Integer
Number of times the sender of the message boosted the supergroup at the time the message was sent; 0 if none or unknown.
-
#sender_business_bot_user_id ⇒ Integer
If non-zero, the user identifier of the business bot that sent this message.
-
#sender_id ⇒ TD::Types::MessageSender
Identifier of the sender of the message.
-
#sending_state ⇒ TD::Types::MessageSendingState?
The sending state of the message; may be null if the message isn’t being sent and didn’t fail to be sent.
-
#unread_reactions ⇒ Array<TD::Types::UnreadReaction>
Information about unread reactions added to the message.
-
#via_bot_user_id ⇒ Integer
If non-zero, the user identifier of the inline bot through which this message was sent.
Method Summary
Methods inherited from Base
Instance Attribute Details
#author_signature ⇒ TD::Types::String?
For channel posts and anonymous group messages, optional author signature.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def @author_signature end |
#auto_delete_in ⇒ Float
Time left before the message will be automatically deleted by message_auto_delete_time setting of the chat, in seconds; 0 if never.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def auto_delete_in @auto_delete_in end |
#can_be_saved ⇒ Boolean
True, if content of the message can be saved locally or copied.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def can_be_saved @can_be_saved end |
#chat_id ⇒ Integer
Chat identifier.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def chat_id @chat_id end |
#contains_unread_mention ⇒ Boolean
True, if the message contains an unread mention for the current user.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def contains_unread_mention @contains_unread_mention end |
#content ⇒ TD::Types::MessageContent
Content of the message.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def content @content end |
#date ⇒ Integer
Point in time (Unix timestamp) when the message was sent.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def date @date end |
#edit_date ⇒ Integer
Point in time (Unix timestamp) when the message was last edited.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def edit_date @edit_date end |
#effect_id ⇒ Integer
Unique identifier of the effect added to the message; 0 if none.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def effect_id @effect_id end |
#fact_check ⇒ TD::Types::FactCheck?
Information about fact-check added to the message; may be null if none.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def fact_check @fact_check end |
#forward_info ⇒ TD::Types::MessageForwardInfo?
Information about the initial message sender; may be null if none or unknown.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def forward_info @forward_info end |
#has_sensitive_content ⇒ Boolean
True, if media content of the message must be hidden with 18+ spoiler.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def has_sensitive_content @has_sensitive_content end |
#has_timestamped_media ⇒ Boolean
True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def @has_timestamped_media end |
#id ⇒ Integer
Message identifier; unique for the chat to which the message belongs.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def id @id end |
#import_info ⇒ TD::Types::MessageImportInfo?
Information about the initial message for messages created with importMessages; may be null if the message isn’t imported.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def import_info @import_info end |
#interaction_info ⇒ TD::Types::MessageInteractionInfo?
Information about interactions with the message; may be null if none.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def interaction_info @interaction_info end |
#is_channel_post ⇒ Boolean
True, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def is_channel_post @is_channel_post end |
#is_from_offline ⇒ Boolean
True, if the message was sent because of a scheduled action by the message sender, for example, as away, or greeting service message.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def is_from_offline @is_from_offline end |
#is_outgoing ⇒ Boolean
True, if the message is outgoing.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def is_outgoing @is_outgoing end |
#is_pinned ⇒ Boolean
True, if the message is pinned.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def is_pinned @is_pinned end |
#is_topic_message ⇒ Boolean
True, if the message is a forum topic message.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def @is_topic_message end |
#media_album_id ⇒ Integer
Unique identifier of an album this message belongs to; 0 if none. Only audios, documents, photos and videos can be grouped together in albums.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def media_album_id @media_album_id end |
#message_thread_id ⇒ Integer
If non-zero, the identifier of the message thread the message belongs to; unique within the chat to which the message belongs.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def @message_thread_id end |
#reply_markup ⇒ TD::Types::ReplyMarkup?
Reply markup for the message; may be null if none.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def reply_markup @reply_markup end |
#reply_to ⇒ TD::Types::MessageReplyTo?
Information about the message or the story this message is replying to; may be null if none.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def reply_to @reply_to end |
#restriction_reason ⇒ TD::Types::String
If non-empty, contains a human-readable description of the reason why access to this message must be restricted.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def restriction_reason @restriction_reason end |
#saved_messages_topic_id ⇒ Integer
Identifier of the Saved Messages topic for the message; 0 for messages not from Saved Messages.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def @saved_messages_topic_id end |
#scheduling_state ⇒ TD::Types::MessageSchedulingState?
The scheduling state of the message; may be null if the message isn’t scheduled.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def scheduling_state @scheduling_state end |
#self_destruct_in ⇒ Float
Time left before the message self-destruct timer expires, in seconds; 0 if self-destruction isn’t scheduled yet.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def self_destruct_in @self_destruct_in end |
#self_destruct_type ⇒ TD::Types::MessageSelfDestructType?
The message’s self-destruct type; may be null if none.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def self_destruct_type @self_destruct_type end |
#sender_boost_count ⇒ Integer
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.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def sender_boost_count @sender_boost_count end |
#sender_business_bot_user_id ⇒ Integer
If non-zero, the user identifier of the business bot that sent this message.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def sender_business_bot_user_id @sender_business_bot_user_id end |
#sender_id ⇒ TD::Types::MessageSender
Identifier of the sender of the message.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def sender_id @sender_id end |
#sending_state ⇒ TD::Types::MessageSendingState?
The sending state of the message; may be null if the message isn’t being sent and didn’t fail to be sent.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def sending_state @sending_state end |
#unread_reactions ⇒ Array<TD::Types::UnreadReaction>
Information about unread reactions added to the message.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def unread_reactions @unread_reactions end |
#via_bot_user_id ⇒ Integer
If non-zero, the user identifier of the inline bot through which this message was sent.
62 63 64 |
# File 'lib/tdlib/types/message.rb', line 62 def via_bot_user_id @via_bot_user_id end |