class

Tourmaline::Message

Inherits Tourmaline::Model < JSON::Serializable < Reference < Object

This object represents a Telegram user or bot.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

animation
Source
audio
Source
author_signature
Source
automatic_forward?
Source
caption
Source
caption_entities
Source
channel_chat_created
Source
chat
Source
chats
Source
chats
Source
connected_website
Source
contact
Source
date
Source
delete

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

Source
delete_chat_photo
Source
dice
Source
document
Source
edit_caption(caption, **kwargs)

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

Source
edit_date
Source
edit_live_location(latitude, longitude, **kwargs)

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

Source
edit_media(media, **kwargs)

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

Source
edit_reply_markup(reply_markup)

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

Source
edit_text(text, **kwargs)

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

Source
entities
Source
file
Source
forum_topic_closed
Source
forum_topic_created
Source
forum_topic_reopened
Source
forward(to_chat, **kwargs)

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

Source
forward_date
Source
forward_from
Source
forward_from_chat
Source
forward_from_message_id
Source
forward_sender_name
Source
forward_signature
Source
forwards

USER API ONLY

Source
from
Source
game
Source
group_chat_created
Source
has_protected_content?
Source
invoice
Source
left_chat_member
Source
location
Source
media_group_id
Source
message_auto_delete_timer_changed
Source
message_id
Source
message_thread_id
Source
migrate_from_chat_id
Source
migrate_to_chat_id
Source
new_chat_members
Source
new_chat_photo
Source
new_chat_title
Source
outgoing?

USER API ONLY

Source
passport_data
Source
photo
Source
pin

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

Source
pinned_message
Source
poll
Source
proximity_alert_triggered
Source
raw_caption(parse_mode : ParseMode = :markdown, escape : Bool = false)
Source
raw_text(parse_mode : ParseMode = :markdown, escape : Bool = false)
Source
reply(message, **kwargs)

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

Source
reply_markup
Source
reply_message
Source
reply_with_animation(*args, **kwargs)
Source
reply_with_audio(*args, **kwargs)
Source
reply_with_basketball(*args, **kwargs)
Source
reply_with_contact(*args, **kwargs)
Source
reply_with_dart(*args, **kwargs)
Source
reply_with_dice(*args, **kwargs)
Source
reply_with_document(*args, **kwargs)
Source
reply_with_invoice(*args, **kwargs)
Source
reply_with_location(*args, **kwargs)
Source
reply_with_media_group(*args, **kwargs)
Source
reply_with_menu(menu : RoutedMenu, **kwargs)
Source
reply_with_paginated_keyboard(keyboard : PaginatedKeyboard, **kwargs)
Source
reply_with_photo(*args, **kwargs)
Source
reply_with_poll(*args, **kwargs)
Source
reply_with_sticker(*args, **kwargs)
Source
reply_with_venu(*args, **kwargs)
Source
reply_with_video(*args, **kwargs)
Source
reply_with_video_note(*args, **kwargs)
Source
reply_with_voice(*args, **kwargs)
Source
respond(message, **kwargs)

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

Source
respond_with_animation(*args, **kwargs)
Source
respond_with_audio(*args, **kwargs)
Source
respond_with_basketball(*args, **kwargs)
Source
respond_with_contact(*args, **kwargs)
Source
respond_with_dart(*args, **kwargs)
Source
respond_with_dice(*args, **kwargs)
Source
respond_with_document(*args, **kwargs)
Source
respond_with_invoice(*args, **kwargs)
Source
respond_with_location(*args, **kwargs)
Source
respond_with_media_group(*args, **kwargs)
Source
respond_with_menu(menu : RoutedMenu, **kwargs)
Source
respond_with_paginated_keyboard(keyboard : PaginatedKeyboard, **kwargs)
Source
respond_with_photo(*args, **kwargs)
Source
respond_with_poll(*args, **kwargs)
Source
respond_with_sticker(*args, **kwargs)
Source
respond_with_venu(*args, **kwargs)
Source
respond_with_video(*args, **kwargs)
Source
respond_with_video_note(*args, **kwargs)
Source
respond_with_voice(*args, **kwargs)
Source
sender_chat
Source
sender_type
Source
sticker
Source
stop_live_location
Source
successful_payment
Source
supergroup_chat_created
Source
text
Source
text_entities
Source
topic_message?
Source
unpin

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

Source
users
Source
users
Source
venue
Source
via_bot
Source
video
Source
video_chat_ended
Source
video_chat_participants_invited
Source
video_chat_scheduled
Source
video_chat_started
Source
video_note
Source
views

USER API ONLY

Source
voice
Source
web_app_data
Source

Nested types