Skip to content

class Tourmaline::Message
inherits Reference #

This object represents a Telegram user or bot.#

Included modules

JSON::Serializable Tourmaline::Model

Class methods#

.new(pull : JSON::PullParser) #

View source

Methods#

#animation : Animation? #

View source

#audio : Audio? #

View source

#author_signature : String? #

View source

#caption : String? #

View source

#caption_entities : Array(MessageEntity) #

View source

#channel_chat_created : Bool? #

View source

#chat : Chat #

View source

#chats #

View source

#chats(&block : Chat -> ) #

View source

#connected_website : String? #

View source

#contact : Contact? #

View source

#date : Time #

View source

#delete #

Delete the message. See Tourmaline::Client#delete_message.

View source

#delete_chat_photo : Bool? #

View source

#dice : Dice? #

View source

#document : Document? #

View source

#edit_caption(caption, **kwargs) #

Edits the message's caption. See Tourmaline::Client#edit_message_caption

View source

#edit_date : Time? #

View source

#edit_live_location(latitude, longitude, **kwargs) #

Edits the message's live_location. See Tourmaline::Client#edit_message_live_location

View source

#edit_media(media, **kwargs) #

Edits the message's media. See Tourmaline::Client#edit_message_media

View source

#edit_reply_markup(reply_markup) #

Set the reply markup for the message. See Tourmaline::Client#edit_message_reply_markup.

View source

#edit_text(text, **kwargs) #

Edits the text of a message. See Tourmaline::Client#edit_message_text.

View source

#entities : Array(MessageEntity) #

View source

#file #

View source

#forward(to_chat, **kwargs) #

Forward the message to another chat. See Tourmaline::Client#forward_message.

View source

#forward_date : Time? #

View source

#forward_from : User? #

View source

#forward_from_chat : Chat? #

View source

#forward_from_message_id : Int64? #

View source

#forward_sender_name : String? #

View source

#forward_signature : String? #

View source

#forwards : Int32? #

USER API ONLY

View source

#from : User? #

View source

#game : Game? #

View source

#group_chat_created : Bool? #

View source

#invoice : Invoice? #

View source

#is_outgoing? : Bool? #

USER API ONLY

View source

#left_chat_member : User? #

View source
View source

#location : Location? #

View source

#media_group_id : String? #

View source

#message_auto_delete_timer_changed : MessageAutoDeleteTimerChanged? #

View source

#message_id : Int64 #

View source

#migrate_from_chat_id : Int64? #

View source

#migrate_to_chat_id : Int64? #

View source

#new_chat_members : Array(User) #

View source

#new_chat_photo : Array(PhotoSize) #

View source

#new_chat_title : String? #

View source

#passport_data : PassportData? #

View source

#photo : Array(PhotoSize) #

View source

#pin(**kwargs) #

Pin the message. See Tourmaline::Client#pin_chat_message.

View source

#pinned_message : Message? #

View source

#poll : Poll? #

View source

#proximity_alert_triggered : ProximityAlertTriggered? #

View source

#raw_caption(parse_mode : ParseMode = :markdown) #

View source

#raw_text(parse_mode : ParseMode = :markdown) #

View source

#reply(message, **kwargs) #

Reply to a message. See Tourmaline::Client#send_message.

View source

#reply_message : Message? #

View source

#reply_with_animation(*args, **kwargs) #

View source

#reply_with_audio(*args, **kwargs) #

View source

#reply_with_basketball(*args, **kwargs) #

View source

#reply_with_contact(*args, **kwargs) #

View source

#reply_with_dart(*args, **kwargs) #

View source

#reply_with_dice(*args, **kwargs) #

View source

#reply_with_document(*args, **kwargs) #

View source

#reply_with_invoice(*args, **kwargs) #

View source

#reply_with_location(*args, **kwargs) #

View source

#reply_with_media_group(*args, **kwargs) #

View source

#reply_with_menu(menu : RoutedMenu, **kwargs) #

View source

#reply_with_photo(*args, **kwargs) #

View source

#reply_with_poll(*args, **kwargs) #

View source

#reply_with_sticker(*args, **kwargs) #

View source

#reply_with_venu(*args, **kwargs) #

View source

#reply_with_video(*args, **kwargs) #

View source

#reply_with_video_note(*args, **kwargs) #

View source

#reply_with_voice(*args, **kwargs) #

View source

#respond(message, **kwargs) #

Respond to a message. See Tourmaline::Client#send_message.

View source

#respond_with_animation(*args, **kwargs) #

View source

#respond_with_audio(*args, **kwargs) #

View source

#respond_with_basketball(*args, **kwargs) #

View source

#respond_with_contact(*args, **kwargs) #

View source

#respond_with_dart(*args, **kwargs) #

View source

#respond_with_dice(*args, **kwargs) #

View source

#respond_with_document(*args, **kwargs) #

View source

#respond_with_invoice(*args, **kwargs) #

View source

#respond_with_location(*args, **kwargs) #

View source

#respond_with_media_group(*args, **kwargs) #

View source

#respond_with_menu(menu : RoutedMenu, **kwargs) #

View source

#respond_with_photo(*args, **kwargs) #

View source

#respond_with_poll(*args, **kwargs) #

View source

#respond_with_sticker(*args, **kwargs) #

View source

#respond_with_venu(*args, **kwargs) #

View source

#respond_with_video(*args, **kwargs) #

View source

#respond_with_video_note(*args, **kwargs) #

View source

#respond_with_voice(*args, **kwargs) #

View source

#sender_chat : Chat? #

View source

#sticker : Sticker? #

View source

#stop_live_location(**kwargs) #

View source

#successful_payment : SuccessfulPayment? #

View source

#supergroup_chat_created : Bool? #

View source

#text_entities #

View source

#unpin(**kwargs) #

Unpin the message. See Tourmaline::Client#unpin_chat_message.

View source

#users(&block : User -> ) #

View source

#users #

View source

#venue : Venue? #

View source

#via_bot : User? #

View source

#video : Video? #

View source

#video_note : VideoNote? #

View source

#views : Int32? #

USER API ONLY

View source

#voice : Voice? #

View source

#voice_chat_ended : VoiceChatEnded? #

View source

#voice_chat_participants_invited : VoiceChatParticipantsInvited? #

View source

#voice_chat_scheduled : VoiceChatScheduled? #

View source

#voice_chat_started : VoiceChatStarted? #

View source