class Tourmaline::Message
- Tourmaline::Message
- Reference
- Object
Overview
This object represents a Telegram user or bot.
Included Modules
- DB::Mappable
- DB::Serializable
- JSON::Serializable
Defined in:
tourmaline/models/message.crConstructors
Class Method Summary
Instance Method Summary
- #audio : Audio | Nil
- #author_signature : String | Nil
- #caption : String | Nil
- #caption_entities : Array(MessageEntity)
- #channel_chat_created : Bool | Nil
- #chat : Chat
- #chats
- #chats(&block : Chat -> )
- #connected_website : String | Nil
- #contact : Contact | Nil
- #date : Time
-
#delete
Delete the message.
- #delete_chat_photo : Bool | Nil
- #dice : Dice | Nil
- #document : Document | Nil
-
#edit_caption(caption, **kwargs)
Edits the message's caption.
- #edit_date : Time | Nil
-
#edit_live_location(latitude, longitude, **kwargs)
Edits the message's live_location.
-
#edit_media(media, **kwargs)
Edits the message's media.
-
#edit_reply_markup(reply_markup)
Set the reply markup for the message.
-
#edit_text(text, **kwargs)
Edits the text of a message.
- #entities : Array(MessageEntity)
-
#forward(to_chat, **kwargs)
Forward the message to another chat.
- #forward_date : Time | Nil
- #forward_from : User | Nil
- #forward_from_chat : Chat | Nil
- #forward_from_message_id : Int64 | Nil
- #forward_signature : String | Nil
- #from : User | Nil
- #game : Game | Nil
- #group_chat_created : Bool | Nil
- #invoice : Invoice | Nil
- #left_chat_member : User | Nil
- #link
- #location : Location | Nil
- #media_group_id : String | Nil
- #message_id : Int64
- #migrate_from_chat_id : Int64 | Nil
- #migrate_to_chat_id : Int64 | Nil
- #new_chat_members : Array(User)
- #new_chat_photo : Array(PhotoSize)
- #new_chat_title : String | Nil
- #photo : Array(PhotoSize)
-
#pin(**kwargs)
Pin the message.
- #poll : Poll | Nil
-
#reply(message, **kwargs)
Reply to a message.
- #reply_markup : InlineKeyboardMarkup | Nil
- #reply_message : Message | Nil
- #reply_with_animation(*args, **kwargs)
- #reply_with_audio(*args, **kwargs)
- #reply_with_contact(*args, **kwargs)
- #reply_with_dice(*args, **kwargs)
- #reply_with_document(*args, **kwargs)
- #reply_with_invoice(*args, **kwargs)
- #reply_with_location(*args, **kwargs)
- #reply_with_media_group(*args, **kwargs)
- #reply_with_photo(*args, **kwargs)
- #reply_with_poll(*args, **kwargs)
- #reply_with_venu(*args, **kwargs)
- #reply_with_video(*args, **kwargs)
- #reply_with_video_note(*args, **kwargs)
- #reply_with_voice(*args, **kwargs)
-
#respond(message, **kwargs)
Respond to a message.
- #respond_with_animation(*args, **kwargs)
- #respond_with_audio(*args, **kwargs)
- #respond_with_contact(*args, **kwargs)
- #respond_with_dice(*args, **kwargs)
- #respond_with_document(*args, **kwargs)
- #respond_with_invoice(*args, **kwargs)
- #respond_with_location(*args, **kwargs)
- #respond_with_media_group(*args, **kwargs)
- #respond_with_photo(*args, **kwargs)
- #respond_with_poll(*args, **kwargs)
- #respond_with_venu(*args, **kwargs)
- #respond_with_video(*args, **kwargs)
- #respond_with_video_note(*args, **kwargs)
- #respond_with_voice(*args, **kwargs)
- #sticker : Sticker | Nil
- #stop_live_location(**kwargs)
- #successful_payment : SuccessfulPayment | Nil
- #supergroup_chat_created : Bool | Nil
- #text : String | Nil
- #text_entities
- #users
- #users(&block : User -> )
- #venue : Venue | Nil
- #video : Video | Nil
- #video_note : VideoNote | Nil
- #voice : Voice | Nil
Constructor Detail
Class Method Detail
Instance Method Detail
def edit_caption(caption, **kwargs)
#
Edits the message's caption. See Tourmaline::Client#edit_message_caption
def edit_live_location(latitude, longitude, **kwargs)
#
Edits the message's live_location. See Tourmaline::Client#edit_message_live_location
def edit_media(media, **kwargs)
#
Edits the message's media. See Tourmaline::Client#edit_message_media
def edit_reply_markup(reply_markup)
#
Set the reply markup for the message. See Tourmaline::Client#edit_message_reply_markup
.
def edit_text(text, **kwargs)
#
Edits the text of a message. See Tourmaline::Client#edit_message_text
.
def forward(to_chat, **kwargs)
#
Forward the message to another chat. See Tourmaline::Client#forward_message
.