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,20 @@
|
|
1
|
+
# TelegramBot::BotCommandScopeChat
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | Scope type, must be chat | |
|
8
|
+
| **chat_id** | [**Hash<String, SendMessageChatIdParameterValue>**](SendMessageChatIdParameterValue.md) | Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'telegram-bot'
|
14
|
+
|
15
|
+
instance = TelegramBot::BotCommandScopeChat.new(
|
16
|
+
type: null,
|
17
|
+
chat_id: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# TelegramBot::BotCommandScopeChatAdministrators
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | Scope type, must be chat_administrators | |
|
8
|
+
| **chat_id** | [**Hash<String, SendMessageChatIdParameterValue>**](SendMessageChatIdParameterValue.md) | Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'telegram-bot'
|
14
|
+
|
15
|
+
instance = TelegramBot::BotCommandScopeChatAdministrators.new(
|
16
|
+
type: null,
|
17
|
+
chat_id: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# TelegramBot::BotCommandScopeChatMember
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | Scope type, must be chat_member | |
|
8
|
+
| **chat_id** | [**Hash<String, SendMessageChatIdParameterValue>**](SendMessageChatIdParameterValue.md) | Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) | |
|
9
|
+
| **user_id** | **Integer** | Unique identifier of the target user | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'telegram-bot'
|
15
|
+
|
16
|
+
instance = TelegramBot::BotCommandScopeChatMember.new(
|
17
|
+
type: null,
|
18
|
+
chat_id: null,
|
19
|
+
user_id: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# TelegramBot::BotCommandScopeDefault
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | Scope type, must be default | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'telegram-bot'
|
13
|
+
|
14
|
+
instance = TelegramBot::BotCommandScopeDefault.new(
|
15
|
+
type: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# TelegramBot::BotDescription
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **description** | **String** | The bot's description | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'telegram-bot'
|
13
|
+
|
14
|
+
instance = TelegramBot::BotDescription.new(
|
15
|
+
description: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/BotName.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# TelegramBot::BotName
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | The bot's name | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'telegram-bot'
|
13
|
+
|
14
|
+
instance = TelegramBot::BotName.new(
|
15
|
+
name: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# TelegramBot::BotShortDescription
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **short_description** | **String** | The bot's short description | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'telegram-bot'
|
13
|
+
|
14
|
+
instance = TelegramBot::BotShortDescription.new(
|
15
|
+
short_description: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# TelegramBot::BusinessConnection
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | Unique identifier of the business connection | |
|
8
|
+
| **user** | [**User**](User.md) | Business account user that created the business connection | |
|
9
|
+
| **user_chat_id** | **Integer** | Identifier of a private chat with the user who created the business connection. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. | |
|
10
|
+
| **date** | **Integer** | Date the connection was established in Unix time | |
|
11
|
+
| **can_reply** | **Boolean** | True, if the bot can act on behalf of the business account in chats that were active in the last 24 hours | |
|
12
|
+
| **is_enabled** | **Boolean** | True, if the connection is active | |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'telegram-bot'
|
18
|
+
|
19
|
+
instance = TelegramBot::BusinessConnection.new(
|
20
|
+
id: null,
|
21
|
+
user: null,
|
22
|
+
user_chat_id: null,
|
23
|
+
date: null,
|
24
|
+
can_reply: null,
|
25
|
+
is_enabled: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# TelegramBot::BusinessIntro
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **title** | **String** | Optional. Title text of the business intro | [optional] |
|
8
|
+
| **message** | **String** | Optional. Message text of the business intro | [optional] |
|
9
|
+
| **sticker** | [**Sticker**](Sticker.md) | Optional. Sticker of the business intro | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'telegram-bot'
|
15
|
+
|
16
|
+
instance = TelegramBot::BusinessIntro.new(
|
17
|
+
title: null,
|
18
|
+
message: null,
|
19
|
+
sticker: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# TelegramBot::BusinessLocation
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **address** | **String** | Address of the business | |
|
8
|
+
| **location** | [**Location**](Location.md) | Optional. Location of the business | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'telegram-bot'
|
14
|
+
|
15
|
+
instance = TelegramBot::BusinessLocation.new(
|
16
|
+
address: null,
|
17
|
+
location: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# TelegramBot::BusinessMessagesDeleted
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **business_connection_id** | **String** | Unique identifier of the business connection | |
|
8
|
+
| **chat** | [**Chat**](Chat.md) | Information about a chat in the business account. The bot may not have access to the chat or the corresponding user. | |
|
9
|
+
| **message_ids** | **Array<Integer>** | The list of identifiers of deleted messages in the chat of the business account | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'telegram-bot'
|
15
|
+
|
16
|
+
instance = TelegramBot::BusinessMessagesDeleted.new(
|
17
|
+
business_connection_id: null,
|
18
|
+
chat: null,
|
19
|
+
message_ids: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# TelegramBot::BusinessOpeningHours
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **time_zone_name** | **String** | Unique name of the time zone for which the opening hours are defined | |
|
8
|
+
| **opening_hours** | [**Array<BusinessOpeningHoursInterval>**](BusinessOpeningHoursInterval.md) | List of time intervals describing business opening hours | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'telegram-bot'
|
14
|
+
|
15
|
+
instance = TelegramBot::BusinessOpeningHours.new(
|
16
|
+
time_zone_name: null,
|
17
|
+
opening_hours: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# TelegramBot::BusinessOpeningHoursInterval
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **opening_minute** | **Integer** | The minute's sequence number in a week, starting on Monday, marking the start of the time interval during which the business is open; 0 - 7 * 24 * 60 | |
|
8
|
+
| **closing_minute** | **Integer** | The minute's sequence number in a week, starting on Monday, marking the end of the time interval during which the business is open; 0 - 8 * 24 * 60 | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'telegram-bot'
|
14
|
+
|
15
|
+
instance = TelegramBot::BusinessOpeningHoursInterval.new(
|
16
|
+
opening_minute: null,
|
17
|
+
closing_minute: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# TelegramBot::CallbackQuery
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | Unique identifier for this query | |
|
8
|
+
| **from** | [**User**](User.md) | Sender | |
|
9
|
+
| **message** | **Object** | Optional. Message sent by the bot with the callback button that originated the query | [optional] |
|
10
|
+
| **inline_message_id** | **String** | Optional. Identifier of the message sent via the bot in inline mode, that originated the query. | [optional] |
|
11
|
+
| **chat_instance** | **String** | Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games. | |
|
12
|
+
| **data** | **String** | Optional. Data associated with the callback button. Be aware that the message originated the query can contain no callback buttons with this data. | [optional] |
|
13
|
+
| **game_short_name** | **String** | Optional. Short name of a Game to be returned, serves as the unique identifier for the game | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'telegram-bot'
|
19
|
+
|
20
|
+
instance = TelegramBot::CallbackQuery.new(
|
21
|
+
id: null,
|
22
|
+
from: null,
|
23
|
+
message: null,
|
24
|
+
inline_message_id: null,
|
25
|
+
chat_instance: null,
|
26
|
+
data: null,
|
27
|
+
game_short_name: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
data/docs/Chat.md
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
# TelegramBot::Chat
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | Unique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier. | |
|
8
|
+
| **type** | **String** | Type of chat, can be either \"private\", \"group\", \"supergroup\" or \"channel\" | |
|
9
|
+
| **title** | **String** | Optional. Title, for supergroups, channels and group chats | [optional] |
|
10
|
+
| **username** | **String** | Optional. Username, for private chats, supergroups and channels if available | [optional] |
|
11
|
+
| **first_name** | **String** | Optional. First name of the other party in a private chat | [optional] |
|
12
|
+
| **last_name** | **String** | Optional. Last name of the other party in a private chat | [optional] |
|
13
|
+
| **is_forum** | **Boolean** | Optional. True, if the supergroup chat is a forum (has topics enabled) | [optional] |
|
14
|
+
| **photo** | [**ChatPhoto**](ChatPhoto.md) | Optional. Chat photo. Returned only in getChat. | [optional] |
|
15
|
+
| **active_usernames** | **Array<String>** | Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels. Returned only in getChat. | [optional] |
|
16
|
+
| **birthdate** | [**Birthdate**](Birthdate.md) | Optional. For private chats, the date of birth of the user. Returned only in getChat. | [optional] |
|
17
|
+
| **business_intro** | [**BusinessIntro**](BusinessIntro.md) | Optional. For private chats with business accounts, the intro of the business. Returned only in getChat. | [optional] |
|
18
|
+
| **business_location** | [**BusinessLocation**](BusinessLocation.md) | Optional. For private chats with business accounts, the location of the business. Returned only in getChat. | [optional] |
|
19
|
+
| **business_opening_hours** | [**BusinessOpeningHours**](BusinessOpeningHours.md) | Optional. For private chats with business accounts, the opening hours of the business. Returned only in getChat. | [optional] |
|
20
|
+
| **personal_chat** | [**Chat**](Chat.md) | Optional. For private chats, the personal channel of the user. Returned only in getChat. | [optional] |
|
21
|
+
| **available_reactions** | **Array<Object>** | Optional. List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed. Returned only in getChat. | [optional] |
|
22
|
+
| **accent_color_id** | **Integer** | Optional. Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header, and link preview. See accent colors for more details. Returned only in getChat. Always returned in getChat. | [optional] |
|
23
|
+
| **background_custom_emoji_id** | **String** | Optional. Custom emoji identifier of emoji chosen by the chat for the reply header and link preview background. Returned only in getChat. | [optional] |
|
24
|
+
| **profile_accent_color_id** | **Integer** | Optional. Identifier of the accent color for the chat's profile background. See profile accent colors for more details. Returned only in getChat. | [optional] |
|
25
|
+
| **profile_background_custom_emoji_id** | **String** | Optional. Custom emoji identifier of the emoji chosen by the chat for its profile background. Returned only in getChat. | [optional] |
|
26
|
+
| **emoji_status_custom_emoji_id** | **String** | Optional. Custom emoji identifier of the emoji status of the chat or the other party in a private chat. Returned only in getChat. | [optional] |
|
27
|
+
| **emoji_status_expiration_date** | **Integer** | Optional. Expiration date of the emoji status of the chat or the other party in a private chat, in Unix time, if any. Returned only in getChat. | [optional] |
|
28
|
+
| **bio** | **String** | Optional. Bio of the other party in a private chat. Returned only in getChat. | [optional] |
|
29
|
+
| **has_private_forwards** | **Boolean** | Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id=<user_id> links only in chats with the user. Returned only in getChat. | [optional] |
|
30
|
+
| **has_restricted_voice_and_video_messages** | **Boolean** | Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat. Returned only in getChat. | [optional] |
|
31
|
+
| **join_to_send_messages** | **Boolean** | Optional. True, if users need to join the supergroup before they can send messages. Returned only in getChat. | [optional] |
|
32
|
+
| **join_by_request** | **Boolean** | Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators. Returned only in getChat. | [optional] |
|
33
|
+
| **description** | **String** | Optional. Description, for groups, supergroups and channel chats. Returned only in getChat. | [optional] |
|
34
|
+
| **invite_link** | **String** | Optional. Primary invite link, for groups, supergroups and channel chats. Returned only in getChat. | [optional] |
|
35
|
+
| **pinned_message** | [**Message**](Message.md) | Optional. The most recent pinned message (by sending date). Returned only in getChat. | [optional] |
|
36
|
+
| **permissions** | [**ChatPermissions**](ChatPermissions.md) | Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat. | [optional] |
|
37
|
+
| **slow_mode_delay** | **Integer** | Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds. Returned only in getChat. | [optional] |
|
38
|
+
| **unrestrict_boost_count** | **Integer** | Optional. For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions. Returned only in getChat. | [optional] |
|
39
|
+
| **message_auto_delete_time** | **Integer** | Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in getChat. | [optional] |
|
40
|
+
| **has_aggressive_anti_spam_enabled** | **Boolean** | Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators. Returned only in getChat. | [optional] |
|
41
|
+
| **has_hidden_members** | **Boolean** | Optional. True, if non-administrators can only get the list of bots and administrators in the chat. Returned only in getChat. | [optional] |
|
42
|
+
| **has_protected_content** | **Boolean** | Optional. True, if messages from the chat can't be forwarded to other chats. Returned only in getChat. | [optional] |
|
43
|
+
| **has_visible_history** | **Boolean** | Optional. True, if new chat members will have access to old messages; available only to chat administrators. Returned only in getChat. | [optional] |
|
44
|
+
| **sticker_set_name** | **String** | Optional. For supergroups, name of group sticker set. Returned only in getChat. | [optional] |
|
45
|
+
| **can_set_sticker_set** | **Boolean** | Optional. True, if the bot can change the group sticker set. Returned only in getChat. | [optional] |
|
46
|
+
| **custom_emoji_sticker_set_name** | **String** | Optional. For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group. Returned only in getChat. | [optional] |
|
47
|
+
| **linked_chat_id** | **Integer** | Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier. Returned only in getChat. | [optional] |
|
48
|
+
| **location** | [**ChatLocation**](ChatLocation.md) | Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat. | [optional] |
|
49
|
+
|
50
|
+
## Example
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
require 'telegram-bot'
|
54
|
+
|
55
|
+
instance = TelegramBot::Chat.new(
|
56
|
+
id: null,
|
57
|
+
type: null,
|
58
|
+
title: null,
|
59
|
+
username: null,
|
60
|
+
first_name: null,
|
61
|
+
last_name: null,
|
62
|
+
is_forum: null,
|
63
|
+
photo: null,
|
64
|
+
active_usernames: null,
|
65
|
+
birthdate: null,
|
66
|
+
business_intro: null,
|
67
|
+
business_location: null,
|
68
|
+
business_opening_hours: null,
|
69
|
+
personal_chat: null,
|
70
|
+
available_reactions: null,
|
71
|
+
accent_color_id: null,
|
72
|
+
background_custom_emoji_id: null,
|
73
|
+
profile_accent_color_id: null,
|
74
|
+
profile_background_custom_emoji_id: null,
|
75
|
+
emoji_status_custom_emoji_id: null,
|
76
|
+
emoji_status_expiration_date: null,
|
77
|
+
bio: null,
|
78
|
+
has_private_forwards: null,
|
79
|
+
has_restricted_voice_and_video_messages: null,
|
80
|
+
join_to_send_messages: null,
|
81
|
+
join_by_request: null,
|
82
|
+
description: null,
|
83
|
+
invite_link: null,
|
84
|
+
pinned_message: null,
|
85
|
+
permissions: null,
|
86
|
+
slow_mode_delay: null,
|
87
|
+
unrestrict_boost_count: null,
|
88
|
+
message_auto_delete_time: null,
|
89
|
+
has_aggressive_anti_spam_enabled: null,
|
90
|
+
has_hidden_members: null,
|
91
|
+
has_protected_content: null,
|
92
|
+
has_visible_history: null,
|
93
|
+
sticker_set_name: null,
|
94
|
+
can_set_sticker_set: null,
|
95
|
+
custom_emoji_sticker_set_name: null,
|
96
|
+
linked_chat_id: null,
|
97
|
+
location: null
|
98
|
+
)
|
99
|
+
```
|
100
|
+
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# TelegramBot::ChatAdministratorRights
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **is_anonymous** | **Boolean** | True, if the user's presence in the chat is hidden | |
|
8
|
+
| **can_manage_chat** | **Boolean** | True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege. | |
|
9
|
+
| **can_delete_messages** | **Boolean** | True, if the administrator can delete messages of other users | |
|
10
|
+
| **can_manage_video_chats** | **Boolean** | True, if the administrator can manage video chats | |
|
11
|
+
| **can_restrict_members** | **Boolean** | True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics | |
|
12
|
+
| **can_promote_members** | **Boolean** | True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user) | |
|
13
|
+
| **can_change_info** | **Boolean** | True, if the user is allowed to change the chat title, photo and other settings | |
|
14
|
+
| **can_invite_users** | **Boolean** | True, if the user is allowed to invite new users to the chat | |
|
15
|
+
| **can_post_stories** | **Boolean** | True, if the administrator can post stories to the chat | |
|
16
|
+
| **can_edit_stories** | **Boolean** | True, if the administrator can edit stories posted by other users | |
|
17
|
+
| **can_delete_stories** | **Boolean** | True, if the administrator can delete stories posted by other users | |
|
18
|
+
| **can_post_messages** | **Boolean** | Optional. True, if the administrator can post messages in the channel, or access channel statistics; for channels only | [optional] |
|
19
|
+
| **can_edit_messages** | **Boolean** | Optional. True, if the administrator can edit messages of other users and can pin messages; for channels only | [optional] |
|
20
|
+
| **can_pin_messages** | **Boolean** | Optional. True, if the user is allowed to pin messages; for groups and supergroups only | [optional] |
|
21
|
+
| **can_manage_topics** | **Boolean** | Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only | [optional] |
|
22
|
+
|
23
|
+
## Example
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
require 'telegram-bot'
|
27
|
+
|
28
|
+
instance = TelegramBot::ChatAdministratorRights.new(
|
29
|
+
is_anonymous: null,
|
30
|
+
can_manage_chat: null,
|
31
|
+
can_delete_messages: null,
|
32
|
+
can_manage_video_chats: null,
|
33
|
+
can_restrict_members: null,
|
34
|
+
can_promote_members: null,
|
35
|
+
can_change_info: null,
|
36
|
+
can_invite_users: null,
|
37
|
+
can_post_stories: null,
|
38
|
+
can_edit_stories: null,
|
39
|
+
can_delete_stories: null,
|
40
|
+
can_post_messages: null,
|
41
|
+
can_edit_messages: null,
|
42
|
+
can_pin_messages: null,
|
43
|
+
can_manage_topics: null
|
44
|
+
)
|
45
|
+
```
|
46
|
+
|
data/docs/ChatBoost.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# TelegramBot::ChatBoost
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **boost_id** | **String** | Unique identifier of the boost | |
|
8
|
+
| **add_date** | **Integer** | Point in time (Unix timestamp) when the chat was boosted | |
|
9
|
+
| **expiration_date** | **Integer** | Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegram Premium subscription is prolonged | |
|
10
|
+
| **source** | **Object** | Source of the added boost | |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'telegram-bot'
|
16
|
+
|
17
|
+
instance = TelegramBot::ChatBoost.new(
|
18
|
+
boost_id: null,
|
19
|
+
add_date: null,
|
20
|
+
expiration_date: null,
|
21
|
+
source: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# TelegramBot::ChatBoostAdded
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **boost_count** | **Integer** | Number of boosts added by the user | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'telegram-bot'
|
13
|
+
|
14
|
+
instance = TelegramBot::ChatBoostAdded.new(
|
15
|
+
boost_count: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# TelegramBot::ChatBoostRemoved
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **chat** | [**Chat**](Chat.md) | Chat which was boosted | |
|
8
|
+
| **boost_id** | **String** | Unique identifier of the boost | |
|
9
|
+
| **remove_date** | **Integer** | Point in time (Unix timestamp) when the boost was removed | |
|
10
|
+
| **source** | **Object** | Source of the removed boost | |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'telegram-bot'
|
16
|
+
|
17
|
+
instance = TelegramBot::ChatBoostRemoved.new(
|
18
|
+
chat: null,
|
19
|
+
boost_id: null,
|
20
|
+
remove_date: null,
|
21
|
+
source: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# TelegramBot::ChatBoostSourceGiftCode
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **source** | **String** | Source of the boost, always \"gift_code\" | |
|
8
|
+
| **user** | [**User**](User.md) | User for which the gift code was created | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'telegram-bot'
|
14
|
+
|
15
|
+
instance = TelegramBot::ChatBoostSourceGiftCode.new(
|
16
|
+
source: null,
|
17
|
+
user: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# TelegramBot::ChatBoostSourceGiveaway
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **source** | **String** | Source of the boost, always \"giveaway\" | |
|
8
|
+
| **giveaway_message_id** | **Integer** | Identifier of a message in the chat with the giveaway; the message could have been deleted already. May be 0 if the message isn't sent yet. | |
|
9
|
+
| **user** | [**User**](User.md) | Optional. User that won the prize in the giveaway if any | [optional] |
|
10
|
+
| **is_unclaimed** | **Boolean** | Optional. True, if the giveaway was completed, but there was no user to win the prize | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'telegram-bot'
|
16
|
+
|
17
|
+
instance = TelegramBot::ChatBoostSourceGiveaway.new(
|
18
|
+
source: null,
|
19
|
+
giveaway_message_id: null,
|
20
|
+
user: null,
|
21
|
+
is_unclaimed: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# TelegramBot::ChatBoostSourcePremium
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **source** | **String** | Source of the boost, always \"premium\" | |
|
8
|
+
| **user** | [**User**](User.md) | User that boosted the chat | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'telegram-bot'
|
14
|
+
|
15
|
+
instance = TelegramBot::ChatBoostSourcePremium.new(
|
16
|
+
source: null,
|
17
|
+
user: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# TelegramBot::ChatBoostUpdated
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **chat** | [**Chat**](Chat.md) | Chat which was boosted | |
|
8
|
+
| **boost** | [**ChatBoost**](ChatBoost.md) | Information about the chat boost | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'telegram-bot'
|
14
|
+
|
15
|
+
instance = TelegramBot::ChatBoostUpdated.new(
|
16
|
+
chat: null,
|
17
|
+
boost: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# TelegramBot::ChatInviteLink
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **invite_link** | **String** | The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with \"...\". | |
|
8
|
+
| **creator** | [**User**](User.md) | Creator of the link | |
|
9
|
+
| **creates_join_request** | **Boolean** | True, if users joining the chat via the link need to be approved by chat administrators | |
|
10
|
+
| **is_primary** | **Boolean** | True, if the link is primary | |
|
11
|
+
| **is_revoked** | **Boolean** | True, if the link is revoked | |
|
12
|
+
| **name** | **String** | Optional. Invite link name | [optional] |
|
13
|
+
| **expire_date** | **Integer** | Optional. Point in time (Unix timestamp) when the link will expire or has been expired | [optional] |
|
14
|
+
| **member_limit** | **Integer** | Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999 | [optional] |
|
15
|
+
| **pending_join_request_count** | **Integer** | Optional. Number of pending join requests created using this link | [optional] |
|
16
|
+
|
17
|
+
## Example
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'telegram-bot'
|
21
|
+
|
22
|
+
instance = TelegramBot::ChatInviteLink.new(
|
23
|
+
invite_link: null,
|
24
|
+
creator: null,
|
25
|
+
creates_join_request: null,
|
26
|
+
is_primary: null,
|
27
|
+
is_revoked: null,
|
28
|
+
name: null,
|
29
|
+
expire_date: null,
|
30
|
+
member_limit: null,
|
31
|
+
pending_join_request_count: null
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|