Module: Telegram::Bot::Types

Defined in:
lib/telegram/bot/types.rb,
lib/telegram/bot/types/base.rb,
lib/telegram/bot/types/chat.rb,
lib/telegram/bot/types/dice.rb,
lib/telegram/bot/types/file.rb,
lib/telegram/bot/types/game.rb,
lib/telegram/bot/types/gift.rb,
lib/telegram/bot/types/link.rb,
lib/telegram/bot/types/poll.rb,
lib/telegram/bot/types/user.rb,
lib/telegram/bot/types/audio.rb,
lib/telegram/bot/types/error.rb,
lib/telegram/bot/types/gifts.rb,
lib/telegram/bot/types/story.rb,
lib/telegram/bot/types/venue.rb,
lib/telegram/bot/types/video.rb,
lib/telegram/bot/types/voice.rb,
lib/telegram/bot/types/update.rb,
lib/telegram/bot/types/contact.rb,
lib/telegram/bot/types/invoice.rb,
lib/telegram/bot/types/message.rb,
lib/telegram/bot/types/sticker.rb,
lib/telegram/bot/types/bot_name.rb,
lib/telegram/bot/types/document.rb,
lib/telegram/bot/types/giveaway.rb,
lib/telegram/bot/types/location.rb,
lib/telegram/bot/types/animation.rb,
lib/telegram/bot/types/birthdate.rb,
lib/telegram/bot/types/checklist.rb,
lib/telegram/bot/types/community.rb,
lib/telegram/bot/types/gift_info.rb,
lib/telegram/bot/types/login_url.rb,
lib/telegram/bot/types/rich_text.rb,
lib/telegram/bot/types/chat_boost.rb,
lib/telegram/bot/types/chat_photo.rb,
lib/telegram/bot/types/input_file.rb,
lib/telegram/bot/types/live_photo.rb,
lib/telegram/bot/types/message_id.rb,
lib/telegram/bot/types/order_info.rb,
lib/telegram/bot/types/owned_gift.rb,
lib/telegram/bot/types/paid_media.rb,
lib/telegram/bot/types/photo_size.rb,
lib/telegram/bot/types/poll_media.rb,
lib/telegram/bot/types/rich_block.rb,
lib/telegram/bot/types/story_area.rb,
lib/telegram/bot/types/text_quote.rb,
lib/telegram/bot/types/video_note.rb,
lib/telegram/bot/types/bot_command.rb,
lib/telegram/bot/types/chat_member.rb,
lib/telegram/bot/types/chat_shared.rb,
lib/telegram/bot/types/compactable.rb,
lib/telegram/bot/types/force_reply.rb,
lib/telegram/bot/types/forum_topic.rb,
lib/telegram/bot/types/input_media.rb,
lib/telegram/bot/types/menu_button.rb,
lib/telegram/bot/types/owned_gifts.rb,
lib/telegram/bot/types/poll_answer.rb,
lib/telegram/bot/types/poll_option.rb,
lib/telegram/bot/types/shared_user.rb,
lib/telegram/bot/types/star_amount.rb,
lib/telegram/bot/types/sticker_set.rb,
lib/telegram/bot/types/unique_gift.rb,
lib/telegram/bot/types/user_rating.rb,
lib/telegram/bot/types/inline_query.rb,
lib/telegram/bot/types/rich_message.rb,
lib/telegram/bot/types/users_shared.rb,
lib/telegram/bot/types/web_app_data.rb,
lib/telegram/bot/types/web_app_info.rb,
lib/telegram/bot/types/webhook_info.rb,
lib/telegram/bot/types/callback_game.rb,
lib/telegram/bot/types/chat_location.rb,
lib/telegram/bot/types/input_sticker.rb,
lib/telegram/bot/types/labeled_price.rb,
lib/telegram/bot/types/mask_position.rb,
lib/telegram/bot/types/passport_data.rb,
lib/telegram/bot/types/passport_file.rb,
lib/telegram/bot/types/reaction_type.rb,
lib/telegram/bot/types/rich_text_url.rb,
lib/telegram/bot/types/video_quality.rb,
lib/telegram/bot/types/affiliate_info.rb,
lib/telegram/bot/types/business_intro.rb,
lib/telegram/bot/types/callback_query.rb,
lib/telegram/bot/types/chat_full_info.rb,
lib/telegram/bot/types/checklist_task.rb,
lib/telegram/bot/types/message_entity.rb,
lib/telegram/bot/types/message_origin.rb,
lib/telegram/bot/types/reaction_count.rb,
lib/telegram/bot/types/rich_block_map.rb,
lib/telegram/bot/types/rich_text_bold.rb,
lib/telegram/bot/types/rich_text_code.rb,
lib/telegram/bot/types/shipping_query.rb,
lib/telegram/bot/types/background_fill.rb,
lib/telegram/bot/types/background_type.rb,
lib/telegram/bot/types/bot_description.rb,
lib/telegram/bot/types/chat_background.rb,
lib/telegram/bot/types/chat_owner_left.rb,
lib/telegram/bot/types/game_high_score.rb,
lib/telegram/bot/types/gift_background.rb,
lib/telegram/bot/types/input_checklist.rb,
lib/telegram/bot/types/keyboard_button.rb,
lib/telegram/bot/types/paid_media_info.rb,
lib/telegram/bot/types/rich_block_list.rb,
lib/telegram/bot/types/shipping_option.rb,
lib/telegram/bot/types/story_area_type.rb,
lib/telegram/bot/types/chat_boost_added.rb,
lib/telegram/bot/types/chat_invite_link.rb,
lib/telegram/bot/types/chat_member_left.rb,
lib/telegram/bot/types/chat_permissions.rb,
lib/telegram/bot/types/copy_text_button.rb,
lib/telegram/bot/types/giveaway_created.rb,
lib/telegram/bot/types/giveaway_winners.rb,
lib/telegram/bot/types/input_media_link.rb,
lib/telegram/bot/types/input_paid_media.rb,
lib/telegram/bot/types/input_poll_media.rb,
lib/telegram/bot/types/input_rich_block.rb,
lib/telegram/bot/types/location_address.rb,
lib/telegram/bot/types/paid_media_photo.rb,
lib/telegram/bot/types/paid_media_video.rb,
lib/telegram/bot/types/pattern_matching.rb,
lib/telegram/bot/types/refunded_payment.rb,
lib/telegram/bot/types/reply_parameters.rb,
lib/telegram/bot/types/rich_block_audio.rb,
lib/telegram/bot/types/rich_block_photo.rb,
lib/telegram/bot/types/rich_block_table.rb,
lib/telegram/bot/types/rich_block_video.rb,
lib/telegram/bot/types/rich_text_anchor.rb,
lib/telegram/bot/types/rich_text_italic.rb,
lib/telegram/bot/types/rich_text_marked.rb,
lib/telegram/bot/types/shipping_address.rb,
lib/telegram/bot/types/star_transaction.rb,
lib/telegram/bot/types/unique_gift_info.rb,
lib/telegram/bot/types/user_chat_boosts.rb,
lib/telegram/bot/types/video_chat_ended.rb,
lib/telegram/bot/types/bot_command_scope.rb,
lib/telegram/bot/types/business_location.rb,
lib/telegram/bot/types/chat_boost_source.rb,
lib/telegram/bot/types/chat_join_request.rb,
lib/telegram/bot/types/chat_member_owner.rb,
lib/telegram/bot/types/input_media_audio.rb,
lib/telegram/bot/types/input_media_photo.rb,
lib/telegram/bot/types/input_media_venue.rb,
lib/telegram/bot/types/input_media_video.rb,
lib/telegram/bot/types/input_poll_option.rb,
lib/telegram/bot/types/owned_gift_unique.rb,
lib/telegram/bot/types/poll_option_added.rb,
lib/telegram/bot/types/rich_block_anchor.rb,
lib/telegram/bot/types/rich_block_footer.rb,
lib/telegram/bot/types/rich_text_cashtag.rb,
lib/telegram/bot/types/rich_text_hashtag.rb,
lib/telegram/bot/types/rich_text_mention.rb,
lib/telegram/bot/types/rich_text_spoiler.rb,
lib/telegram/bot/types/star_transactions.rb,
lib/telegram/bot/types/unique_gift_model.rb,
lib/telegram/bot/types/chat_boost_removed.rb,
lib/telegram/bot/types/chat_boost_updated.rb,
lib/telegram/bot/types/chat_member_banned.rb,
lib/telegram/bot/types/chat_member_member.rb,
lib/telegram/bot/types/chat_owner_changed.rb,
lib/telegram/bot/types/forum_topic_closed.rb,
lib/telegram/bot/types/forum_topic_edited.rb,
lib/telegram/bot/types/giveaway_completed.rb,
lib/telegram/bot/types/input_rich_message.rb,
lib/telegram/bot/types/owned_gift_regular.rb,
lib/telegram/bot/types/paid_media_preview.rb,
lib/telegram/bot/types/pre_checkout_query.rb,
lib/telegram/bot/types/reaction_type_paid.rb,
lib/telegram/bot/types/rich_block_caption.rb,
lib/telegram/bot/types/rich_block_collage.rb,
lib/telegram/bot/types/rich_block_details.rb,
lib/telegram/bot/types/rich_block_divider.rb,
lib/telegram/bot/types/sent_guest_message.rb,
lib/telegram/bot/types/successful_payment.rb,
lib/telegram/bot/types/unique_gift_colors.rb,
lib/telegram/bot/types/unique_gift_symbol.rb,
lib/telegram/bot/types/video_chat_started.rb,
lib/telegram/bot/types/accepted_gift_types.rb,
lib/telegram/bot/types/bot_access_settings.rb,
lib/telegram/bot/types/business_bot_rights.rb,
lib/telegram/bot/types/business_connection.rb,
lib/telegram/bot/types/chat_member_updated.rb,
lib/telegram/bot/types/external_reply_info.rb,
lib/telegram/bot/types/forum_topic_created.rb,
lib/telegram/bot/types/inline_query_result.rb,
lib/telegram/bot/types/input_media_sticker.rb,
lib/telegram/bot/types/input_profile_photo.rb,
lib/telegram/bot/types/input_story_content.rb,
lib/telegram/bot/types/managed_bot_created.rb,
lib/telegram/bot/types/managed_bot_updated.rb,
lib/telegram/bot/types/menu_button_default.rb,
lib/telegram/bot/types/menu_button_web_app.rb,
lib/telegram/bot/types/message_origin_chat.rb,
lib/telegram/bot/types/message_origin_user.rb,
lib/telegram/bot/types/poll_option_deleted.rb,
lib/telegram/bot/types/reaction_type_emoji.rb,
lib/telegram/bot/types/response_parameters.rb,
lib/telegram/bot/types/rich_block_thinking.rb,
lib/telegram/bot/types/rich_text_date_time.rb,
lib/telegram/bot/types/rich_text_reference.rb,
lib/telegram/bot/types/rich_text_subscript.rb,
lib/telegram/bot/types/rich_text_underline.rb,
lib/telegram/bot/types/story_area_position.rb,
lib/telegram/bot/types/suggested_post_info.rb,
lib/telegram/bot/types/suggested_post_paid.rb,
lib/telegram/bot/types/transaction_partner.rb,
lib/telegram/bot/types/user_profile_audios.rb,
lib/telegram/bot/types/user_profile_photos.rb,
lib/telegram/bot/types/background_type_fill.rb,
lib/telegram/bot/types/checklist_tasks_done.rb,
lib/telegram/bot/types/chosen_inline_result.rb,
lib/telegram/bot/types/community_chat_added.rb,
lib/telegram/bot/types/forum_topic_reopened.rb,
lib/telegram/bot/types/inaccessible_message.rb,
lib/telegram/bot/types/input_checklist_task.rb,
lib/telegram/bot/types/input_media_document.rb,
lib/telegram/bot/types/input_media_location.rb,
lib/telegram/bot/types/input_rich_block_map.rb,
lib/telegram/bot/types/link_preview_options.rb,
lib/telegram/bot/types/menu_button_commands.rb,
lib/telegram/bot/types/paid_media_purchased.rb,
lib/telegram/bot/types/rich_block_animation.rb,
lib/telegram/bot/types/rich_block_list_item.rb,
lib/telegram/bot/types/rich_block_paragraph.rb,
lib/telegram/bot/types/rich_block_slideshow.rb,
lib/telegram/bot/types/sent_web_app_message.rb,
lib/telegram/bot/types/story_area_type_link.rb,
lib/telegram/bot/types/suggested_post_price.rb,
lib/telegram/bot/types/unique_gift_backdrop.rb,
lib/telegram/bot/types/video_chat_scheduled.rb,
lib/telegram/bot/types/write_access_allowed.rb,
lib/telegram/bot/types/background_fill_solid.rb,
lib/telegram/bot/types/bot_short_description.rb,
lib/telegram/bot/types/checklist_tasks_added.rb,
lib/telegram/bot/types/direct_messages_topic.rb,
lib/telegram/bot/types/encrypted_credentials.rb,
lib/telegram/bot/types/input_media_animation.rb,
lib/telegram/bot/types/input_message_content.rb,
lib/telegram/bot/types/input_rich_block_list.rb,
lib/telegram/bot/types/paid_media_live_photo.rb,
lib/telegram/bot/types/reply_keyboard_markup.rb,
lib/telegram/bot/types/reply_keyboard_remove.rb,
lib/telegram/bot/types/rich_block_table_cell.rb,
lib/telegram/bot/types/rich_block_voice_note.rb,
lib/telegram/bot/types/rich_text_anchor_link.rb,
lib/telegram/bot/types/rich_text_bot_command.rb,
lib/telegram/bot/types/rich_text_superscript.rb,
lib/telegram/bot/types/bot_command_scope_chat.rb,
lib/telegram/bot/types/business_opening_hours.rb,
lib/telegram/bot/types/chat_member_restricted.rb,
lib/telegram/bot/types/community_chat_removed.rb,
lib/telegram/bot/types/inline_keyboard_button.rb,
lib/telegram/bot/types/inline_keyboard_markup.rb,
lib/telegram/bot/types/input_media_live_photo.rb,
lib/telegram/bot/types/input_media_voice_note.rb,
lib/telegram/bot/types/input_paid_media_photo.rb,
lib/telegram/bot/types/input_paid_media_video.rb,
lib/telegram/bot/types/input_rich_block_audio.rb,
lib/telegram/bot/types/input_rich_block_photo.rb,
lib/telegram/bot/types/input_rich_block_table.rb,
lib/telegram/bot/types/input_rich_block_video.rb,
lib/telegram/bot/types/message_origin_channel.rb,
lib/telegram/bot/types/passport_element_error.rb,
lib/telegram/bot/types/rich_text_custom_emoji.rb,
lib/telegram/bot/types/rich_text_phone_number.rb,
lib/telegram/bot/types/rich_text_text_mention.rb,
lib/telegram/bot/types/background_type_pattern.rb,
lib/telegram/bot/types/inline_query_result_gif.rb,
lib/telegram/bot/types/input_poll_option_media.rb,
lib/telegram/bot/types/input_rich_block_anchor.rb,
lib/telegram/bot/types/input_rich_block_footer.rb,
lib/telegram/bot/types/prepared_inline_message.rb,
lib/telegram/bot/types/rich_block_preformatted.rb,
lib/telegram/bot/types/rich_text_email_address.rb,
lib/telegram/bot/types/rich_text_strikethrough.rb,
lib/telegram/bot/types/story_area_type_weather.rb,
lib/telegram/bot/types/suggested_post_approved.rb,
lib/telegram/bot/types/suggested_post_declined.rb,
lib/telegram/bot/types/suggested_post_refunded.rb,
lib/telegram/bot/types/background_fill_gradient.rb,
lib/telegram/bot/types/bot_subscription_updated.rb,
lib/telegram/bot/types/inline_query_result_game.rb,
lib/telegram/bot/types/input_rich_block_collage.rb,
lib/telegram/bot/types/input_rich_block_details.rb,
lib/telegram/bot/types/input_rich_block_divider.rb,
lib/telegram/bot/types/input_rich_message_media.rb,
lib/telegram/bot/types/message_reaction_updated.rb,
lib/telegram/bot/types/prepared_keyboard_button.rb,
lib/telegram/bot/types/revenue_withdrawal_state.rb,
lib/telegram/bot/types/rich_text_reference_link.rb,
lib/telegram/bot/types/story_area_type_location.rb,
lib/telegram/bot/types/transaction_partner_chat.rb,
lib/telegram/bot/types/transaction_partner_user.rb,
lib/telegram/bot/types/background_type_wallpaper.rb,
lib/telegram/bot/types/bot_command_scope_default.rb,
lib/telegram/bot/types/business_messages_deleted.rb,
lib/telegram/bot/types/chat_administrator_rights.rb,
lib/telegram/bot/types/chat_boost_source_premium.rb,
lib/telegram/bot/types/chat_member_administrator.rb,
lib/telegram/bot/types/inline_query_result_audio.rb,
lib/telegram/bot/types/inline_query_result_photo.rb,
lib/telegram/bot/types/inline_query_result_venue.rb,
lib/telegram/bot/types/inline_query_result_video.rb,
lib/telegram/bot/types/inline_query_result_voice.rb,
lib/telegram/bot/types/input_rich_block_thinking.rb,
lib/telegram/bot/types/input_story_content_photo.rb,
lib/telegram/bot/types/input_story_content_video.rb,
lib/telegram/bot/types/keyboard_button_poll_type.rb,
lib/telegram/bot/types/proximity_alert_triggered.rb,
lib/telegram/bot/types/rich_block_pull_quotation.rb,
lib/telegram/bot/types/suggested_post_parameters.rb,
lib/telegram/bot/types/transaction_partner_other.rb,
lib/telegram/bot/types/background_type_chat_theme.rb,
lib/telegram/bot/types/chat_boost_source_giveaway.rb,
lib/telegram/bot/types/encrypted_passport_element.rb,
lib/telegram/bot/types/general_forum_topic_hidden.rb,
lib/telegram/bot/types/input_profile_photo_static.rb,
lib/telegram/bot/types/input_rich_block_animation.rb,
lib/telegram/bot/types/input_rich_block_list_item.rb,
lib/telegram/bot/types/input_rich_block_paragraph.rb,
lib/telegram/bot/types/input_rich_block_slideshow.rb,
lib/telegram/bot/types/input_rich_message_content.rb,
lib/telegram/bot/types/input_text_message_content.rb,
lib/telegram/bot/types/maybe_inaccessible_message.rb,
lib/telegram/bot/types/message_origin_hidden_user.rb,
lib/telegram/bot/types/paid_message_price_changed.rb,
lib/telegram/bot/types/reaction_type_custom_emoji.rb,
lib/telegram/bot/types/rich_block_block_quotation.rb,
lib/telegram/bot/types/rich_block_section_heading.rb,
lib/telegram/bot/types/rich_text_bank_card_number.rb,
lib/telegram/bot/types/chat_boost_source_gift_code.rb,
lib/telegram/bot/types/inline_query_result_article.rb,
lib/telegram/bot/types/inline_query_result_contact.rb,
lib/telegram/bot/types/inline_query_results_button.rb,
lib/telegram/bot/types/input_paid_media_live_photo.rb,
lib/telegram/bot/types/input_rich_block_voice_note.rb,
lib/telegram/bot/types/input_venue_message_content.rb,
lib/telegram/bot/types/passport_element_error_file.rb,
lib/telegram/bot/types/story_area_type_unique_gift.rb,
lib/telegram/bot/types/unique_gift_backdrop_colors.rb,
lib/telegram/bot/types/direct_message_price_changed.rb,
lib/telegram/bot/types/general_forum_topic_unhidden.rb,
lib/telegram/bot/types/inline_query_result_document.rb,
lib/telegram/bot/types/inline_query_result_location.rb,
lib/telegram/bot/types/input_profile_photo_animated.rb,
lib/telegram/bot/types/keyboard_button_request_chat.rb,
lib/telegram/bot/types/passport_element_error_files.rb,
lib/telegram/bot/types/transaction_partner_fragment.rb,
lib/telegram/bot/types/bot_command_scope_chat_member.rb,
lib/telegram/bot/types/inline_query_result_mpeg4_gif.rb,
lib/telegram/bot/types/input_contact_message_content.rb,
lib/telegram/bot/types/input_invoice_message_content.rb,
lib/telegram/bot/types/input_rich_block_preformatted.rb,
lib/telegram/bot/types/keyboard_button_request_users.rb,
lib/telegram/bot/types/passport_element_error_selfie.rb,
lib/telegram/bot/types/inline_query_result_cached_gif.rb,
lib/telegram/bot/types/input_location_message_content.rb,
lib/telegram/bot/types/message_reaction_count_updated.rb,
lib/telegram/bot/types/suggested_post_approval_failed.rb,
lib/telegram/bot/types/business_opening_hours_interval.rb,
lib/telegram/bot/types/input_rich_block_pull_quotation.rb,
lib/telegram/bot/types/revenue_withdrawal_state_failed.rb,
lib/telegram/bot/types/switch_inline_query_chosen_chat.rb,
lib/telegram/bot/types/video_chat_participants_invited.rb,
lib/telegram/bot/types/inline_query_result_cached_audio.rb,
lib/telegram/bot/types/inline_query_result_cached_photo.rb,
lib/telegram/bot/types/inline_query_result_cached_video.rb,
lib/telegram/bot/types/inline_query_result_cached_voice.rb,
lib/telegram/bot/types/input_rich_block_block_quotation.rb,
lib/telegram/bot/types/input_rich_block_section_heading.rb,
lib/telegram/bot/types/revenue_withdrawal_state_pending.rb,
lib/telegram/bot/types/transaction_partner_telegram_ads.rb,
lib/telegram/bot/types/transaction_partner_telegram_api.rb,
lib/telegram/bot/types/background_fill_freeform_gradient.rb,
lib/telegram/bot/types/bot_command_scope_all_group_chats.rb,
lib/telegram/bot/types/message_auto_delete_timer_changed.rb,
lib/telegram/bot/types/passport_element_error_data_field.rb,
lib/telegram/bot/types/passport_element_error_front_side.rb,
lib/telegram/bot/types/rich_text_mathematical_expression.rb,
lib/telegram/bot/types/inline_query_result_cached_sticker.rb,
lib/telegram/bot/types/passport_element_error_unspecified.rb,
lib/telegram/bot/types/revenue_withdrawal_state_succeeded.rb,
lib/telegram/bot/types/rich_block_mathematical_expression.rb,
lib/telegram/bot/types/story_area_type_suggested_reaction.rb,
lib/telegram/bot/types/bot_command_scope_all_private_chats.rb,
lib/telegram/bot/types/inline_query_result_cached_document.rb,
lib/telegram/bot/types/keyboard_button_request_managed_bot.rb,
lib/telegram/bot/types/passport_element_error_reverse_side.rb,
lib/telegram/bot/types/inline_query_result_cached_mpeg4_gif.rb,
lib/telegram/bot/types/bot_command_scope_chat_administrators.rb,
lib/telegram/bot/types/transaction_partner_affiliate_program.rb,
lib/telegram/bot/types/passport_element_error_translation_file.rb,
lib/telegram/bot/types/input_rich_block_mathematical_expression.rb,
lib/telegram/bot/types/passport_element_error_translation_files.rb,
lib/telegram/bot/types/bot_command_scope_all_chat_administrators.rb

Defined Under Namespace

Modules: Compactable, PatternMatching Classes: AcceptedGiftTypes, AffiliateInfo, Animation, Audio, BackgroundFillFreeformGradient, BackgroundFillGradient, BackgroundFillSolid, BackgroundTypeChatTheme, BackgroundTypeFill, BackgroundTypePattern, BackgroundTypeWallpaper, Base, Birthdate, BotAccessSettings, BotCommand, BotCommandScopeAllChatAdministrators, BotCommandScopeAllGroupChats, BotCommandScopeAllPrivateChats, BotCommandScopeChat, BotCommandScopeChatAdministrators, BotCommandScopeChatMember, BotCommandScopeDefault, BotDescription, BotName, BotShortDescription, BotSubscriptionUpdated, BusinessBotRights, BusinessConnection, BusinessIntro, BusinessLocation, BusinessMessagesDeleted, BusinessOpeningHours, BusinessOpeningHoursInterval, CallbackGame, CallbackQuery, Chat, ChatAdministratorRights, ChatBackground, ChatBoost, ChatBoostAdded, ChatBoostRemoved, ChatBoostSourceGiftCode, ChatBoostSourceGiveaway, ChatBoostSourcePremium, ChatBoostUpdated, ChatFullInfo, ChatInviteLink, ChatJoinRequest, ChatLocation, ChatMemberAdministrator, ChatMemberBanned, ChatMemberLeft, ChatMemberMember, ChatMemberOwner, ChatMemberRestricted, ChatMemberUpdated, ChatOwnerChanged, ChatOwnerLeft, ChatPermissions, ChatPhoto, ChatShared, Checklist, ChecklistTask, ChecklistTasksAdded, ChecklistTasksDone, ChosenInlineResult, Community, CommunityChatAdded, CommunityChatRemoved, Contact, CopyTextButton, Dice, DirectMessagePriceChanged, DirectMessagesTopic, Document, EncryptedCredentials, EncryptedPassportElement, Error, ExternalReplyInfo, File, ForceReply, ForumTopic, ForumTopicClosed, ForumTopicCreated, ForumTopicEdited, ForumTopicReopened, Game, GameHighScore, GeneralForumTopicHidden, GeneralForumTopicUnhidden, Gift, GiftBackground, GiftInfo, Gifts, Giveaway, GiveawayCompleted, GiveawayCreated, GiveawayWinners, InaccessibleMessage, InlineKeyboardButton, InlineKeyboardMarkup, InlineQuery, InlineQueryResultArticle, InlineQueryResultAudio, InlineQueryResultCachedAudio, InlineQueryResultCachedDocument, InlineQueryResultCachedGif, InlineQueryResultCachedMpeg4Gif, InlineQueryResultCachedPhoto, InlineQueryResultCachedSticker, InlineQueryResultCachedVideo, InlineQueryResultCachedVoice, InlineQueryResultContact, InlineQueryResultDocument, InlineQueryResultGame, InlineQueryResultGif, InlineQueryResultLocation, InlineQueryResultMpeg4Gif, InlineQueryResultPhoto, InlineQueryResultVenue, InlineQueryResultVideo, InlineQueryResultVoice, InlineQueryResultsButton, InputChecklist, InputChecklistTask, InputContactMessageContent, InputFile, InputInvoiceMessageContent, InputLocationMessageContent, InputMediaAnimation, InputMediaAudio, InputMediaDocument, InputMediaLink, InputMediaLivePhoto, InputMediaLocation, InputMediaPhoto, InputMediaSticker, InputMediaVenue, InputMediaVideo, InputMediaVoiceNote, InputPaidMediaLivePhoto, InputPaidMediaPhoto, InputPaidMediaVideo, InputPollOption, InputProfilePhotoAnimated, InputProfilePhotoStatic, InputRichBlockAnchor, InputRichBlockAnimation, InputRichBlockAudio, InputRichBlockBlockQuotation, InputRichBlockCollage, InputRichBlockDetails, InputRichBlockDivider, InputRichBlockFooter, InputRichBlockList, InputRichBlockListItem, InputRichBlockMap, InputRichBlockMathematicalExpression, InputRichBlockParagraph, InputRichBlockPhoto, InputRichBlockPreformatted, InputRichBlockPullQuotation, InputRichBlockSectionHeading, InputRichBlockSlideshow, InputRichBlockTable, InputRichBlockThinking, InputRichBlockVideo, InputRichBlockVoiceNote, InputRichMessage, InputRichMessageContent, InputRichMessageMedia, InputSticker, InputStoryContentPhoto, InputStoryContentVideo, InputTextMessageContent, InputVenueMessageContent, Invoice, KeyboardButton, KeyboardButtonPollType, KeyboardButtonRequestChat, KeyboardButtonRequestManagedBot, KeyboardButtonRequestUsers, LabeledPrice, Link, LinkPreviewOptions, LivePhoto, Location, LocationAddress, LoginUrl, ManagedBotCreated, ManagedBotUpdated, MaskPosition, MenuButtonCommands, MenuButtonDefault, MenuButtonWebApp, Message, MessageAutoDeleteTimerChanged, MessageEntity, MessageId, MessageOriginChannel, MessageOriginChat, MessageOriginHiddenUser, MessageOriginUser, MessageReactionCountUpdated, MessageReactionUpdated, OrderInfo, OwnedGiftRegular, OwnedGiftUnique, OwnedGifts, PaidMediaInfo, PaidMediaLivePhoto, PaidMediaPhoto, PaidMediaPreview, PaidMediaPurchased, PaidMediaVideo, PaidMessagePriceChanged, PassportData, PassportElementErrorDataField, PassportElementErrorFile, PassportElementErrorFiles, PassportElementErrorFrontSide, PassportElementErrorReverseSide, PassportElementErrorSelfie, PassportElementErrorTranslationFile, PassportElementErrorTranslationFiles, PassportElementErrorUnspecified, PassportFile, PhotoSize, Poll, PollAnswer, PollMedia, PollOption, PollOptionAdded, PollOptionDeleted, PreCheckoutQuery, PreparedInlineMessage, PreparedKeyboardButton, ProximityAlertTriggered, ReactionCount, ReactionTypeCustomEmoji, ReactionTypeEmoji, ReactionTypePaid, RefundedPayment, ReplyKeyboardMarkup, ReplyKeyboardRemove, ReplyParameters, ResponseParameters, RevenueWithdrawalStateFailed, RevenueWithdrawalStatePending, RevenueWithdrawalStateSucceeded, RichBlockAnchor, RichBlockAnimation, RichBlockAudio, RichBlockBlockQuotation, RichBlockCaption, RichBlockCollage, RichBlockDetails, RichBlockDivider, RichBlockFooter, RichBlockList, RichBlockListItem, RichBlockMap, RichBlockMathematicalExpression, RichBlockParagraph, RichBlockPhoto, RichBlockPreformatted, RichBlockPullQuotation, RichBlockSectionHeading, RichBlockSlideshow, RichBlockTable, RichBlockTableCell, RichBlockThinking, RichBlockVideo, RichBlockVoiceNote, RichMessage, RichTextAnchor, RichTextAnchorLink, RichTextBankCardNumber, RichTextBold, RichTextBotCommand, RichTextCashtag, RichTextCode, RichTextCustomEmoji, RichTextDateTime, RichTextEmailAddress, RichTextHashtag, RichTextItalic, RichTextMarked, RichTextMathematicalExpression, RichTextMention, RichTextPhoneNumber, RichTextReference, RichTextReferenceLink, RichTextSpoiler, RichTextStrikethrough, RichTextSubscript, RichTextSuperscript, RichTextTextMention, RichTextUnderline, RichTextUrl, SentGuestMessage, SentWebAppMessage, SharedUser, ShippingAddress, ShippingOption, ShippingQuery, StarAmount, StarTransaction, StarTransactions, Sticker, StickerSet, Story, StoryArea, StoryAreaPosition, StoryAreaTypeLink, StoryAreaTypeLocation, StoryAreaTypeSuggestedReaction, StoryAreaTypeUniqueGift, StoryAreaTypeWeather, SuccessfulPayment, SuggestedPostApprovalFailed, SuggestedPostApproved, SuggestedPostDeclined, SuggestedPostInfo, SuggestedPostPaid, SuggestedPostParameters, SuggestedPostPrice, SuggestedPostRefunded, SwitchInlineQueryChosenChat, TextQuote, TransactionPartnerAffiliateProgram, TransactionPartnerChat, TransactionPartnerFragment, TransactionPartnerOther, TransactionPartnerTelegramAds, TransactionPartnerTelegramApi, TransactionPartnerUser, UniqueGift, UniqueGiftBackdrop, UniqueGiftBackdropColors, UniqueGiftColors, UniqueGiftInfo, UniqueGiftModel, UniqueGiftSymbol, Update, User, UserChatBoosts, UserProfileAudios, UserProfilePhotos, UserRating, UsersShared, Venue, Video, VideoChatEnded, VideoChatParticipantsInvited, VideoChatScheduled, VideoChatStarted, VideoNote, VideoQuality, Voice, WebAppData, WebAppInfo, WebhookInfo, WriteAccessAllowed

Constant Summary collapse

RichText =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  Types::String |
  Types::Array.of(Types.deferred(:RichText)) |
  RichTextBold |
  RichTextItalic |
  RichTextUnderline |
  RichTextStrikethrough |
  RichTextSpoiler |
  RichTextDateTime |
  RichTextTextMention |
  RichTextSubscript |
  RichTextSuperscript |
  RichTextMarked |
  RichTextCode |
  RichTextCustomEmoji |
  RichTextMathematicalExpression |
  RichTextUrl |
  RichTextEmailAddress |
  RichTextPhoneNumber |
  RichTextBankCardNumber |
  RichTextMention |
  RichTextHashtag |
  RichTextCashtag |
  RichTextBotCommand |
  RichTextAnchor |
  RichTextAnchorLink |
  RichTextReference |
  RichTextReferenceLink
)
OwnedGift =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  OwnedGiftRegular |
  OwnedGiftUnique
)
PaidMedia =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  PaidMediaLivePhoto |
  PaidMediaPhoto |
  PaidMediaPreview |
  PaidMediaVideo
)
RichBlock =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  RichBlockParagraph |
  RichBlockSectionHeading |
  RichBlockPreformatted |
  RichBlockFooter |
  RichBlockDivider |
  RichBlockMathematicalExpression |
  RichBlockAnchor |
  RichBlockList |
  RichBlockBlockQuotation |
  RichBlockPullQuotation |
  RichBlockCollage |
  RichBlockSlideshow |
  RichBlockTable |
  RichBlockDetails |
  RichBlockMap |
  RichBlockAnimation |
  RichBlockAudio |
  RichBlockPhoto |
  RichBlockVideo |
  RichBlockVoiceNote |
  RichBlockThinking
)
ChatMember =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  ChatMemberOwner |
  ChatMemberAdministrator |
  ChatMemberMember |
  ChatMemberRestricted |
  ChatMemberLeft |
  ChatMemberBanned
)
InputMedia =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  InputMediaAnimation |
  InputMediaAudio |
  InputMediaDocument |
  InputMediaLivePhoto |
  InputMediaPhoto |
  InputMediaVideo
)
(
  MenuButtonCommands |
  MenuButtonWebApp |
  MenuButtonDefault
)
ReactionType =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  ReactionTypeEmoji |
  ReactionTypeCustomEmoji |
  ReactionTypePaid
)
MessageOrigin =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  MessageOriginUser |
  MessageOriginHiddenUser |
  MessageOriginChat |
  MessageOriginChannel
)
BackgroundFill =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  BackgroundFillSolid |
  BackgroundFillGradient |
  BackgroundFillFreeformGradient
)
BackgroundType =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  BackgroundTypeFill |
  BackgroundTypeWallpaper |
  BackgroundTypePattern |
  BackgroundTypeChatTheme
)
StoryAreaType =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  StoryAreaTypeLocation |
  StoryAreaTypeSuggestedReaction |
  StoryAreaTypeLink |
  StoryAreaTypeWeather |
  StoryAreaTypeUniqueGift
)
InputPaidMedia =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  InputPaidMediaLivePhoto |
  InputPaidMediaPhoto |
  InputPaidMediaVideo
)
InputPollMedia =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  InputMediaAnimation |
  InputMediaAudio |
  InputMediaDocument |
  InputMediaLivePhoto |
  InputMediaLocation |
  InputMediaPhoto |
  InputMediaVenue |
  InputMediaVideo
)
InputRichBlock =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  InputRichBlockParagraph |
  InputRichBlockSectionHeading |
  InputRichBlockPreformatted |
  InputRichBlockFooter |
  InputRichBlockDivider |
  InputRichBlockMathematicalExpression |
  InputRichBlockAnchor |
  InputRichBlockList |
  InputRichBlockBlockQuotation |
  InputRichBlockPullQuotation |
  InputRichBlockCollage |
  InputRichBlockSlideshow |
  InputRichBlockTable |
  InputRichBlockDetails |
  InputRichBlockMap |
  InputRichBlockAnimation |
  InputRichBlockAudio |
  InputRichBlockPhoto |
  InputRichBlockVideo |
  InputRichBlockVoiceNote |
  InputRichBlockThinking
)
BotCommandScope =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  BotCommandScopeDefault |
  BotCommandScopeAllPrivateChats |
  BotCommandScopeAllGroupChats |
  BotCommandScopeAllChatAdministrators |
  BotCommandScopeChat |
  BotCommandScopeChatAdministrators |
  BotCommandScopeChatMember
)
ChatBoostSource =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  ChatBoostSourcePremium |
  ChatBoostSourceGiftCode |
  ChatBoostSourceGiveaway
)
InlineQueryResult =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  InlineQueryResultCachedAudio |
  InlineQueryResultCachedDocument |
  InlineQueryResultCachedGif |
  InlineQueryResultCachedMpeg4Gif |
  InlineQueryResultCachedPhoto |
  InlineQueryResultCachedSticker |
  InlineQueryResultCachedVideo |
  InlineQueryResultCachedVoice |
  InlineQueryResultArticle |
  InlineQueryResultAudio |
  InlineQueryResultContact |
  InlineQueryResultGame |
  InlineQueryResultDocument |
  InlineQueryResultGif |
  InlineQueryResultLocation |
  InlineQueryResultMpeg4Gif |
  InlineQueryResultPhoto |
  InlineQueryResultVenue |
  InlineQueryResultVideo |
  InlineQueryResultVoice
)
InputProfilePhoto =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  InputProfilePhotoStatic |
  InputProfilePhotoAnimated
)
InputStoryContent =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  InputStoryContentPhoto |
  InputStoryContentVideo
)
TransactionPartner =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  TransactionPartnerUser |
  TransactionPartnerChat |
  TransactionPartnerAffiliateProgram |
  TransactionPartnerFragment |
  TransactionPartnerTelegramAds |
  TransactionPartnerTelegramApi |
  TransactionPartnerOther
)
InputMessageContent =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  InputTextMessageContent |
  InputRichMessageContent |
  InputLocationMessageContent |
  InputVenueMessageContent |
  InputContactMessageContent |
  InputInvoiceMessageContent
)
PassportElementError =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  PassportElementErrorDataField |
  PassportElementErrorFrontSide |
  PassportElementErrorReverseSide |
  PassportElementErrorSelfie |
  PassportElementErrorFile |
  PassportElementErrorFiles |
  PassportElementErrorTranslationFile |
  PassportElementErrorTranslationFiles |
  PassportElementErrorUnspecified
)
InputPollOptionMedia =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  InputMediaAnimation |
  InputMediaLink |
  InputMediaLivePhoto |
  InputMediaLocation |
  InputMediaPhoto |
  InputMediaSticker |
  InputMediaVenue |
  InputMediaVideo
)
RevenueWithdrawalState =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  RevenueWithdrawalStatePending |
  RevenueWithdrawalStateSucceeded |
  RevenueWithdrawalStateFailed
)
MaybeInaccessibleMessage =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  Message |
  InaccessibleMessage
)

Class Method Summary collapse

Class Method Details

.deferred(name) ⇒ Object



8
9
10
11
12
# File 'lib/telegram/bot/types.rb', line 8

def self.deferred(name)
  Any.constructor do |value, _, &fallback|
    const_get(name, false).call(value, &fallback)
  end
end