class
TD::Message
- TD::Message
- TD::Base
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
telegram/types/message.crConstructors
- .new(id : Int64, sender_id : TD::MessageSender, chat_id : Int64, sending_state : Union(TD::MessageSendingState, Nil), scheduling_state : Union(TD::MessageSchedulingState, Nil), date : Int32, edit_date : Int32, forward_info : Union(TD::MessageForwardInfo, Nil), interaction_info : Union(TD::MessageInteractionInfo, Nil), reply_in_chat_id : Int64, reply_to_message_id : Int64, message_thread_id : Int64, ttl : Int32, ttl_expires_in : Float64, via_bot_user_id : Int64, author_signature : String, media_album_id : String, restriction_reason : String, content : TD::MessageContent, reply_markup : Union(TD::ReplyMarkup, Nil), is_outgoing : Bool = false, is_pinned : Bool = false, can_be_edited : Bool = false, can_be_forwarded : Bool = false, can_be_saved : Bool = false, can_be_deleted_only_for_self : Bool = false, can_be_deleted_for_all_users : Bool = false, can_get_statistics : Bool = false, can_get_message_thread : Bool = false, can_get_viewers : Bool = false, can_get_media_timestamp_links : Bool = false, has_timestamped_media : Bool = false, is_channel_post : Bool = false, contains_unread_mention : Bool = false)
- .new(pull : JSON::PullParser)
- .new(__json : JSON::Any | Nil = nil)
Instance Method Summary
- #author_signature : String
- #author_signature=(author_signature : String)
- #can_be_deleted_for_all_users : Bool
- #can_be_deleted_for_all_users=(can_be_deleted_for_all_users : Bool)
- #can_be_deleted_only_for_self : Bool
- #can_be_deleted_only_for_self=(can_be_deleted_only_for_self : Bool)
- #can_be_edited : Bool
- #can_be_edited=(can_be_edited : Bool)
- #can_be_forwarded : Bool
- #can_be_forwarded=(can_be_forwarded : Bool)
- #can_be_saved : Bool
- #can_be_saved=(can_be_saved : Bool)
- #can_get_media_timestamp_links : Bool
- #can_get_media_timestamp_links=(can_get_media_timestamp_links : Bool)
- #can_get_message_thread : Bool
- #can_get_message_thread=(can_get_message_thread : Bool)
- #can_get_statistics : Bool
- #can_get_statistics=(can_get_statistics : Bool)
- #can_get_viewers : Bool
- #can_get_viewers=(can_get_viewers : Bool)
- #chat_id : Int64
- #chat_id=(chat_id : Int64)
- #contains_unread_mention : Bool
- #contains_unread_mention=(contains_unread_mention : Bool)
- #content : TD::MessageContent
- #content=(content : TD::MessageContent)
- #date : Int32
- #date=(date : Int32)
- #edit_date : Int32
- #edit_date=(edit_date : Int32)
- #forward_info : TD::MessageForwardInfo?
- #forward_info=(forward_info : Nil | TD::MessageForwardInfo)
- #has_timestamped_media : Bool
- #has_timestamped_media=(has_timestamped_media : Bool)
- #id : Int64
- #id=(id : Int64)
- #interaction_info : TD::MessageInteractionInfo?
- #interaction_info=(interaction_info : Nil | TD::MessageInteractionInfo)
- #is_channel_post : Bool
- #is_channel_post=(is_channel_post : Bool)
- #is_outgoing : Bool
- #is_outgoing=(is_outgoing : Bool)
- #is_pinned : Bool
- #is_pinned=(is_pinned : Bool)
- #media_album_id : String
- #media_album_id=(media_album_id : String)
- #message_thread_id : Int64
- #message_thread_id=(message_thread_id : Int64)
- #object_type : String
- #object_type=(object_type : String)
- #reply_in_chat_id : Int64
- #reply_in_chat_id=(reply_in_chat_id : Int64)
- #reply_markup : TD::ReplyMarkup?
- #reply_markup=(reply_markup : TD::ReplyMarkup | Nil)
- #reply_to_message_id : Int64
- #reply_to_message_id=(reply_to_message_id : Int64)
- #restriction_reason : String
- #restriction_reason=(restriction_reason : String)
- #scheduling_state : TD::MessageSchedulingState?
- #scheduling_state=(scheduling_state : TD::MessageSchedulingState | Nil)
- #sender_id : TD::MessageSender
- #sender_id=(sender_id : TD::MessageSender)
- #sending_state : TD::MessageSendingState?
- #sending_state=(sending_state : TD::MessageSendingState | Nil)
- #ttl : Int32
- #ttl=(ttl : Int32)
- #ttl_expires_in : Float64
- #ttl_expires_in=(ttl_expires_in : Float64)
- #via_bot_user_id : Int64
- #via_bot_user_id=(via_bot_user_id : Int64)
Instance methods inherited from class TD::Base
extract_abstract_type(__json : JSON::Any)
extract_abstract_type,
extract_type(__json : JSON::Any, class_type : Class)
extract_type
Macros inherited from class TD::Base
object_attributes(type)
object_attributes,
object_type(type)
object_type
Constructor Detail
def self.new(id : Int64, sender_id : TD::MessageSender, chat_id : Int64, sending_state : Union(TD::MessageSendingState, Nil), scheduling_state : Union(TD::MessageSchedulingState, Nil), date : Int32, edit_date : Int32, forward_info : Union(TD::MessageForwardInfo, Nil), interaction_info : Union(TD::MessageInteractionInfo, Nil), reply_in_chat_id : Int64, reply_to_message_id : Int64, message_thread_id : Int64, ttl : Int32, ttl_expires_in : Float64, via_bot_user_id : Int64, author_signature : String, media_album_id : String, restriction_reason : String, content : TD::MessageContent, reply_markup : Union(TD::ReplyMarkup, Nil), is_outgoing : Bool = false, is_pinned : Bool = false, can_be_edited : Bool = false, can_be_forwarded : Bool = false, can_be_saved : Bool = false, can_be_deleted_only_for_self : Bool = false, can_be_deleted_for_all_users : Bool = false, can_get_statistics : Bool = false, can_get_message_thread : Bool = false, can_get_viewers : Bool = false, can_get_media_timestamp_links : Bool = false, has_timestamped_media : Bool = false, is_channel_post : Bool = false, contains_unread_mention : Bool = false)
#