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 animation : Animation | Nil #

[View source]
def audio : Audio | Nil #

[View source]
def author_signature : String | Nil #

[View source]
def automatic_forward? : Bool | 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 chat_shared : ChatShared | Nil #

[View source]
def chats #

[View source]
def chats(&block : Chat -> ) #

[View source]
def connected_website : String | Nil #

[View source]
def contact : Contact | Nil #

[View source]
def date : Time #

[View source]
def delete_chat_photo : Bool | Nil #

[View source]
def dice : Dice | Nil #

[View source]
def document : Document | Nil #

[View source]
def edit_date : Time | Nil #

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

[View source]
def file #

[View source]
def forum_topic_closed : ForumTopicClosed | Nil #

[View source]
def forum_topic_created : ForumTopicCreated | Nil #

[View source]
def forum_topic_edited : ForumTopicEdited | Nil #

[View source]
def forum_topic_reopened : ForumTopicReopened | Nil #

[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_sender_name : String | Nil #

[View source]
def forward_signature : String | Nil #

[View source]
def forwards : Int32 | Nil #

USER API ONLY


[View source]
def from : User | Nil #

[View source]
def game : Game | Nil #

[View source]
def general_forum_topic_hidden : GeneralForumTopicHidden | Nil #

[View source]
def general_forum_topic_unhidden : GeneralForumTopicUnhidden | Nil #

[View source]
def group_chat_created : Bool | Nil #

[View source]
def has_media_spoiler : Bool | Nil #

[View source]
def has_protected_content? : 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_auto_delete_timer_changed : MessageAutoDeleteTimerChanged | Nil #

[View source]
def message_id : Int64 #

[View source]
def message_thread_id : Int64 | Nil #

[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 outgoing? : Bool | Nil #

USER API ONLY


[View source]
def passport_data : PassportData | Nil #

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

[View source]
def pinned_message : Message | Nil #

[View source]
def poll : Poll | Nil #

[View source]
def proximity_alert_triggered : ProximityAlertTriggered | Nil #

[View source]
def reply_markup : InlineKeyboardMarkup | Nil #

[View source]
def reply_message : Message | Nil #

[View source]
def sender_chat : Chat | Nil #

[View source]
def sender_type #

[View source]
def sticker : Sticker | Nil #

[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(type : String) #

[View source]
def text_entities #

[View source]
def topic_message? : Bool | Nil #

[View source]
def user_shared : UserShared | Nil #

[View source]
def users #

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

[View source]
def venue : Venue | Nil #

[View source]
def via_bot : User | Nil #

[View source]
def video : Video | Nil #

[View source]
def video_chat_ended : VideoChatEnded | Nil #

[View source]
def video_chat_participants_invited : VideoChatParticipantsInvited | Nil #

[View source]
def video_chat_scheduled : VideoChatScheduled | Nil #

[View source]
def video_chat_started : VideoChatStarted | Nil #

[View source]
def video_note : VideoNote | Nil #

[View source]
def views : Int32 | Nil #

USER API ONLY


[View source]
def voice : Voice | Nil #

[View source]
def web_app_data : WebAppData | Nil #

[View source]