class Hamilton::Types::Message

Overview

This object represents a message.

Included Modules

Defined in:

types/message.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

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

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def animation : Hamilton::Types::Animation | Nil #

Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set.


def animation=(animation : Hamilton::Types::Animation | Nil) #

Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set.


def audio : Hamilton::Types::Audio | Nil #

Message is an audio file, information about the file.


def audio=(audio : Hamilton::Types::Audio | Nil) #

Message is an audio file, information about the file.


def author_signature : String | Nil #

Signature of the post author for messages in channels, or the custom title of an anonymous group administrator.


def author_signature=(author_signature : String | Nil) #

Signature of the post author for messages in channels, or the custom title of an anonymous group administrator.


def boost_added : Hamilton::Types::ChatBoostAdded | Nil #

Service message: user boosted the chat.


def boost_added=(boost_added : Hamilton::Types::ChatBoostAdded | Nil) #

Service message: user boosted the chat.


def business_connection_id : String | Nil #

Unique identifier of the business connection from which the message was received. If non-empty, the message belongs to a chat of the corresponding business account that is independent from any potential bot chat which might share the same identifier.


def business_connection_id=(business_connection_id : String | Nil) #

Unique identifier of the business connection from which the message was received. If non-empty, the message belongs to a chat of the corresponding business account that is independent from any potential bot chat which might share the same identifier.


def caption : String | Nil #

Caption for the animation, audio, document, paid media, photo, video or voice.


def caption=(caption : String | Nil) #

Caption for the animation, audio, document, paid media, photo, video or voice.


def caption_entities : Array(MessageEntity) | Nil #

For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption.


def caption_entities=(caption_entities : Array(MessageEntity) | Nil) #

For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption.


def channel_chat_created : Bool | Nil #

Service message: the channel has been created. This field can't be received in a message coming through updates, because bot can't be a member of a channel when it is created. It can only be found in reply_to_message if someone replies to a very first message in a channel.


def channel_chat_created=(channel_chat_created : Bool | Nil) #

Service message: the channel has been created. This field can't be received in a message coming through updates, because bot can't be a member of a channel when it is created. It can only be found in reply_to_message if someone replies to a very first message in a channel.


Chat the message belongs to.


def chat=(chat : Hamilton::Types::Chat) #

Chat the message belongs to.


def chat_background_set : Hamilton::Types::ChatBackground | Nil #

Service message: chat background set.


def chat_background_set=(chat_background_set : Hamilton::Types::ChatBackground | Nil) #

Service message: chat background set.


def chat_shared : Hamilton::Types::ChatShared | Nil #

Service message: a chat was shared with the bot.


def chat_shared=(chat_shared : Hamilton::Types::ChatShared | Nil) #

Service message: a chat was shared with the bot.


def checklist : Hamilton::Types::Checklist | Nil #

Message is a checklist.


def checklist=(checklist : Hamilton::Types::Checklist | Nil) #

Message is a checklist.


def checklist_tasks_added : Hamilton::Types::ChecklistTasksAdded | Nil #

Service message: tasks were added to a checklist.


def checklist_tasks_added=(checklist_tasks_added : Hamilton::Types::ChecklistTasksAdded | Nil) #

Service message: tasks were added to a checklist.


def checklist_tasks_done : Hamilton::Types::ChecklistTasksDone | Nil #

Service message: some tasks in a checklist were marked as done or not done.


def checklist_tasks_done=(checklist_tasks_done : Hamilton::Types::ChecklistTasksDone | Nil) #

Service message: some tasks in a checklist were marked as done or not done.


def contact : Hamilton::Types::Contact | Nil #

Message is a shared contact, information about the contact.


def contact=(contact : Hamilton::Types::Contact | Nil) #

Message is a shared contact, information about the contact.


def date : Int32 #

Date the message was sent in Unix time. It is always a positive number, representing a valid date.


def date=(date : Int32) #

Date the message was sent in Unix time. It is always a positive number, representing a valid date.


def delete_chat_photo : Bool | Nil #

Service message: the chat photo was deleted.


def delete_chat_photo=(delete_chat_photo : Bool | Nil) #

Service message: the chat photo was deleted.


def dice : Hamilton::Types::Dice | Nil #

Message is a dice with random value.


def dice=(dice : Hamilton::Types::Dice | Nil) #

Message is a dice with random value.


def direct_message_price_changed : Hamilton::Types::DirectMessagePriceChanged | Nil #

Service message: the price for paid messages in the corresponding direct messages chat of a channel has changed.


def direct_message_price_changed=(direct_message_price_changed : Hamilton::Types::DirectMessagePriceChanged | Nil) #

Service message: the price for paid messages in the corresponding direct messages chat of a channel has changed.


def direct_messages_topic : Hamilton::Types::DirectMessagesTopic | Nil #

Information about the direct messages chat topic that contains the message.


def direct_messages_topic=(direct_messages_topic : Hamilton::Types::DirectMessagesTopic | Nil) #

Information about the direct messages chat topic that contains the message.


def document : Hamilton::Types::Document | Nil #

Message is a general file, information about the file.


def document=(document : Hamilton::Types::Document | Nil) #

Message is a general file, information about the file.


def edit_date : Int32 | Nil #

Date the message was last edited in Unix time.


def edit_date=(edit_date : Int32 | Nil) #

Date the message was last edited in Unix time.


def effect_id : String | Nil #

Unique identifier of the message effect added to the message.


def effect_id=(effect_id : String | Nil) #

Unique identifier of the message effect added to the message.


def entities : Array(Hamilton::Types::MessageEntity) | Nil #

For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text.


def entities=(entities : Array(Hamilton::Types::MessageEntity) | Nil) #

For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text.


def external_reply : Hamilton::Types::ExternalReplyInfo | Nil #

Information about the message that is being replied to, which may come from another chat or forum topic.


def external_reply=(external_reply : Hamilton::Types::ExternalReplyInfo | Nil) #

Information about the message that is being replied to, which may come from another chat or forum topic.


def forum_topic_closed : Hamilton::Types::ForumTopicClosed | Nil #

Service message: forum topic closed.


def forum_topic_closed=(forum_topic_closed : Hamilton::Types::ForumTopicClosed | Nil) #

Service message: forum topic closed.


def forum_topic_created : Hamilton::Types::ForumTopicCreated | Nil #

Service message: forum topic created.


def forum_topic_created=(forum_topic_created : Hamilton::Types::ForumTopicCreated | Nil) #

Service message: forum topic created.


def forum_topic_edited : Hamilton::Types::ForumTopicEdited | Nil #

Service message: forum topic edited.


def forum_topic_edited=(forum_topic_edited : Hamilton::Types::ForumTopicEdited | Nil) #

Service message: forum topic edited.


def forum_topic_reopened : Hamilton::Types::ForumTopicReopened | Nil #

Service message: forum topic reopened.


def forum_topic_reopened=(forum_topic_reopened : Hamilton::Types::ForumTopicReopened | Nil) #

Service message: forum topic reopened.


def forward_origin : Hamilton::Types::MessageOrigin | Nil #

Information about the original message for forwarded messages.


def forward_origin=(forward_origin : Hamilton::Types::MessageOrigin | Nil) #

Information about the original message for forwarded messages.


def from : Hamilton::Types::User | Nil #

Sender of the message; may be empty for messages sent to channels. For backward compatibility, if the message was sent on behalf of a chat, the field contains a fake sender user in non-channel chats.


def from=(from : Hamilton::Types::User | Nil) #

Sender of the message; may be empty for messages sent to channels. For backward compatibility, if the message was sent on behalf of a chat, the field contains a fake sender user in non-channel chats.


def game : Hamilton::Types::Game | Nil #

Message is a game, information about the game.


def game=(game : Hamilton::Types::Game | Nil) #

Message is a game, information about the game.


def general_forum_topic_hidden : Hamilton::Types::GeneralForumTopicHidden | Nil #

Service message: the 'General' forum topic hidden.


def general_forum_topic_hidden=(general_forum_topic_hidden : Hamilton::Types::GeneralForumTopicHidden | Nil) #

Service message: the 'General' forum topic hidden.


def general_forum_topic_unhidden : Hamilton::Types::GeneralForumTopicUnhidden | Nil #

Service message: the 'General' forum topic unhidden.


def general_forum_topic_unhidden=(general_forum_topic_unhidden : Hamilton::Types::GeneralForumTopicUnhidden | Nil) #

Service message: the 'General' forum topic unhidden.


def gift : Hamilton::Types::GiftInfo | Nil #

Service message: a regular gift was sent or received.


def gift=(gift : Hamilton::Types::GiftInfo | Nil) #

Service message: a regular gift was sent or received.


def giveaway : Hamilton::Types::Giveaway | Nil #

The message is a scheduled giveaway message.


def giveaway=(giveaway : Hamilton::Types::Giveaway | Nil) #

The message is a scheduled giveaway message.


def giveaway_completed : Hamilton::Types::GiveawayCompleted | Nil #

Service message: a giveaway without public winners was completed.


def giveaway_completed=(giveaway_completed : Hamilton::Types::GiveawayCompleted | Nil) #

Service message: a giveaway without public winners was completed.


def giveaway_created : Hamilton::Types::GiveawayCreated | Nil #

Service message: a scheduled giveaway was created.


def giveaway_created=(giveaway_created : Hamilton::Types::GiveawayCreated | Nil) #

Service message: a scheduled giveaway was created.


def giveaway_winners : Hamilton::Types::GiveawayWinners | Nil #

A giveaway with public winners was completed.


def giveaway_winners=(giveaway_winners : Hamilton::Types::GiveawayWinners | Nil) #

A giveaway with public winners was completed.


def group_chat_created : Bool | Nil #

Service message: the group has been created.


def group_chat_created=(group_chat_created : Bool | Nil) #

Service message: the group has been created.


def has_media_spoiler : Bool | Nil #

True, if the message media is covered by a spoiler animation.


def has_media_spoiler=(has_media_spoiler : Bool | Nil) #

True, if the message media is covered by a spoiler animation.


def has_protected_content : Bool | Nil #

True, if the message can't be forwarded.


def has_protected_content=(has_protected_content : Bool | Nil) #

True, if the message can't be forwarded.


def invoice : Hamilton::Types::Invoice | Nil #

Message is an invoice for a payment, information about the invoice.


def invoice=(invoice : Hamilton::Types::Invoice | Nil) #

Message is an invoice for a payment, information about the invoice.


def is_automatic_forward : Bool | Nil #

True, if the message is a channel post that was automatically forwarded to the connected discussion group.


def is_automatic_forward=(is_automatic_forward : Bool | Nil) #

True, if the message is a channel post that was automatically forwarded to the connected discussion group.


def is_from_offline : Bool | Nil #

True, if the message was sent by an implicit action, for example, as an away or a greeting business message, or as a scheduled message.


def is_from_offline=(is_from_offline : Bool | Nil) #

True, if the message was sent by an implicit action, for example, as an away or a greeting business message, or as a scheduled message.


def is_paid_post : Bool | Nil #

True, if the message is a paid post. Note that such posts must not be deleted for 24 hours to receive the payment and can't be edited.


def is_paid_post=(is_paid_post : Bool | Nil) #

True, if the message is a paid post. Note that such posts must not be deleted for 24 hours to receive the payment and can't be edited.


def is_topic_message : Bool | Nil #

True, if the message is sent to a forum topic.


def is_topic_message=(is_topic_message : Bool | Nil) #

True, if the message is sent to a forum topic.


def left_chat_member : Hamilton::Types::User | Nil #

A member was removed from the group, information about them (this member may be the bot itself).


def left_chat_member=(left_chat_member : Hamilton::Types::User | Nil) #

A member was removed from the group, information about them (this member may be the bot itself).


def link_preview_options : Hamilton::Types::LinkPreviewOptions | Nil #

Options used for link preview generation for the message, if it is a text message and link preview options were changed.


def link_preview_options=(link_preview_options : Hamilton::Types::LinkPreviewOptions | Nil) #

Options used for link preview generation for the message, if it is a text message and link preview options were changed.


def location : Hamilton::Types::Location | Nil #

Message is a shared location, information about the location.


def location=(location : Hamilton::Types::Location | Nil) #

Message is a shared location, information about the location.


def media_group_id : String | Nil #

The unique identifier of a media message group this message belongs to.


def media_group_id=(media_group_id : String | Nil) #

The unique identifier of a media message group this message belongs to.


def message_auto_delete_timer_changed : Hamilton::Types::MessageAutoDeleteTimerChanged | Nil #

Service message: auto-delete timer settings changed in the chat.


def message_auto_delete_timer_changed=(message_auto_delete_timer_changed : Hamilton::Types::MessageAutoDeleteTimerChanged | Nil) #

Service message: auto-delete timer settings changed in the chat.


def message_id : Int32 #

Unique message identifier inside this chat. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be 0 and the relevant message will be unusable until it is actually sent.


def message_id=(message_id : Int32) #

Unique message identifier inside this chat. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be 0 and the relevant message will be unusable until it is actually sent.


def message_thread_id : Int32 | Nil #

Unique identifier of a message thread to which the message belongs; for supergroups only.


def message_thread_id=(message_thread_id : Int32 | Nil) #

Unique identifier of a message thread to which the message belongs; for supergroups only.


def migrate_from_chat_id : Int64 | Nil #

The supergroup has been migrated from a group with the specified identifier.


def migrate_from_chat_id=(migrate_from_chat_id : Int64 | Nil) #

The supergroup has been migrated from a group with the specified identifier.


def migrate_to_chat_id : Int64 | Nil #

The group has been migrated to a supergroup with the specified identifier.


def migrate_to_chat_id=(migrate_to_chat_id : Int64 | Nil) #

The group has been migrated to a supergroup with the specified identifier.


def new_chat_members : Array(Hamilton::Types::User) | Nil #

New members that were added to the group or supergroup and information about them (the bot itself may be one of these members).


def new_chat_members=(new_chat_members : Array(Hamilton::Types::User) | Nil) #

New members that were added to the group or supergroup and information about them (the bot itself may be one of these members).


def new_chat_photo : Array(Hamilton::Types::PhotoSize) | Nil #

A chat photo was change to this value.


def new_chat_photo=(new_chat_photo : Array(Hamilton::Types::PhotoSize) | Nil) #

A chat photo was change to this value.


def new_chat_title : String | Nil #

A chat title was changed to this value.


def new_chat_title=(new_chat_title : String | Nil) #

A chat title was changed to this value.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def passport_data : Hamilton::Types::PassportData | Nil #

Telegram Passport data.


def passport_data=(passport_data : Hamilton::Types::PassportData | Nil) #

Telegram Passport data.


def photo : Array(Hamilton::Types::PhotoSize) | Nil #

Message is a photo, available sizes of the photo.


def photo=(photo : Array(Hamilton::Types::PhotoSize) | Nil) #

Message is a photo, available sizes of the photo.


def pinned_message : Hamilton::Types::MaybeInaccessibleMessage | Nil #

Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.


def pinned_message=(pinned_message : Hamilton::Types::MaybeInaccessibleMessage | Nil) #

Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.


def poll : Hamilton::Types::Poll | Nil #

Message is a native poll, information about the poll.


def poll=(poll : Hamilton::Types::Poll | Nil) #

Message is a native poll, information about the poll.


def proximity_alert_triggered : Hamilton::Types::ProximityAlertTriggered | Nil #

Service message. A user in the chat triggered another user's proximity alert while sharing Live Location.


def proximity_alert_triggered=(proximity_alert_triggered : Hamilton::Types::ProximityAlertTriggered | Nil) #

Service message. A user in the chat triggered another user's proximity alert while sharing Live Location.


def quote : Hamilton::Types::TextQuote | Nil #

For replies that quote part of the original message, the quoted part of the message.


def quote=(quote : Hamilton::Types::TextQuote | Nil) #

For replies that quote part of the original message, the quoted part of the message.


def refunded_payment : Hamilton::Types::RefundedPayment | Nil #

Message is a service message about a refunded payment, information about the payment.


def refunded_payment=(refunded_payment : Hamilton::Types::RefundedPayment | Nil) #

Message is a service message about a refunded payment, information about the payment.


def reply_markup : Hamilton::Types::InlineKeyboardMarkup | Nil #

Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.


def reply_markup=(reply_markup : Hamilton::Types::InlineKeyboardMarkup | Nil) #

Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.


def reply_to_checklist_task_id : Int32 | Nil #

Identifier of the specific checklist task that is being replied to.


def reply_to_checklist_task_id=(reply_to_checklist_task_id : Int32 | Nil) #

Identifier of the specific checklist task that is being replied to.


def reply_to_message : Hamilton::Types::Message | Nil #

For replies in the same chat and message thread, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.


def reply_to_message=(reply_to_message : Hamilton::Types::Message | Nil) #

For replies in the same chat and message thread, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.


def reply_to_story : Hamilton::Types::Story | Nil #

For replies to a story, the original story.


def reply_to_story=(reply_to_story : Hamilton::Types::Story | Nil) #

For replies to a story, the original story.


def sender_boost_count : Int32 | Nil #

If the sender of the message boosted the chat, the number of boosts added by the user.


def sender_boost_count=(sender_boost_count : Int32 | Nil) #

If the sender of the message boosted the chat, the number of boosts added by the user.


def sender_business_bot : Hamilton::Types::User | Nil #

The bot that actually sent the message on behalf of the business account. Available only for outgoing messages sent on behalf of the connected business account.


def sender_business_bot=(sender_business_bot : Hamilton::Types::User | Nil) #

The bot that actually sent the message on behalf of the business account. Available only for outgoing messages sent on behalf of the connected business account.


def sender_chat : Hamilton::Types::Chat | Nil #

Sender of the message when sent on behalf of a chat. For example, the supergroup itself for messages sent by its anonymous administrators or a linked channel for messages automatically forwarded to the channel's discussion group. For backward compatibility, if the message was sent on behalf of a chat, the field from contains a fake sender user in non-channel chats.


def sender_chat=(sender_chat : Hamilton::Types::Chat | Nil) #

Sender of the message when sent on behalf of a chat. For example, the supergroup itself for messages sent by its anonymous administrators or a linked channel for messages automatically forwarded to the channel's discussion group. For backward compatibility, if the message was sent on behalf of a chat, the field from contains a fake sender user in non-channel chats.


def show_caption_above_media : Bool | Nil #

True, if the caption must be shown above the message media.


def show_caption_above_media=(show_caption_above_media : Bool | Nil) #

True, if the caption must be shown above the message media.


def sticker : Hamilton::Types::Sticker | Nil #

Message is a sticker, information about the sticker.


def sticker=(sticker : Hamilton::Types::Sticker | Nil) #

Message is a sticker, information about the sticker.


def story : Hamilton::Types::Story | Nil #

Message is a forwarded story.


def story=(story : Hamilton::Types::Story | Nil) #

Message is a forwarded story.


def successful_payment : Hamilton::Types::SuccessfulPayment | Nil #

Message is a service message about a successful payment, information about the payment.


def successful_payment=(successful_payment : Hamilton::Types::SuccessfulPayment | Nil) #

Message is a service message about a successful payment, information about the payment.


def suggested_post_approval_failed : Hamilton::Types::SuggestedPostApprovalFailed | Nil #

Service message: approval of a suggested post has failed.


def suggested_post_approval_failed=(suggested_post_approval_failed : Hamilton::Types::SuggestedPostApprovalFailed | Nil) #

Service message: approval of a suggested post has failed.


def suggested_post_approved : Hamilton::Types::SuggestedPostApproved | Nil #

Service message: a suggested post was approved.


def suggested_post_approved=(suggested_post_approved : Hamilton::Types::SuggestedPostApproved | Nil) #

Service message: a suggested post was approved.


def suggested_post_declined : Hamilton::Types::SuggestedPostDeclined | Nil #

Service message: a suggested post was declined.


def suggested_post_declined=(suggested_post_declined : Hamilton::Types::SuggestedPostDeclined | Nil) #

Service message: a suggested post was declined.


def suggested_post_info : Hamilton::Types::SuggestedPostInfo | Nil #

Information about suggested post parameters if the message is a suggested post in a channel direct messages chat. If the message is an approved or declined suggested post, then it can't be edited.


def suggested_post_info=(suggested_post_info : Hamilton::Types::SuggestedPostInfo | Nil) #

Information about suggested post parameters if the message is a suggested post in a channel direct messages chat. If the message is an approved or declined suggested post, then it can't be edited.


def suggested_post_paid : Hamilton::Types::SuggestedPostPaid | Nil #

Service message: payment for a suggested post was received.


def suggested_post_paid=(suggested_post_paid : Hamilton::Types::SuggestedPostPaid | Nil) #

Service message: payment for a suggested post was received.


def suggested_post_refunded : Hamilton::Types::SuggestedPostRefunded | Nil #

Service message: payment for a suggested post was refunded.


def suggested_post_refunded=(suggested_post_refunded : Hamilton::Types::SuggestedPostRefunded | Nil) #

Service message: payment for a suggested post was refunded.


def supergroup_chat_created : Bool | Nil #

Service message: the supergroup has been created. This field can't be received in a message coming through updates, because bot can't be a member of a supergroup when it is created. It can only be found in reply_to_message if someone replies to a very first message in a directly created supergroup.


def supergroup_chat_created=(supergroup_chat_created : Bool | Nil) #

Service message: the supergroup has been created. This field can't be received in a message coming through updates, because bot can't be a member of a supergroup when it is created. It can only be found in reply_to_message if someone replies to a very first message in a directly created supergroup.


def text : String | Nil #

For text messages, the actual UTF-8 text of the message.


def text=(text : String | Nil) #

For text messages, the actual UTF-8 text of the message.


def unique_gift : Hamilton::Types::UniqueGiftInfo | Nil #

Service message: a unique gift was sent or received.


def unique_gift=(unique_gift : Hamilton::Types::UniqueGiftInfo | Nil) #

Service message: a unique gift was sent or received.


def users_shared : Hamilton::Types::UsersShared | Nil #

Service message: users were shared with the bot.


def users_shared=(users_shared : Hamilton::Types::UsersShared | Nil) #

Service message: users were shared with the bot.


def venue : Hamilton::Types::Venue | Nil #

Message is a venue, information about the venue. For backward compatibility, when this field is set, the location field will also be set.


def venue=(venue : Hamilton::Types::Venue | Nil) #

Message is a venue, information about the venue. For backward compatibility, when this field is set, the location field will also be set.


def via_bot : Hamilton::Types::User | Nil #

Bot through which the message was sent.


def via_bot=(via_bot : Hamilton::Types::User | Nil) #

Bot through which the message was sent.


def video : Hamilton::Types::Video | Nil #

Message is a video, information about the video.


def video=(video : Hamilton::Types::Video | Nil) #

Message is a video, information about the video.


def video_chat_ended : Hamilton::Types::VideoChatEnded | Nil #

Service message: video chat ended.


def video_chat_ended=(video_chat_ended : Hamilton::Types::VideoChatEnded | Nil) #

Service message: video chat ended.


def video_chat_participants_invited : Hamilton::Types::VideoChatParticipantsInvited | Nil #

Service message: new participants invited to a video chat.


def video_chat_participants_invited=(video_chat_participants_invited : Hamilton::Types::VideoChatParticipantsInvited | Nil) #

Service message: new participants invited to a video chat.


def video_chat_scheduled : Hamilton::Types::VideoChatScheduled | Nil #

Service message: video chat scheduled.


def video_chat_scheduled=(video_chat_scheduled : Hamilton::Types::VideoChatScheduled | Nil) #

Service message: video chat scheduled.


def video_chat_started : Hamilton::Types::VideoChatStarted | Nil #

Service message: video chat started.


def video_chat_started=(video_chat_started : Hamilton::Types::VideoChatStarted | Nil) #

Service message: video chat started.


def video_note : Hamilton::Types::VideoNote | Nil #

Message is a video note, information about the video message.


def video_note=(video_note : Hamilton::Types::VideoNote | Nil) #

Message is a video note, information about the video message.


def voice : Hamilton::Types::Voice | Nil #

Message is a voice message, information about the file.


def voice=(voice : Hamilton::Types::Voice | Nil) #

Message is a voice message, information about the file.


def web_app_data : Hamilton::Types::WebAppData | Nil #

Service message: data sent by a Web App.


def web_app_data=(web_app_data : Hamilton::Types::WebAppData | Nil) #

Service message: data sent by a Web App.


def write_access_allowed : Hamilton::Types::WriteAccessAllowed | Nil #

Service message: the user allowed the bot to write messages after adding it to the attachment or side menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess.


def write_access_allowed=(write_access_allowed : Hamilton::Types::WriteAccessAllowed | Nil) #

Service message: the user allowed the bot to write messages after adding it to the attachment or side menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess.