telegram-bot-openapi 7.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +419 -0
- data/Rakefile +10 -0
- data/docs/Animation.md +34 -0
- data/docs/AnswerWebAppQuery200Response.md +20 -0
- data/docs/Audio.md +34 -0
- data/docs/Birthdate.md +22 -0
- data/docs/BotCommand.md +20 -0
- data/docs/BotCommandScopeAllChatAdministrators.md +18 -0
- data/docs/BotCommandScopeAllGroupChats.md +18 -0
- data/docs/BotCommandScopeAllPrivateChats.md +18 -0
- data/docs/BotCommandScopeChat.md +20 -0
- data/docs/BotCommandScopeChatAdministrators.md +20 -0
- data/docs/BotCommandScopeChatMember.md +22 -0
- data/docs/BotCommandScopeDefault.md +18 -0
- data/docs/BotDescription.md +18 -0
- data/docs/BotName.md +18 -0
- data/docs/BotShortDescription.md +18 -0
- data/docs/BusinessConnection.md +28 -0
- data/docs/BusinessIntro.md +22 -0
- data/docs/BusinessLocation.md +20 -0
- data/docs/BusinessMessagesDeleted.md +22 -0
- data/docs/BusinessOpeningHours.md +20 -0
- data/docs/BusinessOpeningHoursInterval.md +20 -0
- data/docs/CallbackQuery.md +30 -0
- data/docs/Chat.md +100 -0
- data/docs/ChatAdministratorRights.md +46 -0
- data/docs/ChatBoost.md +24 -0
- data/docs/ChatBoostAdded.md +18 -0
- data/docs/ChatBoostRemoved.md +24 -0
- data/docs/ChatBoostSourceGiftCode.md +20 -0
- data/docs/ChatBoostSourceGiveaway.md +24 -0
- data/docs/ChatBoostSourcePremium.md +20 -0
- data/docs/ChatBoostUpdated.md +20 -0
- data/docs/ChatInviteLink.md +34 -0
- data/docs/ChatJoinRequest.md +28 -0
- data/docs/ChatLocation.md +20 -0
- data/docs/ChatMemberAdministrator.md +54 -0
- data/docs/ChatMemberBanned.md +22 -0
- data/docs/ChatMemberLeft.md +20 -0
- data/docs/ChatMemberMember.md +20 -0
- data/docs/ChatMemberOwner.md +24 -0
- data/docs/ChatMemberRestricted.md +52 -0
- data/docs/ChatMemberUpdated.md +30 -0
- data/docs/ChatPermissions.md +44 -0
- data/docs/ChatPhoto.md +24 -0
- data/docs/ChatShared.md +26 -0
- data/docs/ChosenInlineResult.md +26 -0
- data/docs/Contact.md +26 -0
- data/docs/CopyMessage200Response.md +20 -0
- data/docs/CreateChatInviteLink200Response.md +20 -0
- data/docs/CreateForumTopic200Response.md +20 -0
- data/docs/DefaultApi.md +8843 -0
- data/docs/Dice.md +20 -0
- data/docs/Document.md +28 -0
- data/docs/EditMessageText200Response.md +20 -0
- data/docs/EditMessageText200ResponseResultValue.md +49 -0
- data/docs/EncryptedCredentials.md +22 -0
- data/docs/EncryptedPassportElement.md +36 -0
- data/docs/ExportChatInviteLink200Response.md +20 -0
- data/docs/ExternalReplyInfo.md +62 -0
- data/docs/File.md +24 -0
- data/docs/ForceReply.md +22 -0
- data/docs/ForumTopic.md +24 -0
- data/docs/ForumTopicCreated.md +22 -0
- data/docs/ForumTopicEdited.md +20 -0
- data/docs/ForwardMessages200Response.md +20 -0
- data/docs/Game.md +28 -0
- data/docs/GameHighScore.md +22 -0
- data/docs/GetBusinessConnection200Response.md +20 -0
- data/docs/GetChat200Response.md +20 -0
- data/docs/GetChatAdministrators200Response.md +20 -0
- data/docs/GetChatMember200Response.md +20 -0
- data/docs/GetChatMemberCount200Response.md +20 -0
- data/docs/GetChatMenuButton200Response.md +20 -0
- data/docs/GetFile200Response.md +20 -0
- data/docs/GetForumTopicIconStickers200Response.md +20 -0
- data/docs/GetGameHighScores200Response.md +20 -0
- data/docs/GetMe200Response.md +20 -0
- data/docs/GetMyCommands200Response.md +20 -0
- data/docs/GetMyDefaultAdministratorRights200Response.md +20 -0
- data/docs/GetMyDescription200Response.md +20 -0
- data/docs/GetMyName200Response.md +20 -0
- data/docs/GetMyShortDescription200Response.md +20 -0
- data/docs/GetStickerSet200Response.md +20 -0
- data/docs/GetUpdates200Response.md +20 -0
- data/docs/GetUpdates4XXResponse.md +22 -0
- data/docs/GetUserChatBoosts200Response.md +20 -0
- data/docs/GetUserProfilePhotos200Response.md +20 -0
- data/docs/GetWebhookInfo200Response.md +20 -0
- data/docs/Giveaway.md +32 -0
- data/docs/GiveawayCompleted.md +22 -0
- data/docs/GiveawayWinners.md +38 -0
- data/docs/InaccessibleMessage.md +22 -0
- data/docs/InlineKeyboardButton.md +36 -0
- data/docs/InlineKeyboardMarkup.md +18 -0
- data/docs/InlineQuery.md +28 -0
- data/docs/InlineQueryResultArticle.md +38 -0
- data/docs/InlineQueryResultAudio.md +38 -0
- data/docs/InlineQueryResultCachedAudio.md +32 -0
- data/docs/InlineQueryResultCachedDocument.md +36 -0
- data/docs/InlineQueryResultCachedGif.md +34 -0
- data/docs/InlineQueryResultCachedMpeg4Gif.md +34 -0
- data/docs/InlineQueryResultCachedPhoto.md +36 -0
- data/docs/InlineQueryResultCachedSticker.md +26 -0
- data/docs/InlineQueryResultCachedVideo.md +36 -0
- data/docs/InlineQueryResultCachedVoice.md +34 -0
- data/docs/InlineQueryResultContact.md +38 -0
- data/docs/InlineQueryResultDocument.md +44 -0
- data/docs/InlineQueryResultGame.md +24 -0
- data/docs/InlineQueryResultGif.md +44 -0
- data/docs/InlineQueryResultLocation.md +44 -0
- data/docs/InlineQueryResultMpeg4Gif.md +44 -0
- data/docs/InlineQueryResultPhoto.md +42 -0
- data/docs/InlineQueryResultVenue.md +46 -0
- data/docs/InlineQueryResultVideo.md +46 -0
- data/docs/InlineQueryResultVoice.md +36 -0
- data/docs/InlineQueryResultsButton.md +22 -0
- data/docs/InputContactMessageContent.md +24 -0
- data/docs/InputInvoiceMessageContent.md +56 -0
- data/docs/InputLocationMessageContent.md +28 -0
- data/docs/InputMediaAnimation.md +36 -0
- data/docs/InputMediaAudio.md +34 -0
- data/docs/InputMediaDocument.md +30 -0
- data/docs/InputMediaPhoto.md +28 -0
- data/docs/InputMediaVideo.md +38 -0
- data/docs/InputSticker.md +26 -0
- data/docs/InputTextMessageContent.md +24 -0
- data/docs/InputVenueMessageContent.md +32 -0
- data/docs/Invoice.md +26 -0
- data/docs/KeyboardButton.md +30 -0
- data/docs/KeyboardButtonPollType.md +18 -0
- data/docs/KeyboardButtonRequestChat.md +38 -0
- data/docs/KeyboardButtonRequestUsers.md +30 -0
- data/docs/LabeledPrice.md +20 -0
- data/docs/LinkPreviewOptions.md +26 -0
- data/docs/Location.md +28 -0
- data/docs/LoginUrl.md +24 -0
- data/docs/MaskPosition.md +24 -0
- data/docs/MenuButtonCommands.md +18 -0
- data/docs/MenuButtonDefault.md +18 -0
- data/docs/MenuButtonWebApp.md +22 -0
- data/docs/Message.md +176 -0
- data/docs/MessageAutoDeleteTimerChanged.md +18 -0
- data/docs/MessageEntity.md +30 -0
- data/docs/MessageId.md +18 -0
- data/docs/MessageOriginChannel.md +26 -0
- data/docs/MessageOriginChat.md +24 -0
- data/docs/MessageOriginHiddenUser.md +22 -0
- data/docs/MessageOriginUser.md +22 -0
- data/docs/MessageReactionCountUpdated.md +24 -0
- data/docs/MessageReactionUpdated.md +30 -0
- data/docs/OrderInfo.md +24 -0
- data/docs/PassportData.md +20 -0
- data/docs/PassportElementErrorDataField.md +26 -0
- data/docs/PassportElementErrorFile.md +24 -0
- data/docs/PassportElementErrorFiles.md +24 -0
- data/docs/PassportElementErrorFrontSide.md +24 -0
- data/docs/PassportElementErrorReverseSide.md +24 -0
- data/docs/PassportElementErrorSelfie.md +24 -0
- data/docs/PassportElementErrorTranslationFile.md +24 -0
- data/docs/PassportElementErrorTranslationFiles.md +24 -0
- data/docs/PassportElementErrorUnspecified.md +24 -0
- data/docs/PassportFile.md +24 -0
- data/docs/PhotoSize.md +26 -0
- data/docs/Poll.md +42 -0
- data/docs/PollAnswer.md +24 -0
- data/docs/PollOption.md +20 -0
- data/docs/PreCheckoutQuery.md +30 -0
- data/docs/ProximityAlertTriggered.md +22 -0
- data/docs/ReactionCount.md +20 -0
- data/docs/ReactionTypeCustomEmoji.md +20 -0
- data/docs/ReactionTypeEmoji.md +20 -0
- data/docs/ReplyKeyboardMarkup.md +28 -0
- data/docs/ReplyKeyboardRemove.md +20 -0
- data/docs/ReplyParameters.md +30 -0
- data/docs/ResponseParameters.md +20 -0
- data/docs/SendMediaGroup200Response.md +20 -0
- data/docs/SendMediaGroupMediaParameterValue.md +53 -0
- data/docs/SendMessage200Response.md +20 -0
- data/docs/SendMessageChatIdParameterValue.md +49 -0
- data/docs/SendMessageReplyMarkupParameterValue.md +53 -0
- data/docs/SendPhotoPhotoParameterValue.md +49 -0
- data/docs/SentWebAppMessage.md +18 -0
- data/docs/SetWebhook200Response.md +20 -0
- data/docs/SharedUser.md +26 -0
- data/docs/ShippingAddress.md +28 -0
- data/docs/ShippingOption.md +22 -0
- data/docs/ShippingQuery.md +24 -0
- data/docs/Sticker.md +46 -0
- data/docs/StickerSet.md +26 -0
- data/docs/StopPoll200Response.md +20 -0
- data/docs/Story.md +20 -0
- data/docs/SuccessfulPayment.md +30 -0
- data/docs/SwitchInlineQueryChosenChat.md +26 -0
- data/docs/TextQuote.md +24 -0
- data/docs/Update.md +62 -0
- data/docs/User.md +40 -0
- data/docs/UserChatBoosts.md +18 -0
- data/docs/UserProfilePhotos.md +20 -0
- data/docs/UsersShared.md +20 -0
- data/docs/Venue.md +30 -0
- data/docs/Video.md +34 -0
- data/docs/VideoChatEnded.md +18 -0
- data/docs/VideoChatParticipantsInvited.md +18 -0
- data/docs/VideoChatScheduled.md +18 -0
- data/docs/VideoNote.md +28 -0
- data/docs/Voice.md +26 -0
- data/docs/WebAppData.md +20 -0
- data/docs/WebAppInfo.md +18 -0
- data/docs/WebhookInfo.md +34 -0
- data/docs/WriteAccessAllowed.md +22 -0
- data/git_push.sh +57 -0
- data/lib/telegram-bot/api/default_api.rb +9305 -0
- data/lib/telegram-bot/api_client.rb +393 -0
- data/lib/telegram-bot/api_error.rb +58 -0
- data/lib/telegram-bot/configuration.rb +307 -0
- data/lib/telegram-bot/models/animation.rb +331 -0
- data/lib/telegram-bot/models/answer_web_app_query200_response.rb +223 -0
- data/lib/telegram-bot/models/audio.rb +317 -0
- data/lib/telegram-bot/models/birthdate.rb +250 -0
- data/lib/telegram-bot/models/bot_command.rb +240 -0
- data/lib/telegram-bot/models/bot_command_scope_all_chat_administrators.rb +223 -0
- data/lib/telegram-bot/models/bot_command_scope_all_group_chats.rb +223 -0
- data/lib/telegram-bot/models/bot_command_scope_all_private_chats.rb +223 -0
- data/lib/telegram-bot/models/bot_command_scope_chat.rb +242 -0
- data/lib/telegram-bot/models/bot_command_scope_chat_administrators.rb +242 -0
- data/lib/telegram-bot/models/bot_command_scope_chat_member.rb +259 -0
- data/lib/telegram-bot/models/bot_command_scope_default.rb +223 -0
- data/lib/telegram-bot/models/bot_description.rb +223 -0
- data/lib/telegram-bot/models/bot_name.rb +223 -0
- data/lib/telegram-bot/models/bot_short_description.rb +223 -0
- data/lib/telegram-bot/models/business_connection.rb +308 -0
- data/lib/telegram-bot/models/business_intro.rb +236 -0
- data/lib/telegram-bot/models/business_location.rb +233 -0
- data/lib/telegram-bot/models/business_messages_deleted.rb +259 -0
- data/lib/telegram-bot/models/business_opening_hours.rb +242 -0
- data/lib/telegram-bot/models/business_opening_hours_interval.rb +240 -0
- data/lib/telegram-bot/models/callback_query.rb +297 -0
- data/lib/telegram-bot/models/chat.rb +644 -0
- data/lib/telegram-bot/models/chat_administrator_rights.rb +433 -0
- data/lib/telegram-bot/models/chat_boost.rb +274 -0
- data/lib/telegram-bot/models/chat_boost_added.rb +223 -0
- data/lib/telegram-bot/models/chat_boost_removed.rb +274 -0
- data/lib/telegram-bot/models/chat_boost_source_gift_code.rb +240 -0
- data/lib/telegram-bot/models/chat_boost_source_giveaway.rb +260 -0
- data/lib/telegram-bot/models/chat_boost_source_premium.rb +240 -0
- data/lib/telegram-bot/models/chat_boost_updated.rb +240 -0
- data/lib/telegram-bot/models/chat_invite_link.rb +331 -0
- data/lib/telegram-bot/models/chat_join_request.rb +294 -0
- data/lib/telegram-bot/models/chat_location.rb +240 -0
- data/lib/telegram-bot/models/chat_member_administrator.rb +494 -0
- data/lib/telegram-bot/models/chat_member_banned.rb +257 -0
- data/lib/telegram-bot/models/chat_member_left.rb +240 -0
- data/lib/telegram-bot/models/chat_member_member.rb +240 -0
- data/lib/telegram-bot/models/chat_member_owner.rb +267 -0
- data/lib/telegram-bot/models/chat_member_restricted.rb +512 -0
- data/lib/telegram-bot/models/chat_member_updated.rb +311 -0
- data/lib/telegram-bot/models/chat_permissions.rb +346 -0
- data/lib/telegram-bot/models/chat_photo.rb +274 -0
- data/lib/telegram-bot/models/chat_shared.rb +272 -0
- data/lib/telegram-bot/models/chosen_inline_result.rb +277 -0
- data/lib/telegram-bot/models/contact.rb +270 -0
- data/lib/telegram-bot/models/copy_message200_response.rb +223 -0
- data/lib/telegram-bot/models/create_chat_invite_link200_response.rb +223 -0
- data/lib/telegram-bot/models/create_forum_topic200_response.rb +223 -0
- data/lib/telegram-bot/models/dice.rb +240 -0
- data/lib/telegram-bot/models/document.rb +280 -0
- data/lib/telegram-bot/models/edit_message_text200_response.rb +225 -0
- data/lib/telegram-bot/models/edit_message_text200_response_result_value.rb +105 -0
- data/lib/telegram-bot/models/encrypted_credentials.rb +257 -0
- data/lib/telegram-bot/models/encrypted_passport_element.rb +324 -0
- data/lib/telegram-bot/models/export_chat_invite_link200_response.rb +223 -0
- data/lib/telegram-bot/models/external_reply_info.rb +445 -0
- data/lib/telegram-bot/models/file.rb +260 -0
- data/lib/telegram-bot/models/force_reply.rb +243 -0
- data/lib/telegram-bot/models/forum_topic.rb +267 -0
- data/lib/telegram-bot/models/forum_topic_created.rb +250 -0
- data/lib/telegram-bot/models/forum_topic_edited.rb +226 -0
- data/lib/telegram-bot/models/forward_messages200_response.rb +225 -0
- data/lib/telegram-bot/models/game.rb +291 -0
- data/lib/telegram-bot/models/game_high_score.rb +257 -0
- data/lib/telegram-bot/models/get_business_connection200_response.rb +223 -0
- data/lib/telegram-bot/models/get_chat200_response.rb +223 -0
- data/lib/telegram-bot/models/get_chat_administrators200_response.rb +225 -0
- data/lib/telegram-bot/models/get_chat_member200_response.rb +224 -0
- data/lib/telegram-bot/models/get_chat_member_count200_response.rb +223 -0
- data/lib/telegram-bot/models/get_chat_menu_button200_response.rb +224 -0
- data/lib/telegram-bot/models/get_file200_response.rb +223 -0
- data/lib/telegram-bot/models/get_forum_topic_icon_stickers200_response.rb +225 -0
- data/lib/telegram-bot/models/get_game_high_scores200_response.rb +225 -0
- data/lib/telegram-bot/models/get_me200_response.rb +223 -0
- data/lib/telegram-bot/models/get_my_commands200_response.rb +225 -0
- data/lib/telegram-bot/models/get_my_default_administrator_rights200_response.rb +223 -0
- data/lib/telegram-bot/models/get_my_description200_response.rb +223 -0
- data/lib/telegram-bot/models/get_my_name200_response.rb +223 -0
- data/lib/telegram-bot/models/get_my_short_description200_response.rb +223 -0
- data/lib/telegram-bot/models/get_sticker_set200_response.rb +223 -0
- data/lib/telegram-bot/models/get_updates200_response.rb +225 -0
- data/lib/telegram-bot/models/get_updates4_xx_response.rb +232 -0
- data/lib/telegram-bot/models/get_user_chat_boosts200_response.rb +223 -0
- data/lib/telegram-bot/models/get_user_profile_photos200_response.rb +223 -0
- data/lib/telegram-bot/models/get_webhook_info200_response.rb +223 -0
- data/lib/telegram-bot/models/giveaway.rb +311 -0
- data/lib/telegram-bot/models/giveaway_completed.rb +243 -0
- data/lib/telegram-bot/models/giveaway_winners.rb +353 -0
- data/lib/telegram-bot/models/inaccessible_message.rb +257 -0
- data/lib/telegram-bot/models/inline_keyboard_button.rb +313 -0
- data/lib/telegram-bot/models/inline_keyboard_markup.rb +225 -0
- data/lib/telegram-bot/models/inline_query.rb +294 -0
- data/lib/telegram-bot/models/inline_query_result_article.rb +344 -0
- data/lib/telegram-bot/models/inline_query_result_audio.rb +346 -0
- data/lib/telegram-bot/models/inline_query_result_cached_audio.rb +309 -0
- data/lib/telegram-bot/models/inline_query_result_cached_document.rb +336 -0
- data/lib/telegram-bot/models/inline_query_result_cached_gif.rb +319 -0
- data/lib/telegram-bot/models/inline_query_result_cached_mpeg4_gif.rb +319 -0
- data/lib/telegram-bot/models/inline_query_result_cached_photo.rb +329 -0
- data/lib/telegram-bot/models/inline_query_result_cached_sticker.rb +277 -0
- data/lib/telegram-bot/models/inline_query_result_cached_video.rb +336 -0
- data/lib/telegram-bot/models/inline_query_result_cached_voice.rb +326 -0
- data/lib/telegram-bot/models/inline_query_result_contact.rb +344 -0
- data/lib/telegram-bot/models/inline_query_result_document.rb +383 -0
- data/lib/telegram-bot/models/inline_query_result_game.rb +267 -0
- data/lib/telegram-bot/models/inline_query_result_gif.rb +376 -0
- data/lib/telegram-bot/models/inline_query_result_location.rb +381 -0
- data/lib/telegram-bot/models/inline_query_result_mpeg4_gif.rb +376 -0
- data/lib/telegram-bot/models/inline_query_result_photo.rb +366 -0
- data/lib/telegram-bot/models/inline_query_result_venue.rb +398 -0
- data/lib/telegram-bot/models/inline_query_result_video.rb +400 -0
- data/lib/telegram-bot/models/inline_query_result_voice.rb +336 -0
- data/lib/telegram-bot/models/inline_query_results_button.rb +243 -0
- data/lib/telegram-bot/models/input_contact_message_content.rb +260 -0
- data/lib/telegram-bot/models/input_invoice_message_content.rb +452 -0
- data/lib/telegram-bot/models/input_location_message_content.rb +280 -0
- data/lib/telegram-bot/models/input_media_animation.rb +324 -0
- data/lib/telegram-bot/models/input_media_audio.rb +314 -0
- data/lib/telegram-bot/models/input_media_document.rb +294 -0
- data/lib/telegram-bot/models/input_media_photo.rb +282 -0
- data/lib/telegram-bot/models/input_media_video.rb +334 -0
- data/lib/telegram-bot/models/input_sticker.rb +283 -0
- data/lib/telegram-bot/models/input_text_message_content.rb +255 -0
- data/lib/telegram-bot/models/input_venue_message_content.rb +314 -0
- data/lib/telegram-bot/models/invoice.rb +291 -0
- data/lib/telegram-bot/models/keyboard_button.rb +283 -0
- data/lib/telegram-bot/models/keyboard_button_poll_type.rb +216 -0
- data/lib/telegram-bot/models/keyboard_button_request_chat.rb +330 -0
- data/lib/telegram-bot/models/keyboard_button_request_users.rb +283 -0
- data/lib/telegram-bot/models/labeled_price.rb +240 -0
- data/lib/telegram-bot/models/link_preview_options.rb +256 -0
- data/lib/telegram-bot/models/location.rb +280 -0
- data/lib/telegram-bot/models/login_url.rb +253 -0
- data/lib/telegram-bot/models/mask_position.rb +274 -0
- data/lib/telegram-bot/models/menu_button_commands.rb +223 -0
- data/lib/telegram-bot/models/menu_button_default.rb +223 -0
- data/lib/telegram-bot/models/menu_button_web_app.rb +257 -0
- data/lib/telegram-bot/models/message.rb +1037 -0
- data/lib/telegram-bot/models/message_auto_delete_timer_changed.rb +223 -0
- data/lib/telegram-bot/models/message_entity.rb +297 -0
- data/lib/telegram-bot/models/message_id.rb +223 -0
- data/lib/telegram-bot/models/message_origin_channel.rb +284 -0
- data/lib/telegram-bot/models/message_origin_chat.rb +267 -0
- data/lib/telegram-bot/models/message_origin_hidden_user.rb +257 -0
- data/lib/telegram-bot/models/message_origin_user.rb +257 -0
- data/lib/telegram-bot/models/message_reaction_count_updated.rb +276 -0
- data/lib/telegram-bot/models/message_reaction_updated.rb +315 -0
- data/lib/telegram-bot/models/order_info.rb +246 -0
- data/lib/telegram-bot/models/passport_data.rb +242 -0
- data/lib/telegram-bot/models/passport_element_error_data_field.rb +291 -0
- data/lib/telegram-bot/models/passport_element_error_file.rb +274 -0
- data/lib/telegram-bot/models/passport_element_error_files.rb +276 -0
- data/lib/telegram-bot/models/passport_element_error_front_side.rb +274 -0
- data/lib/telegram-bot/models/passport_element_error_reverse_side.rb +274 -0
- data/lib/telegram-bot/models/passport_element_error_selfie.rb +274 -0
- data/lib/telegram-bot/models/passport_element_error_translation_file.rb +274 -0
- data/lib/telegram-bot/models/passport_element_error_translation_files.rb +276 -0
- data/lib/telegram-bot/models/passport_element_error_unspecified.rb +274 -0
- data/lib/telegram-bot/models/passport_file.rb +274 -0
- data/lib/telegram-bot/models/photo_size.rb +284 -0
- data/lib/telegram-bot/models/poll.rb +396 -0
- data/lib/telegram-bot/models/poll_answer.rb +262 -0
- data/lib/telegram-bot/models/poll_option.rb +240 -0
- data/lib/telegram-bot/models/pre_checkout_query.rb +311 -0
- data/lib/telegram-bot/models/proximity_alert_triggered.rb +257 -0
- data/lib/telegram-bot/models/reaction_count.rb +240 -0
- data/lib/telegram-bot/models/reaction_type_custom_emoji.rb +240 -0
- data/lib/telegram-bot/models/reaction_type_emoji.rb +240 -0
- data/lib/telegram-bot/models/reply_keyboard_markup.rb +275 -0
- data/lib/telegram-bot/models/reply_keyboard_remove.rb +233 -0
- data/lib/telegram-bot/models/reply_parameters.rb +287 -0
- data/lib/telegram-bot/models/response_parameters.rb +226 -0
- data/lib/telegram-bot/models/send_media_group200_response.rb +225 -0
- data/lib/telegram-bot/models/send_media_group_media_parameter_value.rb +107 -0
- data/lib/telegram-bot/models/send_message200_response.rb +223 -0
- data/lib/telegram-bot/models/send_message_chat_id_parameter_value.rb +105 -0
- data/lib/telegram-bot/models/send_message_reply_markup_parameter_value.rb +107 -0
- data/lib/telegram-bot/models/send_photo_photo_parameter_value.rb +105 -0
- data/lib/telegram-bot/models/sent_web_app_message.rb +216 -0
- data/lib/telegram-bot/models/set_webhook200_response.rb +223 -0
- data/lib/telegram-bot/models/shared_user.rb +265 -0
- data/lib/telegram-bot/models/shipping_address.rb +308 -0
- data/lib/telegram-bot/models/shipping_option.rb +259 -0
- data/lib/telegram-bot/models/shipping_query.rb +274 -0
- data/lib/telegram-bot/models/sticker.rb +405 -0
- data/lib/telegram-bot/models/sticker_set.rb +286 -0
- data/lib/telegram-bot/models/stop_poll200_response.rb +223 -0
- data/lib/telegram-bot/models/story.rb +240 -0
- data/lib/telegram-bot/models/successful_payment.rb +311 -0
- data/lib/telegram-bot/models/switch_inline_query_chosen_chat.rb +256 -0
- data/lib/telegram-bot/models/text_quote.rb +262 -0
- data/lib/telegram-bot/models/update.rb +443 -0
- data/lib/telegram-bot/models/user.rb +347 -0
- data/lib/telegram-bot/models/user_chat_boosts.rb +225 -0
- data/lib/telegram-bot/models/user_profile_photos.rb +242 -0
- data/lib/telegram-bot/models/users_shared.rb +242 -0
- data/lib/telegram-bot/models/venue.rb +297 -0
- data/lib/telegram-bot/models/video.rb +331 -0
- data/lib/telegram-bot/models/video_chat_ended.rb +223 -0
- data/lib/telegram-bot/models/video_chat_participants_invited.rb +225 -0
- data/lib/telegram-bot/models/video_chat_scheduled.rb +223 -0
- data/lib/telegram-bot/models/video_note.rb +294 -0
- data/lib/telegram-bot/models/voice.rb +277 -0
- data/lib/telegram-bot/models/web_app_data.rb +240 -0
- data/lib/telegram-bot/models/web_app_info.rb +223 -0
- data/lib/telegram-bot/models/webhook_info.rb +319 -0
- data/lib/telegram-bot/models/write_access_allowed.rb +236 -0
- data/lib/telegram-bot/version.rb +15 -0
- data/lib/telegram-bot.rb +248 -0
- data/spec/api/default_api_spec.rb +1904 -0
- data/spec/models/animation_spec.rb +84 -0
- data/spec/models/answer_web_app_query200_response_spec.rb +42 -0
- data/spec/models/audio_spec.rb +84 -0
- data/spec/models/birthdate_spec.rb +48 -0
- data/spec/models/bot_command_scope_all_chat_administrators_spec.rb +36 -0
- data/spec/models/bot_command_scope_all_group_chats_spec.rb +36 -0
- data/spec/models/bot_command_scope_all_private_chats_spec.rb +36 -0
- data/spec/models/bot_command_scope_chat_administrators_spec.rb +42 -0
- data/spec/models/bot_command_scope_chat_member_spec.rb +48 -0
- data/spec/models/bot_command_scope_chat_spec.rb +42 -0
- data/spec/models/bot_command_scope_default_spec.rb +36 -0
- data/spec/models/bot_command_spec.rb +42 -0
- data/spec/models/bot_description_spec.rb +36 -0
- data/spec/models/bot_name_spec.rb +36 -0
- data/spec/models/bot_short_description_spec.rb +36 -0
- data/spec/models/business_connection_spec.rb +66 -0
- data/spec/models/business_intro_spec.rb +48 -0
- data/spec/models/business_location_spec.rb +42 -0
- data/spec/models/business_messages_deleted_spec.rb +48 -0
- data/spec/models/business_opening_hours_interval_spec.rb +42 -0
- data/spec/models/business_opening_hours_spec.rb +42 -0
- data/spec/models/callback_query_spec.rb +72 -0
- data/spec/models/chat_administrator_rights_spec.rb +120 -0
- data/spec/models/chat_boost_added_spec.rb +36 -0
- data/spec/models/chat_boost_removed_spec.rb +54 -0
- data/spec/models/chat_boost_source_gift_code_spec.rb +42 -0
- data/spec/models/chat_boost_source_giveaway_spec.rb +54 -0
- data/spec/models/chat_boost_source_premium_spec.rb +42 -0
- data/spec/models/chat_boost_spec.rb +54 -0
- data/spec/models/chat_boost_updated_spec.rb +42 -0
- data/spec/models/chat_invite_link_spec.rb +84 -0
- data/spec/models/chat_join_request_spec.rb +66 -0
- data/spec/models/chat_location_spec.rb +42 -0
- data/spec/models/chat_member_administrator_spec.rb +144 -0
- data/spec/models/chat_member_banned_spec.rb +48 -0
- data/spec/models/chat_member_left_spec.rb +42 -0
- data/spec/models/chat_member_member_spec.rb +42 -0
- data/spec/models/chat_member_owner_spec.rb +54 -0
- data/spec/models/chat_member_restricted_spec.rb +138 -0
- data/spec/models/chat_member_updated_spec.rb +72 -0
- data/spec/models/chat_permissions_spec.rb +114 -0
- data/spec/models/chat_photo_spec.rb +54 -0
- data/spec/models/chat_shared_spec.rb +60 -0
- data/spec/models/chat_spec.rb +282 -0
- data/spec/models/chosen_inline_result_spec.rb +60 -0
- data/spec/models/contact_spec.rb +60 -0
- data/spec/models/copy_message200_response_spec.rb +42 -0
- data/spec/models/create_chat_invite_link200_response_spec.rb +42 -0
- data/spec/models/create_forum_topic200_response_spec.rb +42 -0
- data/spec/models/dice_spec.rb +42 -0
- data/spec/models/document_spec.rb +66 -0
- data/spec/models/edit_message_text200_response_result_value_spec.rb +32 -0
- data/spec/models/edit_message_text200_response_spec.rb +42 -0
- data/spec/models/encrypted_credentials_spec.rb +48 -0
- data/spec/models/encrypted_passport_element_spec.rb +90 -0
- data/spec/models/export_chat_invite_link200_response_spec.rb +42 -0
- data/spec/models/external_reply_info_spec.rb +168 -0
- data/spec/models/file_spec.rb +54 -0
- data/spec/models/force_reply_spec.rb +48 -0
- data/spec/models/forum_topic_created_spec.rb +48 -0
- data/spec/models/forum_topic_edited_spec.rb +42 -0
- data/spec/models/forum_topic_spec.rb +54 -0
- data/spec/models/forward_messages200_response_spec.rb +42 -0
- data/spec/models/game_high_score_spec.rb +48 -0
- data/spec/models/game_spec.rb +66 -0
- data/spec/models/get_business_connection200_response_spec.rb +42 -0
- data/spec/models/get_chat200_response_spec.rb +42 -0
- data/spec/models/get_chat_administrators200_response_spec.rb +42 -0
- data/spec/models/get_chat_member200_response_spec.rb +42 -0
- data/spec/models/get_chat_member_count200_response_spec.rb +42 -0
- data/spec/models/get_chat_menu_button200_response_spec.rb +42 -0
- data/spec/models/get_file200_response_spec.rb +42 -0
- data/spec/models/get_forum_topic_icon_stickers200_response_spec.rb +42 -0
- data/spec/models/get_game_high_scores200_response_spec.rb +42 -0
- data/spec/models/get_me200_response_spec.rb +42 -0
- data/spec/models/get_my_commands200_response_spec.rb +42 -0
- data/spec/models/get_my_default_administrator_rights200_response_spec.rb +42 -0
- data/spec/models/get_my_description200_response_spec.rb +42 -0
- data/spec/models/get_my_name200_response_spec.rb +42 -0
- data/spec/models/get_my_short_description200_response_spec.rb +42 -0
- data/spec/models/get_sticker_set200_response_spec.rb +42 -0
- data/spec/models/get_updates200_response_spec.rb +42 -0
- data/spec/models/get_updates4_xx_response_spec.rb +48 -0
- data/spec/models/get_user_chat_boosts200_response_spec.rb +42 -0
- data/spec/models/get_user_profile_photos200_response_spec.rb +42 -0
- data/spec/models/get_webhook_info200_response_spec.rb +42 -0
- data/spec/models/giveaway_completed_spec.rb +48 -0
- data/spec/models/giveaway_spec.rb +78 -0
- data/spec/models/giveaway_winners_spec.rb +96 -0
- data/spec/models/inaccessible_message_spec.rb +48 -0
- data/spec/models/inline_keyboard_button_spec.rb +90 -0
- data/spec/models/inline_keyboard_markup_spec.rb +36 -0
- data/spec/models/inline_query_result_article_spec.rb +96 -0
- data/spec/models/inline_query_result_audio_spec.rb +96 -0
- data/spec/models/inline_query_result_cached_audio_spec.rb +78 -0
- data/spec/models/inline_query_result_cached_document_spec.rb +90 -0
- data/spec/models/inline_query_result_cached_gif_spec.rb +84 -0
- data/spec/models/inline_query_result_cached_mpeg4_gif_spec.rb +84 -0
- data/spec/models/inline_query_result_cached_photo_spec.rb +90 -0
- data/spec/models/inline_query_result_cached_sticker_spec.rb +60 -0
- data/spec/models/inline_query_result_cached_video_spec.rb +90 -0
- data/spec/models/inline_query_result_cached_voice_spec.rb +84 -0
- data/spec/models/inline_query_result_contact_spec.rb +96 -0
- data/spec/models/inline_query_result_document_spec.rb +114 -0
- data/spec/models/inline_query_result_game_spec.rb +54 -0
- data/spec/models/inline_query_result_gif_spec.rb +114 -0
- data/spec/models/inline_query_result_location_spec.rb +114 -0
- data/spec/models/inline_query_result_mpeg4_gif_spec.rb +114 -0
- data/spec/models/inline_query_result_photo_spec.rb +108 -0
- data/spec/models/inline_query_result_venue_spec.rb +120 -0
- data/spec/models/inline_query_result_video_spec.rb +120 -0
- data/spec/models/inline_query_result_voice_spec.rb +90 -0
- data/spec/models/inline_query_results_button_spec.rb +48 -0
- data/spec/models/inline_query_spec.rb +66 -0
- data/spec/models/input_contact_message_content_spec.rb +54 -0
- data/spec/models/input_invoice_message_content_spec.rb +150 -0
- data/spec/models/input_location_message_content_spec.rb +66 -0
- data/spec/models/input_media_animation_spec.rb +90 -0
- data/spec/models/input_media_audio_spec.rb +84 -0
- data/spec/models/input_media_document_spec.rb +72 -0
- data/spec/models/input_media_photo_spec.rb +66 -0
- data/spec/models/input_media_video_spec.rb +96 -0
- data/spec/models/input_sticker_spec.rb +60 -0
- data/spec/models/input_text_message_content_spec.rb +54 -0
- data/spec/models/input_venue_message_content_spec.rb +78 -0
- data/spec/models/invoice_spec.rb +60 -0
- data/spec/models/keyboard_button_poll_type_spec.rb +36 -0
- data/spec/models/keyboard_button_request_chat_spec.rb +96 -0
- data/spec/models/keyboard_button_request_users_spec.rb +72 -0
- data/spec/models/keyboard_button_spec.rb +72 -0
- data/spec/models/labeled_price_spec.rb +42 -0
- data/spec/models/link_preview_options_spec.rb +60 -0
- data/spec/models/location_spec.rb +66 -0
- data/spec/models/login_url_spec.rb +54 -0
- data/spec/models/mask_position_spec.rb +54 -0
- data/spec/models/menu_button_commands_spec.rb +36 -0
- data/spec/models/menu_button_default_spec.rb +36 -0
- data/spec/models/menu_button_web_app_spec.rb +48 -0
- data/spec/models/message_auto_delete_timer_changed_spec.rb +36 -0
- data/spec/models/message_entity_spec.rb +72 -0
- data/spec/models/message_id_spec.rb +36 -0
- data/spec/models/message_origin_channel_spec.rb +60 -0
- data/spec/models/message_origin_chat_spec.rb +54 -0
- data/spec/models/message_origin_hidden_user_spec.rb +48 -0
- data/spec/models/message_origin_user_spec.rb +48 -0
- data/spec/models/message_reaction_count_updated_spec.rb +54 -0
- data/spec/models/message_reaction_updated_spec.rb +72 -0
- data/spec/models/message_spec.rb +510 -0
- data/spec/models/order_info_spec.rb +54 -0
- data/spec/models/passport_data_spec.rb +42 -0
- data/spec/models/passport_element_error_data_field_spec.rb +60 -0
- data/spec/models/passport_element_error_file_spec.rb +54 -0
- data/spec/models/passport_element_error_files_spec.rb +54 -0
- data/spec/models/passport_element_error_front_side_spec.rb +54 -0
- data/spec/models/passport_element_error_reverse_side_spec.rb +54 -0
- data/spec/models/passport_element_error_selfie_spec.rb +54 -0
- data/spec/models/passport_element_error_translation_file_spec.rb +54 -0
- data/spec/models/passport_element_error_translation_files_spec.rb +54 -0
- data/spec/models/passport_element_error_unspecified_spec.rb +54 -0
- data/spec/models/passport_file_spec.rb +54 -0
- data/spec/models/photo_size_spec.rb +60 -0
- data/spec/models/poll_answer_spec.rb +54 -0
- data/spec/models/poll_option_spec.rb +42 -0
- data/spec/models/poll_spec.rb +108 -0
- data/spec/models/pre_checkout_query_spec.rb +72 -0
- data/spec/models/proximity_alert_triggered_spec.rb +48 -0
- data/spec/models/reaction_count_spec.rb +42 -0
- data/spec/models/reaction_type_custom_emoji_spec.rb +42 -0
- data/spec/models/reaction_type_emoji_spec.rb +42 -0
- data/spec/models/reply_keyboard_markup_spec.rb +66 -0
- data/spec/models/reply_keyboard_remove_spec.rb +42 -0
- data/spec/models/reply_parameters_spec.rb +72 -0
- data/spec/models/response_parameters_spec.rb +42 -0
- data/spec/models/send_media_group200_response_spec.rb +42 -0
- data/spec/models/send_media_group_media_parameter_value_spec.rb +32 -0
- data/spec/models/send_message200_response_spec.rb +42 -0
- data/spec/models/send_message_chat_id_parameter_value_spec.rb +32 -0
- data/spec/models/send_message_reply_markup_parameter_value_spec.rb +32 -0
- data/spec/models/send_photo_photo_parameter_value_spec.rb +32 -0
- data/spec/models/sent_web_app_message_spec.rb +36 -0
- data/spec/models/set_webhook200_response_spec.rb +42 -0
- data/spec/models/shared_user_spec.rb +60 -0
- data/spec/models/shipping_address_spec.rb +66 -0
- data/spec/models/shipping_option_spec.rb +48 -0
- data/spec/models/shipping_query_spec.rb +54 -0
- data/spec/models/sticker_set_spec.rb +60 -0
- data/spec/models/sticker_spec.rb +120 -0
- data/spec/models/stop_poll200_response_spec.rb +42 -0
- data/spec/models/story_spec.rb +42 -0
- data/spec/models/successful_payment_spec.rb +72 -0
- data/spec/models/switch_inline_query_chosen_chat_spec.rb +60 -0
- data/spec/models/text_quote_spec.rb +54 -0
- data/spec/models/update_spec.rb +168 -0
- data/spec/models/user_chat_boosts_spec.rb +36 -0
- data/spec/models/user_profile_photos_spec.rb +42 -0
- data/spec/models/user_spec.rb +102 -0
- data/spec/models/users_shared_spec.rb +42 -0
- data/spec/models/venue_spec.rb +72 -0
- data/spec/models/video_chat_ended_spec.rb +36 -0
- data/spec/models/video_chat_participants_invited_spec.rb +36 -0
- data/spec/models/video_chat_scheduled_spec.rb +36 -0
- data/spec/models/video_note_spec.rb +66 -0
- data/spec/models/video_spec.rb +84 -0
- data/spec/models/voice_spec.rb +60 -0
- data/spec/models/web_app_data_spec.rb +42 -0
- data/spec/models/web_app_info_spec.rb +36 -0
- data/spec/models/webhook_info_spec.rb +84 -0
- data/spec/models/write_access_allowed_spec.rb +48 -0
- data/spec/spec_helper.rb +111 -0
- data/telegram-bot-7.2.0.gem +0 -0
- data/telegram-bot-openapi-7.2.0.gem +0 -0
- data/telegram-bot.gemspec +40 -0
- metadata +934 -0
@@ -0,0 +1,510 @@
|
|
1
|
+
=begin
|
2
|
+
#telegram-bot-api
|
3
|
+
|
4
|
+
#Unofficial telegram-bot-api OpenAPI spec. Generated from the Bot API docs at https://core.telegram.org/bots/api
|
5
|
+
|
6
|
+
The version of the OpenAPI document: Bot API 7.2
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.7.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for TelegramBot::Message
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe TelegramBot::Message do
|
21
|
+
let(:instance) { TelegramBot::Message.new }
|
22
|
+
|
23
|
+
describe 'test an instance of Message' do
|
24
|
+
it 'should create an instance of Message' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(TelegramBot::Message)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "message_id"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "message_thread_id"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "from"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'test attribute "sender_chat"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'test attribute "sender_boost_count"' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe 'test attribute "sender_business_bot"' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe 'test attribute "date"' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
describe 'test attribute "business_connection_id"' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
describe 'test attribute "chat"' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
describe 'test attribute "forward_origin"' do
|
85
|
+
it 'should work' do
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
describe 'test attribute "is_topic_message"' do
|
91
|
+
it 'should work' do
|
92
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
describe 'test attribute "is_automatic_forward"' do
|
97
|
+
it 'should work' do
|
98
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
describe 'test attribute "reply_to_message"' do
|
103
|
+
it 'should work' do
|
104
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
describe 'test attribute "external_reply"' do
|
109
|
+
it 'should work' do
|
110
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
describe 'test attribute "quote"' do
|
115
|
+
it 'should work' do
|
116
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
describe 'test attribute "reply_to_story"' do
|
121
|
+
it 'should work' do
|
122
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
describe 'test attribute "via_bot"' do
|
127
|
+
it 'should work' do
|
128
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
describe 'test attribute "edit_date"' do
|
133
|
+
it 'should work' do
|
134
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
describe 'test attribute "has_protected_content"' do
|
139
|
+
it 'should work' do
|
140
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
describe 'test attribute "is_from_offline"' do
|
145
|
+
it 'should work' do
|
146
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
describe 'test attribute "media_group_id"' do
|
151
|
+
it 'should work' do
|
152
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
describe 'test attribute "author_signature"' do
|
157
|
+
it 'should work' do
|
158
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
describe 'test attribute "text"' do
|
163
|
+
it 'should work' do
|
164
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
describe 'test attribute "entities"' do
|
169
|
+
it 'should work' do
|
170
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
describe 'test attribute "link_preview_options"' do
|
175
|
+
it 'should work' do
|
176
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
describe 'test attribute "animation"' do
|
181
|
+
it 'should work' do
|
182
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
describe 'test attribute "audio"' do
|
187
|
+
it 'should work' do
|
188
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
describe 'test attribute "document"' do
|
193
|
+
it 'should work' do
|
194
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
describe 'test attribute "photo"' do
|
199
|
+
it 'should work' do
|
200
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
describe 'test attribute "sticker"' do
|
205
|
+
it 'should work' do
|
206
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
describe 'test attribute "story"' do
|
211
|
+
it 'should work' do
|
212
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
describe 'test attribute "video"' do
|
217
|
+
it 'should work' do
|
218
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
describe 'test attribute "video_note"' do
|
223
|
+
it 'should work' do
|
224
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
describe 'test attribute "voice"' do
|
229
|
+
it 'should work' do
|
230
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
describe 'test attribute "caption"' do
|
235
|
+
it 'should work' do
|
236
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
describe 'test attribute "caption_entities"' do
|
241
|
+
it 'should work' do
|
242
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
describe 'test attribute "has_media_spoiler"' do
|
247
|
+
it 'should work' do
|
248
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
describe 'test attribute "contact"' do
|
253
|
+
it 'should work' do
|
254
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
describe 'test attribute "dice"' do
|
259
|
+
it 'should work' do
|
260
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
261
|
+
end
|
262
|
+
end
|
263
|
+
|
264
|
+
describe 'test attribute "game"' do
|
265
|
+
it 'should work' do
|
266
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
describe 'test attribute "poll"' do
|
271
|
+
it 'should work' do
|
272
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
273
|
+
end
|
274
|
+
end
|
275
|
+
|
276
|
+
describe 'test attribute "venue"' do
|
277
|
+
it 'should work' do
|
278
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
282
|
+
describe 'test attribute "location"' do
|
283
|
+
it 'should work' do
|
284
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
288
|
+
describe 'test attribute "new_chat_members"' do
|
289
|
+
it 'should work' do
|
290
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
294
|
+
describe 'test attribute "left_chat_member"' do
|
295
|
+
it 'should work' do
|
296
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
300
|
+
describe 'test attribute "new_chat_title"' do
|
301
|
+
it 'should work' do
|
302
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
303
|
+
end
|
304
|
+
end
|
305
|
+
|
306
|
+
describe 'test attribute "new_chat_photo"' do
|
307
|
+
it 'should work' do
|
308
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
309
|
+
end
|
310
|
+
end
|
311
|
+
|
312
|
+
describe 'test attribute "delete_chat_photo"' do
|
313
|
+
it 'should work' do
|
314
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
315
|
+
end
|
316
|
+
end
|
317
|
+
|
318
|
+
describe 'test attribute "group_chat_created"' do
|
319
|
+
it 'should work' do
|
320
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
321
|
+
end
|
322
|
+
end
|
323
|
+
|
324
|
+
describe 'test attribute "supergroup_chat_created"' do
|
325
|
+
it 'should work' do
|
326
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
327
|
+
end
|
328
|
+
end
|
329
|
+
|
330
|
+
describe 'test attribute "channel_chat_created"' do
|
331
|
+
it 'should work' do
|
332
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
336
|
+
describe 'test attribute "message_auto_delete_timer_changed"' do
|
337
|
+
it 'should work' do
|
338
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
339
|
+
end
|
340
|
+
end
|
341
|
+
|
342
|
+
describe 'test attribute "migrate_to_chat_id"' do
|
343
|
+
it 'should work' do
|
344
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
345
|
+
end
|
346
|
+
end
|
347
|
+
|
348
|
+
describe 'test attribute "migrate_from_chat_id"' do
|
349
|
+
it 'should work' do
|
350
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
351
|
+
end
|
352
|
+
end
|
353
|
+
|
354
|
+
describe 'test attribute "pinned_message"' do
|
355
|
+
it 'should work' do
|
356
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
357
|
+
end
|
358
|
+
end
|
359
|
+
|
360
|
+
describe 'test attribute "invoice"' do
|
361
|
+
it 'should work' do
|
362
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
363
|
+
end
|
364
|
+
end
|
365
|
+
|
366
|
+
describe 'test attribute "successful_payment"' do
|
367
|
+
it 'should work' do
|
368
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
369
|
+
end
|
370
|
+
end
|
371
|
+
|
372
|
+
describe 'test attribute "users_shared"' do
|
373
|
+
it 'should work' do
|
374
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
375
|
+
end
|
376
|
+
end
|
377
|
+
|
378
|
+
describe 'test attribute "chat_shared"' do
|
379
|
+
it 'should work' do
|
380
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
381
|
+
end
|
382
|
+
end
|
383
|
+
|
384
|
+
describe 'test attribute "connected_website"' do
|
385
|
+
it 'should work' do
|
386
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
387
|
+
end
|
388
|
+
end
|
389
|
+
|
390
|
+
describe 'test attribute "write_access_allowed"' do
|
391
|
+
it 'should work' do
|
392
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
393
|
+
end
|
394
|
+
end
|
395
|
+
|
396
|
+
describe 'test attribute "passport_data"' do
|
397
|
+
it 'should work' do
|
398
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
399
|
+
end
|
400
|
+
end
|
401
|
+
|
402
|
+
describe 'test attribute "proximity_alert_triggered"' do
|
403
|
+
it 'should work' do
|
404
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
405
|
+
end
|
406
|
+
end
|
407
|
+
|
408
|
+
describe 'test attribute "boost_added"' do
|
409
|
+
it 'should work' do
|
410
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
411
|
+
end
|
412
|
+
end
|
413
|
+
|
414
|
+
describe 'test attribute "forum_topic_created"' do
|
415
|
+
it 'should work' do
|
416
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
417
|
+
end
|
418
|
+
end
|
419
|
+
|
420
|
+
describe 'test attribute "forum_topic_edited"' do
|
421
|
+
it 'should work' do
|
422
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
423
|
+
end
|
424
|
+
end
|
425
|
+
|
426
|
+
describe 'test attribute "forum_topic_closed"' do
|
427
|
+
it 'should work' do
|
428
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
429
|
+
end
|
430
|
+
end
|
431
|
+
|
432
|
+
describe 'test attribute "forum_topic_reopened"' do
|
433
|
+
it 'should work' do
|
434
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
435
|
+
end
|
436
|
+
end
|
437
|
+
|
438
|
+
describe 'test attribute "general_forum_topic_hidden"' do
|
439
|
+
it 'should work' do
|
440
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
441
|
+
end
|
442
|
+
end
|
443
|
+
|
444
|
+
describe 'test attribute "general_forum_topic_unhidden"' do
|
445
|
+
it 'should work' do
|
446
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
447
|
+
end
|
448
|
+
end
|
449
|
+
|
450
|
+
describe 'test attribute "giveaway_created"' do
|
451
|
+
it 'should work' do
|
452
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
453
|
+
end
|
454
|
+
end
|
455
|
+
|
456
|
+
describe 'test attribute "giveaway"' do
|
457
|
+
it 'should work' do
|
458
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
459
|
+
end
|
460
|
+
end
|
461
|
+
|
462
|
+
describe 'test attribute "giveaway_winners"' do
|
463
|
+
it 'should work' do
|
464
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
465
|
+
end
|
466
|
+
end
|
467
|
+
|
468
|
+
describe 'test attribute "giveaway_completed"' do
|
469
|
+
it 'should work' do
|
470
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
471
|
+
end
|
472
|
+
end
|
473
|
+
|
474
|
+
describe 'test attribute "video_chat_scheduled"' do
|
475
|
+
it 'should work' do
|
476
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
477
|
+
end
|
478
|
+
end
|
479
|
+
|
480
|
+
describe 'test attribute "video_chat_started"' do
|
481
|
+
it 'should work' do
|
482
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
483
|
+
end
|
484
|
+
end
|
485
|
+
|
486
|
+
describe 'test attribute "video_chat_ended"' do
|
487
|
+
it 'should work' do
|
488
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
489
|
+
end
|
490
|
+
end
|
491
|
+
|
492
|
+
describe 'test attribute "video_chat_participants_invited"' do
|
493
|
+
it 'should work' do
|
494
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
495
|
+
end
|
496
|
+
end
|
497
|
+
|
498
|
+
describe 'test attribute "web_app_data"' do
|
499
|
+
it 'should work' do
|
500
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
501
|
+
end
|
502
|
+
end
|
503
|
+
|
504
|
+
describe 'test attribute "reply_markup"' do
|
505
|
+
it 'should work' do
|
506
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
507
|
+
end
|
508
|
+
end
|
509
|
+
|
510
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
=begin
|
2
|
+
#telegram-bot-api
|
3
|
+
|
4
|
+
#Unofficial telegram-bot-api OpenAPI spec. Generated from the Bot API docs at https://core.telegram.org/bots/api
|
5
|
+
|
6
|
+
The version of the OpenAPI document: Bot API 7.2
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.7.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for TelegramBot::OrderInfo
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe TelegramBot::OrderInfo do
|
21
|
+
let(:instance) { TelegramBot::OrderInfo.new }
|
22
|
+
|
23
|
+
describe 'test an instance of OrderInfo' do
|
24
|
+
it 'should create an instance of OrderInfo' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(TelegramBot::OrderInfo)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "name"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "phone_number"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "email"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'test attribute "shipping_address"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
=begin
|
2
|
+
#telegram-bot-api
|
3
|
+
|
4
|
+
#Unofficial telegram-bot-api OpenAPI spec. Generated from the Bot API docs at https://core.telegram.org/bots/api
|
5
|
+
|
6
|
+
The version of the OpenAPI document: Bot API 7.2
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.7.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for TelegramBot::PassportData
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe TelegramBot::PassportData do
|
21
|
+
let(:instance) { TelegramBot::PassportData.new }
|
22
|
+
|
23
|
+
describe 'test an instance of PassportData' do
|
24
|
+
it 'should create an instance of PassportData' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(TelegramBot::PassportData)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "data"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "credentials"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
=begin
|
2
|
+
#telegram-bot-api
|
3
|
+
|
4
|
+
#Unofficial telegram-bot-api OpenAPI spec. Generated from the Bot API docs at https://core.telegram.org/bots/api
|
5
|
+
|
6
|
+
The version of the OpenAPI document: Bot API 7.2
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.7.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for TelegramBot::PassportElementErrorDataField
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe TelegramBot::PassportElementErrorDataField do
|
21
|
+
let(:instance) { TelegramBot::PassportElementErrorDataField.new }
|
22
|
+
|
23
|
+
describe 'test an instance of PassportElementErrorDataField' do
|
24
|
+
it 'should create an instance of PassportElementErrorDataField' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(TelegramBot::PassportElementErrorDataField)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "source"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "type"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "field_name"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'test attribute "data_hash"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'test attribute "message"' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|