class Tourmaline::Message

Overview

This object represents a Telegram user or bot.

Included Modules

Defined in:

tourmaline/models/message.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def audio : Audio | Nil #

[View source]
def author_signature : String | Nil #

[View source]
def caption : String | Nil #

[View source]
def caption_entities : Array(MessageEntity) #

[View source]
def channel_chat_created : Bool | Nil #

[View source]
def chat : Chat #

[View source]
def connected_website : String | Nil #

[View source]
def contact : Contact | Nil #

[View source]
def date : Time #

[View source]
def delete #

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


[View source]
def delete_chat_photo : Bool | Nil #

[View source]
def dice : Dice | Nil #

[View source]
def document : Document | Nil #

[View source]
def edit_caption(caption, **kwargs) #

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


[View source]
def edit_date : Time | Nil #

[View source]
def edit_live_location(latitude, longitude, **kwargs) #

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


[View source]
def edit_media(media, **kwargs) #

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


[View source]
def edit_reply_markup(reply_markup) #

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


[View source]
def edit_text(text, **kwargs) #

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


[View source]
def entities : Array(MessageEntity) #

[View source]
def forward(to_chat, **kwargs) #

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


[View source]
def forward_date : Time | Nil #

[View source]
def forward_from : User | Nil #

[View source]
def forward_from_chat : Chat | Nil #

[View source]
def forward_from_message_id : Int64 | Nil #

[View source]
def forward_signature : String | Nil #

[View source]
def from : User | Nil #

[View source]
def game : Game | Nil #

[View source]
def group_chat_created : Bool | Nil #

[View source]
def invoice : Invoice | Nil #

[View source]
def left_chat_member : User | Nil #

[View source]
def link #

[View source]
def location : Location | Nil #

[View source]
def media_group_id : String | Nil #

[View source]
def message_id : Int64 #

[View source]
def migrate_from_chat_id : Int64 | Nil #

[View source]
def migrate_to_chat_id : Int64 | Nil #

[View source]
def new_chat_members : Array(User) #

[View source]
def new_chat_photo : Array(PhotoSize) #

[View source]
def new_chat_title : String | Nil #

[View source]
def photo : Array(PhotoSize) #

[View source]
def pin(**kwargs) #

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


[View source]
def poll : Poll | Nil #

[View source]
def reply(message, **kwargs) #

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


[View source]
def reply_markup : InlineKeyboardMarkup | Nil #

[View source]
def reply_message : Message | Nil #

[View source]
def reply_with_animation(*args, **kwargs) #

[View source]
def reply_with_audio(*args, **kwargs) #

[View source]
def reply_with_contact(*args, **kwargs) #

[View source]
def reply_with_dice(*args, **kwargs) #

[View source]
def reply_with_document(*args, **kwargs) #

[View source]
def reply_with_invoice(*args, **kwargs) #

[View source]
def reply_with_location(*args, **kwargs) #

[View source]
def reply_with_media_group(*args, **kwargs) #

[View source]
def reply_with_photo(*args, **kwargs) #

[View source]
def reply_with_poll(*args, **kwargs) #

[View source]
def reply_with_venu(*args, **kwargs) #

[View source]
def reply_with_video(*args, **kwargs) #

[View source]
def reply_with_video_note(*args, **kwargs) #

[View source]
def reply_with_voice(*args, **kwargs) #

[View source]
def respond(message, **kwargs) #

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


[View source]
def respond_with_animation(*args, **kwargs) #

[View source]
def respond_with_audio(*args, **kwargs) #

[View source]
def respond_with_contact(*args, **kwargs) #

[View source]
def respond_with_dice(*args, **kwargs) #

[View source]
def respond_with_document(*args, **kwargs) #

[View source]
def respond_with_invoice(*args, **kwargs) #

[View source]
def respond_with_location(*args, **kwargs) #

[View source]
def respond_with_media_group(*args, **kwargs) #

[View source]
def respond_with_photo(*args, **kwargs) #

[View source]
def respond_with_poll(*args, **kwargs) #

[View source]
def respond_with_venu(*args, **kwargs) #

[View source]
def respond_with_video(*args, **kwargs) #

[View source]
def respond_with_video_note(*args, **kwargs) #

[View source]
def respond_with_voice(*args, **kwargs) #

[View source]
def sticker : Sticker | Nil #

[View source]
def stop_live_location(**kwargs) #

[View source]
def successful_payment : SuccessfulPayment | Nil #

[View source]
def supergroup_chat_created : Bool | Nil #

[View source]
def text : String | Nil #

[View source]
def text_entities #

[View source]
def users #

[View source]
def users(&block : User -> ) #

[View source]
def venue : Venue | Nil #

[View source]
def video : Video | Nil #

[View source]
def video_note : VideoNote | Nil #

[View source]
def voice : Voice | Nil #

[View source]