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.
-
#can_be_deleted_for_all_users ⇒ Boolean
True, if the message can be deleted for all users.
-
#can_be_deleted_only_for_self ⇒ Boolean
True, if the message can be deleted only for the current user while other users will continue to see it.
-
#can_be_edited ⇒ Boolean
True, if the message can be edited.
-
#can_be_forwarded ⇒ Boolean
True, if the message can be forwarded.
-
#can_get_message_thread ⇒ Boolean
True, if the message thread info is available.
-
#can_get_statistics ⇒ Boolean
True, if the message statistics are available.
-
#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.
-
#forward_info ⇒ TD::Types::MessageForwardInfo?
Information about the initial message sender; may be null.
-
#id ⇒ Integer
Message identifier; unique for the chat to which the message belongs.
-
#interaction_info ⇒ TD::Types::MessageInteractionInfo?
Information about interactions with the message; may be null.
-
#is_channel_post ⇒ Boolean
True, if the message is a channel post.
-
#is_outgoing ⇒ Boolean
True, if the message is outgoing.
-
#is_pinned ⇒ Boolean
True, if the message is pinned.
-
#media_album_id ⇒ Integer
Unique identifier of an album this message belongs to.
-
#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_in_chat_id ⇒ Integer
If non-zero, the identifier of the chat to which the replied message belongs; Currently, only messages in the Replies chat can have different reply_in_chat_id and chat_id.
-
#reply_markup ⇒ TD::Types::ReplyMarkup?
Reply markup for the message; may be null.
-
#reply_to_message_id ⇒ Integer
If non-zero, the identifier of the message this message is replying to; can be the identifier of a deleted message.
-
#restriction_reason ⇒ TD::Types::String
If non-empty, contains a human-readable description of the reason why access to this message must be restricted.
-
#scheduling_state ⇒ TD::Types::MessageSchedulingState?
Information about the scheduling state of the message; may be null.
-
#sender ⇒ TD::Types::MessageSender
The sender of the message.
-
#sending_state ⇒ TD::Types::MessageSendingState?
Information about the sending state of the message; may be null.
-
#ttl ⇒ Integer
For self-destructing messages, the message’s TTL (Time To Live), in seconds; 0 if none.
-
#ttl_expires_in ⇒ Float
Time left before the message expires, in seconds.
-
#via_bot_user_id ⇒ Integer
If non-zero, the user identifier of the 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.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def @author_signature end |
#can_be_deleted_for_all_users ⇒ Boolean
True, if the message can be deleted for all users.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def can_be_deleted_for_all_users @can_be_deleted_for_all_users end |
#can_be_deleted_only_for_self ⇒ Boolean
True, if the message can be deleted only for the current user while other users will continue to see it.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def can_be_deleted_only_for_self @can_be_deleted_only_for_self end |
#can_be_edited ⇒ Boolean
True, if the message can be edited. For live location and poll messages this fields shows whether editMessageLiveLocation or stopPoll can be used with this message by the application.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def can_be_edited @can_be_edited end |
#can_be_forwarded ⇒ Boolean
True, if the message can be forwarded.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def can_be_forwarded @can_be_forwarded end |
#can_get_message_thread ⇒ Boolean
True, if the message thread info is available.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def @can_get_message_thread end |
#can_get_statistics ⇒ Boolean
True, if the message statistics are available.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def can_get_statistics @can_get_statistics end |
#chat_id ⇒ Integer
Chat identifier.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def chat_id @chat_id end |
#contains_unread_mention ⇒ Boolean
True, if the message contains an unread mention for the current user.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def contains_unread_mention @contains_unread_mention end |
#content ⇒ TD::Types::MessageContent
Content of the message.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def content @content end |
#date ⇒ Integer
Point in time (Unix timestamp) when the message was sent.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def date @date end |
#edit_date ⇒ Integer
Point in time (Unix timestamp) when the message was last edited.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def edit_date @edit_date end |
#forward_info ⇒ TD::Types::MessageForwardInfo?
Information about the initial message sender; may be null.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def forward_info @forward_info end |
#id ⇒ Integer
Message identifier; unique for the chat to which the message belongs.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def id @id end |
#interaction_info ⇒ TD::Types::MessageInteractionInfo?
Information about interactions with the message; may be null.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 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.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def is_channel_post @is_channel_post end |
#is_outgoing ⇒ Boolean
True, if the message is outgoing.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def is_outgoing @is_outgoing end |
#is_pinned ⇒ Boolean
True, if the message is pinned.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def is_pinned @is_pinned end |
#media_album_id ⇒ Integer
Unique identifier of an album this message belongs to. Only audios, documents, photos and videos can be grouped together in albums.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 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.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def @message_thread_id end |
#reply_in_chat_id ⇒ Integer
If non-zero, the identifier of the chat to which the replied message belongs; Currently, only messages in the Replies chat can have different reply_in_chat_id and chat_id.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def reply_in_chat_id @reply_in_chat_id end |
#reply_markup ⇒ TD::Types::ReplyMarkup?
Reply markup for the message; may be null.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def reply_markup @reply_markup end |
#reply_to_message_id ⇒ Integer
If non-zero, the identifier of the message this message is replying to; can be the identifier of a deleted message.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def @reply_to_message_id 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.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def restriction_reason @restriction_reason end |
#scheduling_state ⇒ TD::Types::MessageSchedulingState?
Information about the scheduling state of the message; may be null.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def scheduling_state @scheduling_state end |
#sender ⇒ TD::Types::MessageSender
The sender of the message.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def sender @sender end |
#sending_state ⇒ TD::Types::MessageSendingState?
Information about the sending state of the message; may be null.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def sending_state @sending_state end |
#ttl ⇒ Integer
For self-destructing messages, the message’s TTL (Time To Live), in seconds; 0 if none. TDLib will send Update::DeleteMessages or Update::MessageContent once the TTL expires.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def ttl @ttl end |
#ttl_expires_in ⇒ Float
Time left before the message expires, in seconds.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def ttl_expires_in @ttl_expires_in end |
#via_bot_user_id ⇒ Integer
If non-zero, the user identifier of the bot through which this message was sent.
48 49 50 |
# File 'lib/tdlib/types/message.rb', line 48 def via_bot_user_id @via_bot_user_id end |