class Tourmaline::Message

Overview

This object represents a Telegram user or bot.

Included Modules

Defined in:

Constructors

Instance Method Summary

Constructor Detail

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

Instance Method Detail

def audio : Audio? #

def author_signature : String? #

def caption : String? #

def caption_entities : Array(MessageEntity) #

def channel_chat_created : Bool? #

def chat : Chat #

def chats #

def chats(&block : Chat -> ) #

def client : Tourmaline::Client #

def client=(client : Tourmaline::Client) #

def client? : Tourmaline::Client? #

def connected_website : String? #

def contact : Contact? #

def date : Time #

def delete #

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


def delete_chat_photo : Bool? #

def dice : Dice? #

def document : Document? #

def edit_caption(caption, **kwargs) #

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


def edit_date : Time? #

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 entities : Array(MessageEntity) #

def forward(to_chat, **kwargs) #

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


def forward_date : Time? #

def forward_from : User? #

def forward_from_chat : Chat? #

def forward_from_message_id : Int64? #

def forward_signature : String? #

def from : User? #

def game : Game? #

def group_chat_created : Bool? #

def invoice : Invoice? #

def left_chat_member : User? #

def link #

def location : Location? #

def media_group_id : String? #

def message_id : Int64 #

def migrate_from_chat_id : Int64? #

def migrate_to_chat_id : Int64? #

def new_chat_members : Array(User) #

def new_chat_photo : Array(PhotoSize) #

def new_chat_title : String? #

def passport_data : PassportData? #

def photo : Array(PhotoSize) #

def pin(**kwargs) #

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


def poll : Poll? #

def raw_caption(parse_mode : ParseMode = :markdown) #

def raw_text(parse_mode : ParseMode = :markdown) #

def reply(message, **kwargs) #

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


def reply_markup : InlineKeyboardMarkup? #

def reply_message : Message? #

def reply_with_animation(*args, **kwargs) #

def reply_with_audio(*args, **kwargs) #

def reply_with_basket(*args, **kwargs) #

def reply_with_contact(*args, **kwargs) #

def reply_with_dart(*args, **kwargs) #

def reply_with_dice(*args, **kwargs) #

def reply_with_document(*args, **kwargs) #

def reply_with_invoice(*args, **kwargs) #

def reply_with_location(*args, **kwargs) #

def reply_with_media_group(*args, **kwargs) #

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

def reply_with_photo(*args, **kwargs) #

def reply_with_poll(*args, **kwargs) #

def reply_with_venu(*args, **kwargs) #

def reply_with_video(*args, **kwargs) #

def reply_with_video_note(*args, **kwargs) #

def reply_with_voice(*args, **kwargs) #

def respond(message, **kwargs) #

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


def respond_with_animation(*args, **kwargs) #

def respond_with_audio(*args, **kwargs) #

def respond_with_basket(*args, **kwargs) #

def respond_with_contact(*args, **kwargs) #

def respond_with_dart(*args, **kwargs) #

def respond_with_dice(*args, **kwargs) #

def respond_with_document(*args, **kwargs) #

def respond_with_invoice(*args, **kwargs) #

def respond_with_location(*args, **kwargs) #

def respond_with_media_group(*args, **kwargs) #

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

def respond_with_photo(*args, **kwargs) #

def respond_with_poll(*args, **kwargs) #

def respond_with_venu(*args, **kwargs) #

def respond_with_video(*args, **kwargs) #

def respond_with_video_note(*args, **kwargs) #

def respond_with_voice(*args, **kwargs) #

def sticker : Sticker? #

def stop_live_location(**kwargs) #

def successful_payment : SuccessfulPayment? #

def supergroup_chat_created : Bool? #

def text : String? #

def text_entities #

def users(&block : User -> ) #

def users #

def venue : Venue? #

def via_bot : User? #

def video : Video? #

def video_note : VideoNote? #

def voice : Voice? #