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/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/version.rb,
lib/telegram/bot/types/document.rb,
lib/telegram/bot/types/location.rb,
lib/telegram/bot/types/response.rb,
lib/telegram/bot/types/animation.rb,
lib/telegram/bot/types/login_url.rb,
lib/telegram/bot/types/chat_photo.rb,
lib/telegram/bot/types/order_info.rb,
lib/telegram/bot/types/photo_size.rb,
lib/telegram/bot/types/video_note.rb,
lib/telegram/bot/types/chat_member.rb,
lib/telegram/bot/types/force_reply.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/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/callback_query.rb,
lib/telegram/bot/types/message_entity.rb,
lib/telegram/bot/types/shipping_query.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_permissions.rb,
lib/telegram/bot/types/shipping_address.rb,
lib/telegram/bot/types/voice_chat_ended.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/pre_checkout_query.rb,
lib/telegram/bot/types/successful_payment.rb,
lib/telegram/bot/types/voice_chat_started.rb,
lib/telegram/bot/types/chat_member_updated.rb,
lib/telegram/bot/types/user_profile_photos.rb,
lib/telegram/bot/types/chosen_inline_result.rb,
lib/telegram/bot/types/input_media_document.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/inline_keyboard_button.rb,
lib/telegram/bot/types/inline_keyboard_markup.rb,
lib/telegram/bot/types/inline_query_result_gif.rb,
lib/telegram/bot/types/inline_query_result_game.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/encrypted_passport_element.rb,
lib/telegram/bot/types/input_text_message_content.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/inline_query_result_document.rb,
lib/telegram/bot/types/inline_query_result_location.rb,
lib/telegram/bot/types/passport_element_error_files.rb,
lib/telegram/bot/types/inline_query_result_mpeg4_gif.rb,
lib/telegram/bot/types/input_contact_message_content.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/voice_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/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/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/passport_element_error_translation_file.rb,
lib/telegram/bot/types/passport_element_error_translation_files.rb
Defined Under Namespace
Modules: Response Classes: Animation, Audio, Base, CallbackGame, CallbackQuery, Chat, ChatInviteLink, ChatLocation, ChatMember, ChatMemberUpdated, ChatPermissions, ChatPhoto, ChosenInlineResult, Contact, Dice, Document, EncryptedCredentials, EncryptedPassportElement, File, ForceReply, Game, GameHighScore, InlineKeyboardButton, InlineKeyboardMarkup, InlineQuery, InlineQueryResultArticle, InlineQueryResultAudio, InlineQueryResultCachedAudio, InlineQueryResultCachedDocument, InlineQueryResultCachedGif, InlineQueryResultCachedMpeg4Gif, InlineQueryResultCachedPhoto, InlineQueryResultCachedSticker, InlineQueryResultCachedVideo, InlineQueryResultCachedVoice, InlineQueryResultContact, InlineQueryResultDocument, InlineQueryResultGame, InlineQueryResultGif, InlineQueryResultLocation, InlineQueryResultMpeg4Gif, InlineQueryResultPhoto, InlineQueryResultVenue, InlineQueryResultVideo, InlineQueryResultVoice, InputContactMessageContent, InputLocationMessageContent, InputMediaAnimation, InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo, InputMessageContent, InputTextMessageContent, InputVenueMessageContent, Invoice, KeyboardButton, KeyboardButtonPollType, LabeledPrice, Location, LoginUrl, MaskPosition, Message, MessageAutoDeleteTimerChanged, MessageEntity, OrderInfo, PassportData, PassportElementErrorDataField, PassportElementErrorFile, PassportElementErrorFiles, PassportElementErrorFrontSide, PassportElementErrorReverseSide, PassportElementErrorSelfie, PassportElementErrorTranslationFile, PassportElementErrorTranslationFiles, PassportElementErrorUnspecified, PassportFile, PhotoSize, Poll, PollAnswer, PollOption, PreCheckoutQuery, ProximityAlertTriggered, ReplyKeyboardMarkup, ReplyKeyboardRemove, ShippingAddress, ShippingOption, ShippingQuery, Sticker, StickerSet, SuccessfulPayment, Update, User, UserProfilePhotos, Venue, Video, VideoNote, Voice, VoiceChatEnded, VoiceChatParticipantsInvited, VoiceChatStarted, WebhookInfo
Constant Summary collapse
- Boolean =
Collection of default types. They are also available without ‘Types::` prefix in nested classes in opposite to other built-in types.
self::Bool
- Integer =
Coercible::Integer
- Float =
Coercible::Float
- String =
Coercible::String
- Array =
self::Array
- VERSION =
'0.7.0'
Class Method Summary collapse
-
.camelize(str) ⇒ Object
Simple implementation for internal use only.
- .gem_version ⇒ Object
Class Method Details
.camelize(str) ⇒ Object
Simple implementation for internal use only. rubocop:disable all
12 13 14 |
# File 'lib/telegram/bot/types.rb', line 12 def camelize(str) str.gsub(/(?:_|(\/)|^)([a-z\d]*)/i) { "#{$1}#{$2.capitalize}" } end |
.gem_version ⇒ Object
8 9 10 |
# File 'lib/telegram/bot/types/version.rb', line 8 def self.gem_version Gem::Version.new VERSION end |