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/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/login_url.rb,
lib/telegram/bot/types/chat_boost.rb,
lib/telegram/bot/types/chat_photo.rb,
lib/telegram/bot/types/message_id.rb,
lib/telegram/bot/types/order_info.rb,
lib/telegram/bot/types/paid_media.rb,
lib/telegram/bot/types/photo_size.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/poll_answer.rb,
lib/telegram/bot/types/poll_option.rb,
lib/telegram/bot/types/shared_user.rb,
lib/telegram/bot/types/sticker_set.rb,
lib/telegram/bot/types/inline_query.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/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/message_entity.rb,
lib/telegram/bot/types/message_origin.rb,
lib/telegram/bot/types/reaction_count.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/game_high_score.rb,
lib/telegram/bot/types/keyboard_button.rb,
lib/telegram/bot/types/paid_media_info.rb,
lib/telegram/bot/types/shipping_option.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_paid_media.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/shipping_address.rb,
lib/telegram/bot/types/star_transaction.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_video.rb,
lib/telegram/bot/types/input_poll_option.rb,
lib/telegram/bot/types/star_transactions.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/forum_topic_closed.rb,
lib/telegram/bot/types/forum_topic_edited.rb,
lib/telegram/bot/types/giveaway_completed.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/successful_payment.rb,
lib/telegram/bot/types/video_chat_started.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/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/reaction_type_emoji.rb,
lib/telegram/bot/types/response_parameters.rb,
lib/telegram/bot/types/transaction_partner.rb,
lib/telegram/bot/types/user_profile_photos.rb,
lib/telegram/bot/types/background_type_fill.rb,
lib/telegram/bot/types/chosen_inline_result.rb,
lib/telegram/bot/types/forum_topic_reopened.rb,
lib/telegram/bot/types/inaccessible_message.rb,
lib/telegram/bot/types/input_media_document.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/sent_web_app_message.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/encrypted_credentials.rb,
lib/telegram/bot/types/input_media_animation.rb,
lib/telegram/bot/types/input_message_content.rb,
lib/telegram/bot/types/reply_keyboard_markup.rb,
lib/telegram/bot/types/reply_keyboard_remove.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/inline_keyboard_button.rb,
lib/telegram/bot/types/inline_keyboard_markup.rb,
lib/telegram/bot/types/input_paid_media_photo.rb,
lib/telegram/bot/types/input_paid_media_video.rb,
lib/telegram/bot/types/message_origin_channel.rb,
lib/telegram/bot/types/passport_element_error.rb,
lib/telegram/bot/types/background_type_pattern.rb,
lib/telegram/bot/types/inline_query_result_gif.rb,
lib/telegram/bot/types/prepared_inline_message.rb,
lib/telegram/bot/types/background_fill_gradient.rb,
lib/telegram/bot/types/inline_query_result_game.rb,
lib/telegram/bot/types/message_reaction_updated.rb,
lib/telegram/bot/types/revenue_withdrawal_state.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/keyboard_button_poll_type.rb,
lib/telegram/bot/types/proximity_alert_triggered.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_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/reaction_type_custom_emoji.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_venue_message_content.rb,
lib/telegram/bot/types/passport_element_error_file.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/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/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/business_opening_hours_interval.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/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/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/bot_command_scope_all_private_chats.rb,
lib/telegram/bot/types/inline_query_result_cached_document.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/passport_element_error_translation_files.rb,
lib/telegram/bot/types/bot_command_scope_all_chat_administrators.rb

Defined Under Namespace

Modules: Compactable, PatternMatching Classes: AffiliateInfo, Animation, Audio, BackgroundFillFreeformGradient, BackgroundFillGradient, BackgroundFillSolid, BackgroundTypeChatTheme, BackgroundTypeFill, BackgroundTypePattern, BackgroundTypeWallpaper, Base, Birthdate, BotCommand, BotCommandScopeAllChatAdministrators, BotCommandScopeAllGroupChats, BotCommandScopeAllPrivateChats, BotCommandScopeChat, BotCommandScopeChatAdministrators, BotCommandScopeChatMember, BotCommandScopeDefault, BotDescription, BotName, BotShortDescription, 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, ChatPermissions, ChatPhoto, ChatShared, ChosenInlineResult, Contact, CopyTextButton, Dice, Document, EncryptedCredentials, EncryptedPassportElement, Error, ExternalReplyInfo, File, ForceReply, ForumTopic, ForumTopicClosed, ForumTopicCreated, ForumTopicEdited, ForumTopicReopened, Game, GameHighScore, GeneralForumTopicHidden, GeneralForumTopicUnhidden, Gift, 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, InputContactMessageContent, InputInvoiceMessageContent, InputLocationMessageContent, InputMediaAnimation, InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo, InputPaidMediaPhoto, InputPaidMediaVideo, InputPollOption, InputSticker, InputTextMessageContent, InputVenueMessageContent, Invoice, KeyboardButton, KeyboardButtonPollType, KeyboardButtonRequestChat, KeyboardButtonRequestUsers, LabeledPrice, LinkPreviewOptions, Location, LoginUrl, MaskPosition, MenuButtonCommands, MenuButtonDefault, MenuButtonWebApp, Message, MessageAutoDeleteTimerChanged, MessageEntity, MessageId, MessageOriginChannel, MessageOriginChat, MessageOriginHiddenUser, MessageOriginUser, MessageReactionCountUpdated, MessageReactionUpdated, OrderInfo, PaidMediaInfo, PaidMediaPhoto, PaidMediaPreview, PaidMediaPurchased, PaidMediaVideo, PassportData, PassportElementErrorDataField, PassportElementErrorFile, PassportElementErrorFiles, PassportElementErrorFrontSide, PassportElementErrorReverseSide, PassportElementErrorSelfie, PassportElementErrorTranslationFile, PassportElementErrorTranslationFiles, PassportElementErrorUnspecified, PassportFile, PhotoSize, Poll, PollAnswer, PollOption, PreCheckoutQuery, PreparedInlineMessage, ProximityAlertTriggered, ReactionCount, ReactionTypeCustomEmoji, ReactionTypeEmoji, ReactionTypePaid, RefundedPayment, ReplyKeyboardMarkup, ReplyKeyboardRemove, ReplyParameters, ResponseParameters, RevenueWithdrawalStateFailed, RevenueWithdrawalStatePending, RevenueWithdrawalStateSucceeded, SentWebAppMessage, SharedUser, ShippingAddress, ShippingOption, ShippingQuery, StarTransaction, StarTransactions, Sticker, StickerSet, Story, SuccessfulPayment, SwitchInlineQueryChosenChat, TextQuote, TransactionPartnerAffiliateProgram, TransactionPartnerFragment, TransactionPartnerOther, TransactionPartnerTelegramAds, TransactionPartnerTelegramApi, TransactionPartnerUser, Update, User, UserChatBoosts, UserProfilePhotos, UsersShared, Venue, Video, VideoChatEnded, VideoChatParticipantsInvited, VideoChatScheduled, VideoChatStarted, VideoNote, Voice, WebAppData, WebAppInfo, WebhookInfo, WriteAccessAllowed

Constant Summary collapse

PaidMedia =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  PaidMediaPreview |
  PaidMediaPhoto |
  PaidMediaVideo
)
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 |
  InputMediaDocument |
  InputMediaAudio |
  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
)
InputPaidMedia =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  InputPaidMediaPhoto |
  InputPaidMediaVideo
)
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
)
TransactionPartner =

Just for classes consistency rubocop:disable Naming/ConstantName

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

Just for classes consistency rubocop:disable Naming/ConstantName

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

Just for classes consistency rubocop:disable Naming/ConstantName

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

Just for classes consistency rubocop:disable Naming/ConstantName

(
  RevenueWithdrawalStatePending |
  RevenueWithdrawalStateSucceeded |
  RevenueWithdrawalStateFailed
)
MaybeInaccessibleMessage =

Just for classes consistency rubocop:disable Naming/ConstantName

(
  Message |
  InaccessibleMessage
)