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/poll.rb,
lib/telegram/bot/types/user.rb,
lib/telegram/bot/types/audio.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/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/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/poll_answer.rb,
lib/telegram/bot/types/poll_option.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/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/callback_query.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/bot_description.rb,
lib/telegram/bot/types/game_high_score.rb,
lib/telegram/bot/types/keyboard_button.rb,
lib/telegram/bot/types/shipping_option.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/giveaway_created.rb,
lib/telegram/bot/types/giveaway_winners.rb,
lib/telegram/bot/types/pattern_matching.rb,
lib/telegram/bot/types/reply_parameters.rb,
lib/telegram/bot/types/shipping_address.rb,
lib/telegram/bot/types/user_chat_boosts.rb,
lib/telegram/bot/types/video_chat_ended.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/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/pre_checkout_query.rb,
lib/telegram/bot/types/successful_payment.rb,
lib/telegram/bot/types/video_chat_started.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/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/user_profile_photos.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/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/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/chat_member_restricted.rb,
lib/telegram/bot/types/inline_keyboard_button.rb,
lib/telegram/bot/types/inline_keyboard_markup.rb,
lib/telegram/bot/types/message_origin_channel.rb,
lib/telegram/bot/types/inline_query_result_gif.rb,
lib/telegram/bot/types/inline_query_result_game.rb,
lib/telegram/bot/types/message_reaction_updated.rb,
lib/telegram/bot/types/bot_command_scope_default.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/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/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/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/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/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/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/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: Animation, Audio, Base, BotCommand, BotCommandScopeAllChatAdministrators, BotCommandScopeAllGroupChats, BotCommandScopeAllPrivateChats, BotCommandScopeChat, BotCommandScopeChatAdministrators, BotCommandScopeChatMember, BotCommandScopeDefault, BotDescription, BotName, BotShortDescription, CallbackGame, CallbackQuery, Chat, ChatAdministratorRights, ChatBoost, ChatBoostRemoved, ChatBoostSourceGiftCode, ChatBoostSourceGiveaway, ChatBoostSourcePremium, ChatBoostUpdated, ChatInviteLink, ChatJoinRequest, ChatLocation, ChatMemberAdministrator, ChatMemberBanned, ChatMemberLeft, ChatMemberMember, ChatMemberOwner, ChatMemberRestricted, ChatMemberUpdated, ChatPermissions, ChatPhoto, ChatShared, ChosenInlineResult, Contact, Dice, Document, EncryptedCredentials, EncryptedPassportElement, ExternalReplyInfo, File, ForceReply, ForumTopic, ForumTopicClosed, ForumTopicCreated, ForumTopicEdited, ForumTopicReopened, Game, GameHighScore, GeneralForumTopicHidden, GeneralForumTopicUnhidden, 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, InputContactMessageContent, InputInvoiceMessageContent, InputLocationMessageContent, InputMediaAnimation, InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo, InputMessageContent, 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, PassportData, PassportElementErrorDataField, PassportElementErrorFile, PassportElementErrorFiles, PassportElementErrorFrontSide, PassportElementErrorReverseSide, PassportElementErrorSelfie, PassportElementErrorTranslationFile, PassportElementErrorTranslationFiles, PassportElementErrorUnspecified, PassportFile, PhotoSize, Poll, PollAnswer, PollOption, PreCheckoutQuery, ProximityAlertTriggered, ReactionCount, ReactionTypeCustomEmoji, ReactionTypeEmoji, ReplyKeyboardMarkup, ReplyKeyboardRemove, ReplyParameters, SentWebAppMessage, ShippingAddress, ShippingOption, ShippingQuery, Sticker, StickerSet, Story, SuccessfulPayment, SwitchInlineQueryChosenChat, TextQuote, Update, User, UserChatBoosts, UserProfilePhotos, UsersShared, Venue, Video, VideoChatEnded, VideoChatParticipantsInvited, VideoChatScheduled, VideoChatStarted, VideoNote, Voice, WebAppData, WebAppInfo, WebhookInfo, WriteAccessAllowed

Constant Summary collapse

ChatMember =

Just for classes consistency rubocop:disable Naming/ConstantName

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

rubocop:disable Naming/ConstantName

( # rubocop:disable Naming/ConstantName
  ReactionTypeEmoji |
  ReactionTypeCustomEmoji
)
MessageOrigin =

rubocop:disable Naming/ConstantName

( # rubocop:disable Naming/ConstantName
  MessageOriginUser |
  MessageOriginHiddenUser |
  MessageOriginChat |
  MessageOriginChannel
)
ChatBoostSource =

rubocop:disable Naming/ConstantName

( # rubocop:disable Naming/ConstantName
  ChatBoostSourcePremium |
  ChatBoostSourceGiftCode |
  ChatBoostSourceGiveaway
)
MaybeInaccessibleMessage =

rubocop:disable Naming/ConstantName

( # rubocop:disable Naming/ConstantName
  Message |
  InaccessibleMessage
)