class TelegramApi::Types::Message
- TelegramApi::Types::Message
- Reference
- Object
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
Defined in:
telegram_api/src/types/message.crConstructors
Instance Method Summary
-
#author_signature : String | Nil
Optional.
-
#business_connection_id : String | Nil
Optional.
-
#chat : Chat
Chat the message belongs to
-
#date : Int64
Date the message was sent in Unix time.
-
#edit_date : Int64 | Nil
Optional.
-
#from : User | Nil
Optional.
-
#has_protected_content : Bool | Nil
Optional.
-
#is_from_offline : Bool | Nil
Optional.
-
#media_group_id : String | Nil
Optional.
-
#message_id : Int64
Unique message identifier inside this chat.
-
#message_thread_id : Int64 | Nil
Optional.
-
#reply_to_message : Message | Nil
Optional.
-
#sender_boost_count : Int64 | Nil
Optional.
-
#sender_business_bot : User | Nil
Optional.
-
#sender_chat : Chat | Nil
Optional.
-
#text : String | Nil
Optional.
-
#via_bot : User | Nil
Optional.
Constructor Detail
Instance Method Detail
Optional. Signature of the post author for messages in channels, or the custom title of an anonymous group administrator
Optional. Unique identifier of the business connection from which the message was received. If non-empty, the message belongs to a chat of the corresponding business account that is independent from any potential bot chat which might share the same identifier.
Date the message was sent in Unix time. It is always a positive number, representing a valid date.
Optional. Sender of the message; may be empty for messages sent to channels. For backward compatibility, if the message was sent on behalf of a chat, the field contains a fake sender user in non-channel chats
Optional. Bool, if the message was sent by an implicit action, for example, as an away or a greeting business message, or as a scheduled message
Optional. The unique identifier of a media message group this message belongs to
Unique message identifier inside this chat. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be 0 and the relevant message will be unusable until it is actually sent
Optional. Unique identifier of a message thread to which the message belongs; for supergroups only
Optional. For replies in the same chat and message thread, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.
Optional. If the sender of the message boosted the chat, the number of boosts added by the user
Optional. The bot that actually sent the message on behalf of the business account. Available only for outgoing messages sent on behalf of the connected business account.
Optional. Sender of the message when sent on behalf of a chat. For example, the supergroup itself for messages sent by its anonymous administrators or a linked channel for messages automatically forwarded to the channel's discussion group. For backward compatibility, if the message was sent on behalf of a chat, the field from contains a fake sender user in non-channel chats.