class TelegramBot::Models::Message

Overview

https://core.telegram.org/bots/api#message

TODO Implement missing keys

Defined in:

telegram_bot/models.cr

Constructors

Instance Method Summary

Constructor methods inherited from class TelegramBot::Models::Base

new(pull : JSON::PullParser) new

Constructor Detail

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

https://core.telegram.org/bots/api#message

TODO Implement missing keys


[View source]

Instance Method Detail

def animation : Animation | Nil #

property audio : Audio? property document : Document?


[View source]
def animation=(animation : Animation | Nil) #

property audio : Audio? property document : Document?


[View source]
def author_signature : String | Nil #

[View source]
def author_signature=(author_signature : String | Nil) #

[View source]
def caption : String | Nil #

property voice : Voice? property video_note : VideoNote?


[View source]
def caption=(caption : String | Nil) #

property voice : Voice? property video_note : VideoNote?


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

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

[View source]
def channel_chat_created : Bool | Nil #

[View source]
def channel_chat_created=(channel_chat_created : Bool | Nil) #

[View source]
def chat : Chat #

[View source]
def chat=(chat : Chat) #

[View source]
def connected_website : String | Nil #

[View source]
def connected_website=(connected_website : String | Nil) #

[View source]
def contact : Contact | Nil #

[View source]
def contact=(contact : Contact | Nil) #

[View source]
def date : Int32 #

[View source]
def date=(date : Int32) #

[View source]
def delete_chat_photo : Bool | Nil #

[View source]
def delete_chat_photo=(delete_chat_photo : Bool | Nil) #

[View source]
def edit_date : Int32 | Nil #

[View source]
def edit_date=(edit_date : Int32 | Nil) #

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

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

[View source]
def forward_date : Int32 | Nil #

[View source]
def forward_date=(forward_date : Int32 | Nil) #

[View source]
def forward_from : User | Nil #

[View source]
def forward_from=(forward_from : User | Nil) #

[View source]
def forward_from_chat : Chat | Nil #

[View source]
def forward_from_chat=(forward_from_chat : Chat | Nil) #

[View source]
def forward_from_message_id : Int32 | Nil #

[View source]
def forward_from_message_id=(forward_from_message_id : Int32 | Nil) #

[View source]
def forward_sender_name : String | Nil #

[View source]
def forward_sender_name=(forward_sender_name : String | Nil) #

[View source]
def forward_signature : String | Nil #

[View source]
def forward_signature=(forward_signature : String | Nil) #

[View source]
def from : User | Nil #

[View source]
def from=(from : User | Nil) #

[View source]
def group_chat_created : Bool | Nil #

[View source]
def group_chat_created=(group_chat_created : Bool | Nil) #

[View source]
def invoice : Invoice | Nil #

[View source]
def invoice=(invoice : Invoice | Nil) #

[View source]
def left_chat_member : User | Nil #

[View source]
def left_chat_member=(left_chat_member : User | Nil) #

[View source]
def location : Location | Nil #

[View source]
def location=(location : Location | Nil) #

[View source]
def media_group_id : String | Nil #

[View source]
def media_group_id=(media_group_id : String | Nil) #

[View source]
def message_id : Int32 #

[View source]
def message_id=(message_id : Int32) #

[View source]
def migrate_from_chat_id : Int64 | Nil #

[View source]
def migrate_from_chat_id=(migrate_from_chat_id : Int64 | Nil) #

[View source]
def migrate_to_chat_id : Int64 | Nil #

[View source]
def migrate_to_chat_id=(migrate_to_chat_id : Int64 | Nil) #

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

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

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

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

[View source]
def new_chat_title : String | Nil #

[View source]
def new_chat_title=(new_chat_title : String | Nil) #

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

property game : Game?


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

property game : Game?


[View source]
def pinned_message : Message | Nil #

[View source]
def pinned_message=(pinned_message : Message | Nil) #

[View source]
def poll : Poll | Nil #

[View source]
def poll=(poll : Poll | Nil) #

[View source]
def reply_markup : InlineKeyboardMarkup | Nil #

property passport_data : PassportData?


[View source]
def reply_markup=(reply_markup : InlineKeyboardMarkup | Nil) #

property passport_data : PassportData?


[View source]
def reply_to_message : Message | Nil #

[View source]
def reply_to_message=(reply_to_message : Message | Nil) #

[View source]
def successful_payment : SuccessfulPayment | Nil #

[View source]
def successful_payment=(successful_payment : SuccessfulPayment | Nil) #

[View source]
def supergroup_chat_created : Bool | Nil #

[View source]
def supergroup_chat_created=(supergroup_chat_created : Bool | Nil) #

[View source]
def text : String | Nil #

[View source]
def text=(text : String | Nil) #

[View source]
def venue : Venue | Nil #

[View source]
def venue=(venue : Venue | Nil) #

[View source]
def video : Video | Nil #

property sticker : Sticker?


[View source]
def video=(video : Video | Nil) #

property sticker : Sticker?


[View source]