teleswagger 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +69 -0
- data/README.md +260 -0
- data/Rakefile +8 -0
- data/config.json +5 -0
- data/docs/AddStickerToSetLinkBody.md +12 -0
- data/docs/AllowedUpdate.md +7 -0
- data/docs/Animation.md +12 -0
- data/docs/AnswerInlineQueryBody.md +14 -0
- data/docs/AnswerShippingQueryBody.md +11 -0
- data/docs/AttachmentsApi.md +1023 -0
- data/docs/Audio.md +13 -0
- data/docs/CallbackGame.md +7 -0
- data/docs/CallbackQuery.md +14 -0
- data/docs/CallbacksApi.md +70 -0
- data/docs/Chat.md +18 -0
- data/docs/ChatMember.md +23 -0
- data/docs/ChatPhoto.md +9 -0
- data/docs/ChatsApi.md +890 -0
- data/docs/ChosenInlineResult.md +12 -0
- data/docs/Contact.md +11 -0
- data/docs/CreateNewStickerSetLinkBody.md +14 -0
- data/docs/Document.md +12 -0
- data/docs/EditMessageCaptionBody.md +12 -0
- data/docs/EditMessageReplyMarkupBody.md +11 -0
- data/docs/EditMessageTextBody.md +14 -0
- data/docs/Error.md +10 -0
- data/docs/File.md +10 -0
- data/docs/ForceReply.md +9 -0
- data/docs/Game.md +13 -0
- data/docs/GameHighScore.md +10 -0
- data/docs/GamesApi.md +182 -0
- data/docs/InlineApi.md +59 -0
- data/docs/InlineKeyboardButton.md +14 -0
- data/docs/InlineKeyboardMarkup.md +8 -0
- data/docs/InlineQuery.md +12 -0
- data/docs/InlineQueryResultArticle.md +18 -0
- data/docs/InlineQueryResultAudio.md +16 -0
- data/docs/InlineQueryResultCachedAudio.md +13 -0
- data/docs/InlineQueryResultCachedDocument.md +14 -0
- data/docs/InlineQueryResultCachedGif.md +14 -0
- data/docs/InlineQueryResultCachedMpeg4Gif.md +14 -0
- data/docs/InlineQueryResultCachedPhoto.md +15 -0
- data/docs/InlineQueryResultCachedSticker.md +12 -0
- data/docs/InlineQueryResultCachedVideo.md +15 -0
- data/docs/InlineQueryResultCachedVoice.md +14 -0
- data/docs/InlineQueryResultContact.md +17 -0
- data/docs/InlineQueryResultDocument.md +19 -0
- data/docs/InlineQueryResultGame.md +11 -0
- data/docs/InlineQueryResultGif.md +18 -0
- data/docs/InlineQueryResultLocation.md +17 -0
- data/docs/InlineQueryResultMpeg4Gif.md +18 -0
- data/docs/InlineQueryResultPhoto.md +17 -0
- data/docs/InlineQueryResultVenue.md +19 -0
- data/docs/InlineQueryResultVideo.md +20 -0
- data/docs/InlineQueryResultVoice.md +15 -0
- data/docs/InlineResponse200.md +11 -0
- data/docs/InlineResponse2001.md +11 -0
- data/docs/InlineResponse2002.md +11 -0
- data/docs/InlineResponse2003.md +11 -0
- data/docs/InlineResponse2004.md +11 -0
- data/docs/InlineResponse2005.md +11 -0
- data/docs/InlineResponse2006.md +11 -0
- data/docs/InlineResponse2007.md +11 -0
- data/docs/InlineResponse2008.md +11 -0
- data/docs/InlineResponse2009.md +11 -0
- data/docs/InlineType.md +7 -0
- data/docs/InputContactMessageContent.md +10 -0
- data/docs/InputLocationMessageContent.md +9 -0
- data/docs/InputTextMessageContent.md +10 -0
- data/docs/InputVenueMessageContent.md +12 -0
- data/docs/Invoice.md +12 -0
- data/docs/KeyboardButton.md +10 -0
- data/docs/LabeledPrice.md +9 -0
- data/docs/Location.md +9 -0
- data/docs/MaskPosition.md +11 -0
- data/docs/Message.md +45 -0
- data/docs/MessageEntity.md +12 -0
- data/docs/MessagesApi.md +375 -0
- data/docs/OrderInfo.md +11 -0
- data/docs/ParseMode.md +7 -0
- data/docs/PaymentsApi.md +167 -0
- data/docs/PhotoSize.md +11 -0
- data/docs/PreCheckoutQuery.md +14 -0
- data/docs/PromoteChatMemberBody.md +17 -0
- data/docs/ReplyKeyboardMarkup.md +11 -0
- data/docs/ReplyKeyboardRemove.md +9 -0
- data/docs/ResponseBool.md +11 -0
- data/docs/ResponseMessage.md +11 -0
- data/docs/ResponseParameters.md +9 -0
- data/docs/ResponseUpdate.md +11 -0
- data/docs/RestrictChatMemberBody.md +14 -0
- data/docs/SendAudioLinkBody.md +16 -0
- data/docs/SendContactBody.md +14 -0
- data/docs/SendDocumentLinkBody.md +13 -0
- data/docs/SendGameBody.md +12 -0
- data/docs/SendInvoiceBody.md +27 -0
- data/docs/SendLocationBody.md +13 -0
- data/docs/SendMessageBody.md +14 -0
- data/docs/SendPhotoLinkBody.md +13 -0
- data/docs/SendStickerLinkBody.md +12 -0
- data/docs/SendVenueBody.md +16 -0
- data/docs/SendVideoLinkBody.md +16 -0
- data/docs/SendVideoNoteLinkBody.md +14 -0
- data/docs/SendVoiceLinkBody.md +14 -0
- data/docs/ShippingAddress.md +13 -0
- data/docs/ShippingOption.md +10 -0
- data/docs/ShippingQuery.md +11 -0
- data/docs/Sticker.md +15 -0
- data/docs/StickerSet.md +11 -0
- data/docs/StickersApi.md +498 -0
- data/docs/SuccessfulPayment.md +14 -0
- data/docs/Update.md +17 -0
- data/docs/UpdatesApi.md +205 -0
- data/docs/User.md +13 -0
- data/docs/UserProfilePhotos.md +9 -0
- data/docs/UsersApi.md +111 -0
- data/docs/Venue.md +11 -0
- data/docs/Video.md +14 -0
- data/docs/VideoNote.md +12 -0
- data/docs/Voice.md +11 -0
- data/docs/WebhookInfo.md +14 -0
- data/lib/teleswagger.rb +156 -0
- data/lib/teleswagger/api/attachments_api.rb +1243 -0
- data/lib/teleswagger/api/callbacks_api.rb +113 -0
- data/lib/teleswagger/api/chats_api.rb +1141 -0
- data/lib/teleswagger/api/games_api.rb +235 -0
- data/lib/teleswagger/api/inline_api.rb +80 -0
- data/lib/teleswagger/api/messages_api.rb +460 -0
- data/lib/teleswagger/api/payments_api.rb +209 -0
- data/lib/teleswagger/api/stickers_api.rb +658 -0
- data/lib/teleswagger/api/updates_api.rb +265 -0
- data/lib/teleswagger/api/users_api.rb +146 -0
- data/lib/teleswagger/api_client.rb +388 -0
- data/lib/teleswagger/api_error.rb +38 -0
- data/lib/teleswagger/configuration.rb +202 -0
- data/lib/teleswagger/models/add_sticker_to_set_link_body.rb +244 -0
- data/lib/teleswagger/models/allowed_update.rb +27 -0
- data/lib/teleswagger/models/animation.rb +229 -0
- data/lib/teleswagger/models/answer_inline_query_body.rb +254 -0
- data/lib/teleswagger/models/answer_shipping_query_body.rb +227 -0
- data/lib/teleswagger/models/audio.rb +233 -0
- data/lib/teleswagger/models/callback_game.rb +179 -0
- data/lib/teleswagger/models/callback_query.rb +242 -0
- data/lib/teleswagger/models/chat.rb +321 -0
- data/lib/teleswagger/models/chat_member.rb +366 -0
- data/lib/teleswagger/models/chat_photo.rb +197 -0
- data/lib/teleswagger/models/chosen_inline_result.rb +239 -0
- data/lib/teleswagger/models/contact.rb +215 -0
- data/lib/teleswagger/models/create_new_sticker_set_link_body.rb +267 -0
- data/lib/teleswagger/models/document.rb +224 -0
- data/lib/teleswagger/models/edit_message_caption_body.rb +224 -0
- data/lib/teleswagger/models/edit_message_reply_markup_body.rb +215 -0
- data/lib/teleswagger/models/edit_message_text_body.rb +247 -0
- data/lib/teleswagger/models/error.rb +206 -0
- data/lib/teleswagger/models/file.rb +206 -0
- data/lib/teleswagger/models/force_reply.rb +197 -0
- data/lib/teleswagger/models/game.rb +252 -0
- data/lib/teleswagger/models/game_high_score.rb +206 -0
- data/lib/teleswagger/models/inline_keyboard_button.rb +242 -0
- data/lib/teleswagger/models/inline_keyboard_markup.rb +190 -0
- data/lib/teleswagger/models/inline_query.rb +224 -0
- data/lib/teleswagger/models/inline_query_result_article.rb +298 -0
- data/lib/teleswagger/models/inline_query_result_audio.rb +280 -0
- data/lib/teleswagger/models/inline_query_result_cached_audio.rb +248 -0
- data/lib/teleswagger/models/inline_query_result_cached_document.rb +257 -0
- data/lib/teleswagger/models/inline_query_result_cached_gif.rb +257 -0
- data/lib/teleswagger/models/inline_query_result_cached_mpeg4_gif.rb +257 -0
- data/lib/teleswagger/models/inline_query_result_cached_photo.rb +266 -0
- data/lib/teleswagger/models/inline_query_result_cached_sticker.rb +239 -0
- data/lib/teleswagger/models/inline_query_result_cached_video.rb +266 -0
- data/lib/teleswagger/models/inline_query_result_cached_voice.rb +257 -0
- data/lib/teleswagger/models/inline_query_result_contact.rb +289 -0
- data/lib/teleswagger/models/inline_query_result_document.rb +312 -0
- data/lib/teleswagger/models/inline_query_result_game.rb +230 -0
- data/lib/teleswagger/models/inline_query_result_gif.rb +298 -0
- data/lib/teleswagger/models/inline_query_result_location.rb +294 -0
- data/lib/teleswagger/models/inline_query_result_mpeg4_gif.rb +298 -0
- data/lib/teleswagger/models/inline_query_result_photo.rb +289 -0
- data/lib/teleswagger/models/inline_query_result_venue.rb +317 -0
- data/lib/teleswagger/models/inline_query_result_video.rb +326 -0
- data/lib/teleswagger/models/inline_query_result_voice.rb +271 -0
- data/lib/teleswagger/models/inline_response_200.rb +215 -0
- data/lib/teleswagger/models/inline_response_200_1.rb +215 -0
- data/lib/teleswagger/models/inline_response_200_2.rb +215 -0
- data/lib/teleswagger/models/inline_response_200_3.rb +215 -0
- data/lib/teleswagger/models/inline_response_200_4.rb +217 -0
- data/lib/teleswagger/models/inline_response_200_5.rb +215 -0
- data/lib/teleswagger/models/inline_response_200_6.rb +215 -0
- data/lib/teleswagger/models/inline_response_200_7.rb +215 -0
- data/lib/teleswagger/models/inline_response_200_8.rb +215 -0
- data/lib/teleswagger/models/inline_response_200_9.rb +215 -0
- data/lib/teleswagger/models/inline_type.rb +33 -0
- data/lib/teleswagger/models/input_contact_message_content.rb +216 -0
- data/lib/teleswagger/models/input_location_message_content.rb +207 -0
- data/lib/teleswagger/models/input_text_message_content.rb +211 -0
- data/lib/teleswagger/models/input_venue_message_content.rb +244 -0
- data/lib/teleswagger/models/invoice.rb +224 -0
- data/lib/teleswagger/models/keyboard_button.rb +206 -0
- data/lib/teleswagger/models/labeled_price.rb +197 -0
- data/lib/teleswagger/models/location.rb +197 -0
- data/lib/teleswagger/models/mask_position.rb +248 -0
- data/lib/teleswagger/models/message.rb +529 -0
- data/lib/teleswagger/models/message_entity.rb +257 -0
- data/lib/teleswagger/models/order_info.rb +215 -0
- data/lib/teleswagger/models/parse_mode.rb +22 -0
- data/lib/teleswagger/models/photo_size.rb +215 -0
- data/lib/teleswagger/models/pre_checkout_query.rb +242 -0
- data/lib/teleswagger/models/promote_chat_member_body.rb +279 -0
- data/lib/teleswagger/models/reply_keyboard_markup.rb +217 -0
- data/lib/teleswagger/models/reply_keyboard_remove.rb +197 -0
- data/lib/teleswagger/models/response_bool.rb +215 -0
- data/lib/teleswagger/models/response_message.rb +215 -0
- data/lib/teleswagger/models/response_parameters.rb +197 -0
- data/lib/teleswagger/models/response_update.rb +217 -0
- data/lib/teleswagger/models/restrict_chat_member_body.rb +252 -0
- data/lib/teleswagger/models/send_audio_link_body.rb +270 -0
- data/lib/teleswagger/models/send_contact_body.rb +257 -0
- data/lib/teleswagger/models/send_document_link_body.rb +243 -0
- data/lib/teleswagger/models/send_game_body.rb +234 -0
- data/lib/teleswagger/models/send_invoice_body.rb +401 -0
- data/lib/teleswagger/models/send_location_body.rb +248 -0
- data/lib/teleswagger/models/send_message_body.rb +252 -0
- data/lib/teleswagger/models/send_photo_link_body.rb +243 -0
- data/lib/teleswagger/models/send_sticker_link_body.rb +234 -0
- data/lib/teleswagger/models/send_venue_body.rb +285 -0
- data/lib/teleswagger/models/send_video_link_body.rb +270 -0
- data/lib/teleswagger/models/send_video_note_link_body.rb +252 -0
- data/lib/teleswagger/models/send_voice_link_body.rb +252 -0
- data/lib/teleswagger/models/shipping_address.rb +233 -0
- data/lib/teleswagger/models/shipping_option.rb +208 -0
- data/lib/teleswagger/models/shipping_query.rb +215 -0
- data/lib/teleswagger/models/sticker.rb +251 -0
- data/lib/teleswagger/models/sticker_set.rb +217 -0
- data/lib/teleswagger/models/successful_payment.rb +242 -0
- data/lib/teleswagger/models/update.rb +269 -0
- data/lib/teleswagger/models/user.rb +233 -0
- data/lib/teleswagger/models/user_profile_photos.rb +199 -0
- data/lib/teleswagger/models/venue.rb +215 -0
- data/lib/teleswagger/models/video.rb +242 -0
- data/lib/teleswagger/models/video_note.rb +224 -0
- data/lib/teleswagger/models/voice.rb +215 -0
- data/lib/teleswagger/models/webhook_info.rb +259 -0
- data/lib/teleswagger/version.rb +15 -0
- data/spec/api/attachments_api_spec.rb +311 -0
- data/spec/api/callbacks_api_spec.rb +52 -0
- data/spec/api/chats_api_spec.rb +266 -0
- data/spec/api/games_api_spec.rb +83 -0
- data/spec/api/inline_api_spec.rb +48 -0
- data/spec/api/messages_api_spec.rb +130 -0
- data/spec/api/payments_api_spec.rb +76 -0
- data/spec/api/stickers_api_spec.rb +165 -0
- data/spec/api/updates_api_spec.rb +89 -0
- data/spec/api/users_api_spec.rb +62 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/add_sticker_to_set_link_body_spec.rb +66 -0
- data/spec/models/allowed_update_spec.rb +36 -0
- data/spec/models/animation_spec.rb +66 -0
- data/spec/models/answer_inline_query_body_spec.rb +78 -0
- data/spec/models/answer_shipping_query_body_spec.rb +60 -0
- data/spec/models/audio_spec.rb +72 -0
- data/spec/models/callback_game_spec.rb +36 -0
- data/spec/models/callback_query_spec.rb +78 -0
- data/spec/models/chat_member_spec.rb +136 -0
- data/spec/models/chat_photo_spec.rb +48 -0
- data/spec/models/chat_spec.rb +106 -0
- data/spec/models/chosen_inline_result_spec.rb +66 -0
- data/spec/models/contact_spec.rb +60 -0
- data/spec/models/create_new_sticker_set_link_body_spec.rb +78 -0
- data/spec/models/document_spec.rb +66 -0
- data/spec/models/edit_message_caption_body_spec.rb +66 -0
- data/spec/models/edit_message_reply_markup_body_spec.rb +60 -0
- data/spec/models/edit_message_text_body_spec.rb +78 -0
- data/spec/models/error_spec.rb +54 -0
- data/spec/models/file_spec.rb +54 -0
- data/spec/models/force_reply_spec.rb +48 -0
- data/spec/models/game_high_score_spec.rb +54 -0
- data/spec/models/game_spec.rb +72 -0
- data/spec/models/inline_keyboard_button_spec.rb +78 -0
- data/spec/models/inline_keyboard_markup_spec.rb +42 -0
- data/spec/models/inline_query_result_article_spec.rb +102 -0
- data/spec/models/inline_query_result_audio_spec.rb +90 -0
- data/spec/models/inline_query_result_cached_audio_spec.rb +72 -0
- data/spec/models/inline_query_result_cached_document_spec.rb +78 -0
- data/spec/models/inline_query_result_cached_gif_spec.rb +78 -0
- data/spec/models/inline_query_result_cached_mpeg4_gif_spec.rb +78 -0
- data/spec/models/inline_query_result_cached_photo_spec.rb +84 -0
- data/spec/models/inline_query_result_cached_sticker_spec.rb +66 -0
- data/spec/models/inline_query_result_cached_video_spec.rb +84 -0
- data/spec/models/inline_query_result_cached_voice_spec.rb +78 -0
- data/spec/models/inline_query_result_contact_spec.rb +96 -0
- data/spec/models/inline_query_result_document_spec.rb +108 -0
- data/spec/models/inline_query_result_game_spec.rb +60 -0
- data/spec/models/inline_query_result_gif_spec.rb +102 -0
- data/spec/models/inline_query_result_location_spec.rb +96 -0
- data/spec/models/inline_query_result_mpeg4_gif_spec.rb +102 -0
- data/spec/models/inline_query_result_photo_spec.rb +96 -0
- data/spec/models/inline_query_result_venue_spec.rb +108 -0
- data/spec/models/inline_query_result_video_spec.rb +114 -0
- data/spec/models/inline_query_result_voice_spec.rb +84 -0
- data/spec/models/inline_query_spec.rb +66 -0
- data/spec/models/inline_response_200_1_spec.rb +60 -0
- data/spec/models/inline_response_200_2_spec.rb +60 -0
- data/spec/models/inline_response_200_3_spec.rb +60 -0
- data/spec/models/inline_response_200_4_spec.rb +60 -0
- data/spec/models/inline_response_200_5_spec.rb +60 -0
- data/spec/models/inline_response_200_6_spec.rb +60 -0
- data/spec/models/inline_response_200_7_spec.rb +60 -0
- data/spec/models/inline_response_200_8_spec.rb +60 -0
- data/spec/models/inline_response_200_9_spec.rb +60 -0
- data/spec/models/inline_response_200_spec.rb +60 -0
- data/spec/models/inline_type_spec.rb +36 -0
- data/spec/models/input_contact_message_content_spec.rb +54 -0
- data/spec/models/input_location_message_content_spec.rb +48 -0
- data/spec/models/input_text_message_content_spec.rb +54 -0
- data/spec/models/input_venue_message_content_spec.rb +66 -0
- data/spec/models/invoice_spec.rb +66 -0
- data/spec/models/keyboard_button_spec.rb +54 -0
- data/spec/models/labeled_price_spec.rb +48 -0
- data/spec/models/location_spec.rb +48 -0
- data/spec/models/mask_position_spec.rb +64 -0
- data/spec/models/message_entity_spec.rb +70 -0
- data/spec/models/message_spec.rb +264 -0
- data/spec/models/order_info_spec.rb +60 -0
- data/spec/models/parse_mode_spec.rb +36 -0
- data/spec/models/photo_size_spec.rb +60 -0
- data/spec/models/pre_checkout_query_spec.rb +78 -0
- data/spec/models/promote_chat_member_body_spec.rb +96 -0
- data/spec/models/reply_keyboard_markup_spec.rb +60 -0
- data/spec/models/reply_keyboard_remove_spec.rb +48 -0
- data/spec/models/response_bool_spec.rb +60 -0
- data/spec/models/response_message_spec.rb +60 -0
- data/spec/models/response_parameters_spec.rb +48 -0
- data/spec/models/response_update_spec.rb +60 -0
- data/spec/models/restrict_chat_member_body_spec.rb +78 -0
- data/spec/models/send_audio_link_body_spec.rb +90 -0
- data/spec/models/send_contact_body_spec.rb +78 -0
- data/spec/models/send_document_link_body_spec.rb +72 -0
- data/spec/models/send_game_body_spec.rb +66 -0
- data/spec/models/send_invoice_body_spec.rb +156 -0
- data/spec/models/send_location_body_spec.rb +72 -0
- data/spec/models/send_message_body_spec.rb +78 -0
- data/spec/models/send_photo_link_body_spec.rb +72 -0
- data/spec/models/send_sticker_link_body_spec.rb +66 -0
- data/spec/models/send_venue_body_spec.rb +90 -0
- data/spec/models/send_video_link_body_spec.rb +90 -0
- data/spec/models/send_video_note_link_body_spec.rb +78 -0
- data/spec/models/send_voice_link_body_spec.rb +78 -0
- data/spec/models/shipping_address_spec.rb +72 -0
- data/spec/models/shipping_option_spec.rb +54 -0
- data/spec/models/shipping_query_spec.rb +60 -0
- data/spec/models/sticker_set_spec.rb +60 -0
- data/spec/models/sticker_spec.rb +84 -0
- data/spec/models/successful_payment_spec.rb +78 -0
- data/spec/models/update_spec.rb +96 -0
- data/spec/models/user_profile_photos_spec.rb +48 -0
- data/spec/models/user_spec.rb +72 -0
- data/spec/models/venue_spec.rb +60 -0
- data/spec/models/video_note_spec.rb +66 -0
- data/spec/models/video_spec.rb +78 -0
- data/spec/models/voice_spec.rb +60 -0
- data/spec/models/webhook_info_spec.rb +78 -0
- data/spec/spec_helper.rb +111 -0
- data/swagger.yaml +5202 -0
- data/teleswagger.gemspec +46 -0
- metadata +709 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
# Teleswagger::SuccessfulPayment
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**currency** | **String** | | [optional]
|
7
|
+
**total_amount** | **Integer** | | [optional]
|
8
|
+
**invoice_payload** | **String** | | [optional]
|
9
|
+
**shipping_option_id** | **String** | | [optional]
|
10
|
+
**order_info** | [**OrderInfo**](OrderInfo.md) | | [optional]
|
11
|
+
**telegram_payment_charge_id** | **String** | | [optional]
|
12
|
+
**provider_payment_charge_id** | **String** | | [optional]
|
13
|
+
|
14
|
+
|
data/docs/Update.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# Teleswagger::Update
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**update_id** | **Integer** | | [optional]
|
7
|
+
**message** | [**Message**](Message.md) | | [optional]
|
8
|
+
**edited_message** | [**Message**](Message.md) | | [optional]
|
9
|
+
**channel_post** | [**Message**](Message.md) | | [optional]
|
10
|
+
**edited_channel_post** | [**Message**](Message.md) | | [optional]
|
11
|
+
**inline_query** | [**InlineQuery**](InlineQuery.md) | | [optional]
|
12
|
+
**chosen_inline_result** | [**ChosenInlineResult**](ChosenInlineResult.md) | | [optional]
|
13
|
+
**callback_query** | [**CallbackQuery**](CallbackQuery.md) | | [optional]
|
14
|
+
**shipping_query** | [**ShippingQuery**](ShippingQuery.md) | | [optional]
|
15
|
+
**pre_checkout_query** | [**PreCheckoutQuery**](PreCheckoutQuery.md) | | [optional]
|
16
|
+
|
17
|
+
|
data/docs/UpdatesApi.md
ADDED
@@ -0,0 +1,205 @@
|
|
1
|
+
# Teleswagger::UpdatesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.telegram.org*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**delete_webhook**](UpdatesApi.md#delete_webhook) | **GET** /bot{token}/deleteWebhook |
|
8
|
+
[**get_updates**](UpdatesApi.md#get_updates) | **GET** /bot{token}/getUpdates |
|
9
|
+
[**get_webhook_info**](UpdatesApi.md#get_webhook_info) | **GET** /bot{token}/getWebhookInfo |
|
10
|
+
[**set_webhook**](UpdatesApi.md#set_webhook) | **POST** /bot{token}/setWebhook |
|
11
|
+
|
12
|
+
|
13
|
+
# **delete_webhook**
|
14
|
+
> ResponseBool delete_webhook
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
### Example
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'teleswagger'
|
24
|
+
|
25
|
+
api_instance = Teleswagger::UpdatesApi.new
|
26
|
+
|
27
|
+
begin
|
28
|
+
result = api_instance.delete_webhook
|
29
|
+
p result
|
30
|
+
rescue Teleswagger::ApiError => e
|
31
|
+
puts "Exception when calling UpdatesApi->delete_webhook: #{e}"
|
32
|
+
end
|
33
|
+
```
|
34
|
+
|
35
|
+
### Parameters
|
36
|
+
This endpoint does not need any parameter.
|
37
|
+
|
38
|
+
### Return type
|
39
|
+
|
40
|
+
[**ResponseBool**](ResponseBool.md)
|
41
|
+
|
42
|
+
### Authorization
|
43
|
+
|
44
|
+
No authorization required
|
45
|
+
|
46
|
+
### HTTP request headers
|
47
|
+
|
48
|
+
- **Content-Type**: application/json
|
49
|
+
- **Accept**: application/json
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
# **get_updates**
|
54
|
+
> ResponseUpdate get_updates(token, , opts)
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
### Example
|
61
|
+
```ruby
|
62
|
+
# load the gem
|
63
|
+
require 'teleswagger'
|
64
|
+
|
65
|
+
api_instance = Teleswagger::UpdatesApi.new
|
66
|
+
|
67
|
+
token = "token_example" # String | bot's token to authorize the request
|
68
|
+
|
69
|
+
opts = {
|
70
|
+
offset: 56, # Integer |
|
71
|
+
limit: 56, # Integer |
|
72
|
+
timeout: 56, # Integer |
|
73
|
+
allowed_updates: ["allowed_updates_example"] # Array<String> |
|
74
|
+
}
|
75
|
+
|
76
|
+
begin
|
77
|
+
result = api_instance.get_updates(token, , opts)
|
78
|
+
p result
|
79
|
+
rescue Teleswagger::ApiError => e
|
80
|
+
puts "Exception when calling UpdatesApi->get_updates: #{e}"
|
81
|
+
end
|
82
|
+
```
|
83
|
+
|
84
|
+
### Parameters
|
85
|
+
|
86
|
+
Name | Type | Description | Notes
|
87
|
+
------------- | ------------- | ------------- | -------------
|
88
|
+
**token** | **String**| bot's token to authorize the request |
|
89
|
+
**offset** | **Integer**| | [optional]
|
90
|
+
**limit** | **Integer**| | [optional]
|
91
|
+
**timeout** | **Integer**| | [optional]
|
92
|
+
**allowed_updates** | [**Array<String>**](String.md)| | [optional]
|
93
|
+
|
94
|
+
### Return type
|
95
|
+
|
96
|
+
[**ResponseUpdate**](ResponseUpdate.md)
|
97
|
+
|
98
|
+
### Authorization
|
99
|
+
|
100
|
+
No authorization required
|
101
|
+
|
102
|
+
### HTTP request headers
|
103
|
+
|
104
|
+
- **Content-Type**: application/json
|
105
|
+
- **Accept**: application/json
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
# **get_webhook_info**
|
110
|
+
> WebhookInfo get_webhook_info
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
### Example
|
117
|
+
```ruby
|
118
|
+
# load the gem
|
119
|
+
require 'teleswagger'
|
120
|
+
|
121
|
+
api_instance = Teleswagger::UpdatesApi.new
|
122
|
+
|
123
|
+
begin
|
124
|
+
result = api_instance.get_webhook_info
|
125
|
+
p result
|
126
|
+
rescue Teleswagger::ApiError => e
|
127
|
+
puts "Exception when calling UpdatesApi->get_webhook_info: #{e}"
|
128
|
+
end
|
129
|
+
```
|
130
|
+
|
131
|
+
### Parameters
|
132
|
+
This endpoint does not need any parameter.
|
133
|
+
|
134
|
+
### Return type
|
135
|
+
|
136
|
+
[**WebhookInfo**](WebhookInfo.md)
|
137
|
+
|
138
|
+
### Authorization
|
139
|
+
|
140
|
+
No authorization required
|
141
|
+
|
142
|
+
### HTTP request headers
|
143
|
+
|
144
|
+
- **Content-Type**: application/json
|
145
|
+
- **Accept**: application/json
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
# **set_webhook**
|
150
|
+
> ResponseBool set_webhook(token, url, opts)
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
### Example
|
157
|
+
```ruby
|
158
|
+
# load the gem
|
159
|
+
require 'teleswagger'
|
160
|
+
|
161
|
+
api_instance = Teleswagger::UpdatesApi.new
|
162
|
+
|
163
|
+
token = "token_example" # String | bot's token to authorize the request
|
164
|
+
|
165
|
+
url = "url_example" # String |
|
166
|
+
|
167
|
+
opts = {
|
168
|
+
certificate: File.new("/path/to/file.txt"), # File |
|
169
|
+
max_connections: 56, # Integer |
|
170
|
+
allowed_updates: ["allowed_updates_example"] # Array<String> |
|
171
|
+
}
|
172
|
+
|
173
|
+
begin
|
174
|
+
result = api_instance.set_webhook(token, url, opts)
|
175
|
+
p result
|
176
|
+
rescue Teleswagger::ApiError => e
|
177
|
+
puts "Exception when calling UpdatesApi->set_webhook: #{e}"
|
178
|
+
end
|
179
|
+
```
|
180
|
+
|
181
|
+
### Parameters
|
182
|
+
|
183
|
+
Name | Type | Description | Notes
|
184
|
+
------------- | ------------- | ------------- | -------------
|
185
|
+
**token** | **String**| bot's token to authorize the request |
|
186
|
+
**url** | **String**| |
|
187
|
+
**certificate** | **File**| | [optional]
|
188
|
+
**max_connections** | **Integer**| | [optional]
|
189
|
+
**allowed_updates** | [**Array<String>**](String.md)| | [optional]
|
190
|
+
|
191
|
+
### Return type
|
192
|
+
|
193
|
+
[**ResponseBool**](ResponseBool.md)
|
194
|
+
|
195
|
+
### Authorization
|
196
|
+
|
197
|
+
No authorization required
|
198
|
+
|
199
|
+
### HTTP request headers
|
200
|
+
|
201
|
+
- **Content-Type**: multipart/form-data
|
202
|
+
- **Accept**: application/json
|
203
|
+
|
204
|
+
|
205
|
+
|
data/docs/User.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Teleswagger::User
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | | [optional]
|
7
|
+
**username** | **String** | | [optional]
|
8
|
+
**first_name** | **String** | | [optional]
|
9
|
+
**last_name** | **String** | | [optional]
|
10
|
+
**language_code** | **String** | | [optional]
|
11
|
+
**is_bot** | **BOOLEAN** | | [optional]
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Teleswagger::UserProfilePhotos
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**total_count** | **Integer** | | [optional]
|
7
|
+
**photos** | **Array<Array<PhotoSize>>** | | [optional]
|
8
|
+
|
9
|
+
|
data/docs/UsersApi.md
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
# Teleswagger::UsersApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.telegram.org*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_me**](UsersApi.md#get_me) | **GET** /bot{token}/getMe |
|
8
|
+
[**get_user_profile_photos**](UsersApi.md#get_user_profile_photos) | **GET** /bot{token}/getUserProfilePhotos |
|
9
|
+
|
10
|
+
|
11
|
+
# **get_me**
|
12
|
+
> InlineResponse200 get_me(token, )
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
### Example
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'teleswagger'
|
22
|
+
|
23
|
+
api_instance = Teleswagger::UsersApi.new
|
24
|
+
|
25
|
+
token = "token_example" # String | bot's token to authorize the request
|
26
|
+
|
27
|
+
|
28
|
+
begin
|
29
|
+
result = api_instance.get_me(token, )
|
30
|
+
p result
|
31
|
+
rescue Teleswagger::ApiError => e
|
32
|
+
puts "Exception when calling UsersApi->get_me: #{e}"
|
33
|
+
end
|
34
|
+
```
|
35
|
+
|
36
|
+
### Parameters
|
37
|
+
|
38
|
+
Name | Type | Description | Notes
|
39
|
+
------------- | ------------- | ------------- | -------------
|
40
|
+
**token** | **String**| bot's token to authorize the request |
|
41
|
+
|
42
|
+
### Return type
|
43
|
+
|
44
|
+
[**InlineResponse200**](InlineResponse200.md)
|
45
|
+
|
46
|
+
### Authorization
|
47
|
+
|
48
|
+
No authorization required
|
49
|
+
|
50
|
+
### HTTP request headers
|
51
|
+
|
52
|
+
- **Content-Type**: application/json
|
53
|
+
- **Accept**: application/json
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
# **get_user_profile_photos**
|
58
|
+
> InlineResponse2001 get_user_profile_photos(token, user_id, opts)
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
### Example
|
65
|
+
```ruby
|
66
|
+
# load the gem
|
67
|
+
require 'teleswagger'
|
68
|
+
|
69
|
+
api_instance = Teleswagger::UsersApi.new
|
70
|
+
|
71
|
+
token = "token_example" # String | bot's token to authorize the request
|
72
|
+
|
73
|
+
user_id = 56 # Integer |
|
74
|
+
|
75
|
+
opts = {
|
76
|
+
offset: 56, # Integer |
|
77
|
+
limit: 56 # Integer |
|
78
|
+
}
|
79
|
+
|
80
|
+
begin
|
81
|
+
result = api_instance.get_user_profile_photos(token, user_id, opts)
|
82
|
+
p result
|
83
|
+
rescue Teleswagger::ApiError => e
|
84
|
+
puts "Exception when calling UsersApi->get_user_profile_photos: #{e}"
|
85
|
+
end
|
86
|
+
```
|
87
|
+
|
88
|
+
### Parameters
|
89
|
+
|
90
|
+
Name | Type | Description | Notes
|
91
|
+
------------- | ------------- | ------------- | -------------
|
92
|
+
**token** | **String**| bot's token to authorize the request |
|
93
|
+
**user_id** | **Integer**| |
|
94
|
+
**offset** | **Integer**| | [optional]
|
95
|
+
**limit** | **Integer**| | [optional]
|
96
|
+
|
97
|
+
### Return type
|
98
|
+
|
99
|
+
[**InlineResponse2001**](InlineResponse2001.md)
|
100
|
+
|
101
|
+
### Authorization
|
102
|
+
|
103
|
+
No authorization required
|
104
|
+
|
105
|
+
### HTTP request headers
|
106
|
+
|
107
|
+
- **Content-Type**: application/json
|
108
|
+
- **Accept**: application/json
|
109
|
+
|
110
|
+
|
111
|
+
|
data/docs/Venue.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# Teleswagger::Venue
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**location** | [**Location**](Location.md) | | [optional]
|
7
|
+
**title** | **String** | | [optional]
|
8
|
+
**address** | **String** | | [optional]
|
9
|
+
**foursquare_id** | **String** | | [optional]
|
10
|
+
|
11
|
+
|
data/docs/Video.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# Teleswagger::Video
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**file_id** | **String** | | [optional]
|
7
|
+
**width** | **Integer** | | [optional]
|
8
|
+
**height** | **Integer** | | [optional]
|
9
|
+
**duration** | **Integer** | | [optional]
|
10
|
+
**thumb** | [**PhotoSize**](PhotoSize.md) | | [optional]
|
11
|
+
**mime_type** | **String** | | [optional]
|
12
|
+
**file_size** | **Integer** | | [optional]
|
13
|
+
|
14
|
+
|
data/docs/VideoNote.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# Teleswagger::VideoNote
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**file_id** | **String** | | [optional]
|
7
|
+
**length** | **Integer** | | [optional]
|
8
|
+
**duration** | **Integer** | | [optional]
|
9
|
+
**thumb** | [**PhotoSize**](PhotoSize.md) | | [optional]
|
10
|
+
**file_size** | **Integer** | | [optional]
|
11
|
+
|
12
|
+
|
data/docs/Voice.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# Teleswagger::Voice
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**file_id** | **String** | | [optional]
|
7
|
+
**duration** | **Integer** | | [optional]
|
8
|
+
**mime_type** | **String** | | [optional]
|
9
|
+
**file_size** | **Integer** | | [optional]
|
10
|
+
|
11
|
+
|
data/docs/WebhookInfo.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# Teleswagger::WebhookInfo
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**url** | **String** | |
|
7
|
+
**has_custom_certificate** | **BOOLEAN** | |
|
8
|
+
**pending_update_count** | **Integer** | |
|
9
|
+
**last_error_date** | **Integer** | | [optional]
|
10
|
+
**last_error_message** | **String** | | [optional]
|
11
|
+
**max_connections** | **Integer** | | [optional]
|
12
|
+
**allowed_updates** | [**Array<AllowedUpdate>**](AllowedUpdate.md) | | [optional]
|
13
|
+
|
14
|
+
|
data/lib/teleswagger.rb
ADDED
@@ -0,0 +1,156 @@
|
|
1
|
+
=begin
|
2
|
+
#Telegram bot API
|
3
|
+
|
4
|
+
#This is a swagger defenition for [Telegram bot API](https://core.telegram.org/bots/api).
|
5
|
+
|
6
|
+
OpenAPI spec version: 3.3
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
# Common files
|
14
|
+
require 'teleswagger/api_client'
|
15
|
+
require 'teleswagger/api_error'
|
16
|
+
require 'teleswagger/version'
|
17
|
+
require 'teleswagger/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'teleswagger/models/add_sticker_to_set_link_body'
|
21
|
+
require 'teleswagger/models/allowed_update'
|
22
|
+
require 'teleswagger/models/animation'
|
23
|
+
require 'teleswagger/models/answer_inline_query_body'
|
24
|
+
require 'teleswagger/models/answer_shipping_query_body'
|
25
|
+
require 'teleswagger/models/audio'
|
26
|
+
require 'teleswagger/models/callback_game'
|
27
|
+
require 'teleswagger/models/callback_query'
|
28
|
+
require 'teleswagger/models/chat'
|
29
|
+
require 'teleswagger/models/chat_member'
|
30
|
+
require 'teleswagger/models/chat_photo'
|
31
|
+
require 'teleswagger/models/chosen_inline_result'
|
32
|
+
require 'teleswagger/models/contact'
|
33
|
+
require 'teleswagger/models/create_new_sticker_set_link_body'
|
34
|
+
require 'teleswagger/models/document'
|
35
|
+
require 'teleswagger/models/edit_message_caption_body'
|
36
|
+
require 'teleswagger/models/edit_message_reply_markup_body'
|
37
|
+
require 'teleswagger/models/edit_message_text_body'
|
38
|
+
require 'teleswagger/models/error'
|
39
|
+
require 'teleswagger/models/file'
|
40
|
+
require 'teleswagger/models/force_reply'
|
41
|
+
require 'teleswagger/models/game'
|
42
|
+
require 'teleswagger/models/game_high_score'
|
43
|
+
require 'teleswagger/models/inline_keyboard_button'
|
44
|
+
require 'teleswagger/models/inline_keyboard_markup'
|
45
|
+
require 'teleswagger/models/inline_query'
|
46
|
+
require 'teleswagger/models/inline_query_result_article'
|
47
|
+
require 'teleswagger/models/inline_query_result_audio'
|
48
|
+
require 'teleswagger/models/inline_query_result_cached_audio'
|
49
|
+
require 'teleswagger/models/inline_query_result_cached_document'
|
50
|
+
require 'teleswagger/models/inline_query_result_cached_gif'
|
51
|
+
require 'teleswagger/models/inline_query_result_cached_mpeg4_gif'
|
52
|
+
require 'teleswagger/models/inline_query_result_cached_photo'
|
53
|
+
require 'teleswagger/models/inline_query_result_cached_sticker'
|
54
|
+
require 'teleswagger/models/inline_query_result_cached_video'
|
55
|
+
require 'teleswagger/models/inline_query_result_cached_voice'
|
56
|
+
require 'teleswagger/models/inline_query_result_contact'
|
57
|
+
require 'teleswagger/models/inline_query_result_document'
|
58
|
+
require 'teleswagger/models/inline_query_result_game'
|
59
|
+
require 'teleswagger/models/inline_query_result_gif'
|
60
|
+
require 'teleswagger/models/inline_query_result_location'
|
61
|
+
require 'teleswagger/models/inline_query_result_mpeg4_gif'
|
62
|
+
require 'teleswagger/models/inline_query_result_photo'
|
63
|
+
require 'teleswagger/models/inline_query_result_venue'
|
64
|
+
require 'teleswagger/models/inline_query_result_video'
|
65
|
+
require 'teleswagger/models/inline_query_result_voice'
|
66
|
+
require 'teleswagger/models/inline_response_200'
|
67
|
+
require 'teleswagger/models/inline_response_200_1'
|
68
|
+
require 'teleswagger/models/inline_response_200_2'
|
69
|
+
require 'teleswagger/models/inline_response_200_3'
|
70
|
+
require 'teleswagger/models/inline_response_200_4'
|
71
|
+
require 'teleswagger/models/inline_response_200_5'
|
72
|
+
require 'teleswagger/models/inline_response_200_6'
|
73
|
+
require 'teleswagger/models/inline_response_200_7'
|
74
|
+
require 'teleswagger/models/inline_response_200_8'
|
75
|
+
require 'teleswagger/models/inline_response_200_9'
|
76
|
+
require 'teleswagger/models/inline_type'
|
77
|
+
require 'teleswagger/models/input_contact_message_content'
|
78
|
+
require 'teleswagger/models/input_location_message_content'
|
79
|
+
require 'teleswagger/models/input_text_message_content'
|
80
|
+
require 'teleswagger/models/input_venue_message_content'
|
81
|
+
require 'teleswagger/models/invoice'
|
82
|
+
require 'teleswagger/models/keyboard_button'
|
83
|
+
require 'teleswagger/models/labeled_price'
|
84
|
+
require 'teleswagger/models/location'
|
85
|
+
require 'teleswagger/models/mask_position'
|
86
|
+
require 'teleswagger/models/message'
|
87
|
+
require 'teleswagger/models/message_entity'
|
88
|
+
require 'teleswagger/models/order_info'
|
89
|
+
require 'teleswagger/models/parse_mode'
|
90
|
+
require 'teleswagger/models/photo_size'
|
91
|
+
require 'teleswagger/models/pre_checkout_query'
|
92
|
+
require 'teleswagger/models/promote_chat_member_body'
|
93
|
+
require 'teleswagger/models/reply_keyboard_markup'
|
94
|
+
require 'teleswagger/models/reply_keyboard_remove'
|
95
|
+
require 'teleswagger/models/response_bool'
|
96
|
+
require 'teleswagger/models/response_message'
|
97
|
+
require 'teleswagger/models/response_parameters'
|
98
|
+
require 'teleswagger/models/response_update'
|
99
|
+
require 'teleswagger/models/restrict_chat_member_body'
|
100
|
+
require 'teleswagger/models/send_audio_link_body'
|
101
|
+
require 'teleswagger/models/send_contact_body'
|
102
|
+
require 'teleswagger/models/send_document_link_body'
|
103
|
+
require 'teleswagger/models/send_game_body'
|
104
|
+
require 'teleswagger/models/send_invoice_body'
|
105
|
+
require 'teleswagger/models/send_location_body'
|
106
|
+
require 'teleswagger/models/send_message_body'
|
107
|
+
require 'teleswagger/models/send_photo_link_body'
|
108
|
+
require 'teleswagger/models/send_sticker_link_body'
|
109
|
+
require 'teleswagger/models/send_venue_body'
|
110
|
+
require 'teleswagger/models/send_video_link_body'
|
111
|
+
require 'teleswagger/models/send_video_note_link_body'
|
112
|
+
require 'teleswagger/models/send_voice_link_body'
|
113
|
+
require 'teleswagger/models/shipping_address'
|
114
|
+
require 'teleswagger/models/shipping_option'
|
115
|
+
require 'teleswagger/models/shipping_query'
|
116
|
+
require 'teleswagger/models/sticker'
|
117
|
+
require 'teleswagger/models/sticker_set'
|
118
|
+
require 'teleswagger/models/successful_payment'
|
119
|
+
require 'teleswagger/models/update'
|
120
|
+
require 'teleswagger/models/user'
|
121
|
+
require 'teleswagger/models/user_profile_photos'
|
122
|
+
require 'teleswagger/models/venue'
|
123
|
+
require 'teleswagger/models/video'
|
124
|
+
require 'teleswagger/models/video_note'
|
125
|
+
require 'teleswagger/models/voice'
|
126
|
+
require 'teleswagger/models/webhook_info'
|
127
|
+
|
128
|
+
# APIs
|
129
|
+
require 'teleswagger/api/attachments_api'
|
130
|
+
require 'teleswagger/api/callbacks_api'
|
131
|
+
require 'teleswagger/api/chats_api'
|
132
|
+
require 'teleswagger/api/games_api'
|
133
|
+
require 'teleswagger/api/inline_api'
|
134
|
+
require 'teleswagger/api/messages_api'
|
135
|
+
require 'teleswagger/api/payments_api'
|
136
|
+
require 'teleswagger/api/stickers_api'
|
137
|
+
require 'teleswagger/api/updates_api'
|
138
|
+
require 'teleswagger/api/users_api'
|
139
|
+
|
140
|
+
module Teleswagger
|
141
|
+
class << self
|
142
|
+
# Customize default settings for the SDK using block.
|
143
|
+
# Teleswagger.configure do |config|
|
144
|
+
# config.username = "xxx"
|
145
|
+
# config.password = "xxx"
|
146
|
+
# end
|
147
|
+
# If no block given, return the default Configuration object.
|
148
|
+
def configure
|
149
|
+
if block_given?
|
150
|
+
yield(Configuration.default)
|
151
|
+
else
|
152
|
+
Configuration.default
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|