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,11 @@
|
|
1
|
+
# Teleswagger::InlineResponse2009
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**result** | [**StickerSet**](StickerSet.md) | | [optional]
|
7
|
+
**error_code** | **Integer** | | [optional]
|
8
|
+
**ok** | **BOOLEAN** | | [optional]
|
9
|
+
**description** | **String** | | [optional]
|
10
|
+
|
11
|
+
|
data/docs/InlineType.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# Teleswagger::InputContactMessageContent
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**phone_number** | **String** | |
|
7
|
+
**first_name** | **String** | |
|
8
|
+
**last_name** | **String** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Teleswagger::InputTextMessageContent
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**message_text** | **String** | |
|
7
|
+
**parse_mode** | [**ParseMode**](ParseMode.md) | | [optional]
|
8
|
+
**disable_web_page_preview** | **BOOLEAN** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Teleswagger::InputVenueMessageContent
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**latitude** | **Float** | |
|
7
|
+
**longitude** | **Float** | |
|
8
|
+
**title** | **String** | |
|
9
|
+
**address** | **String** | |
|
10
|
+
**foursquare_id** | **String** | | [optional]
|
11
|
+
|
12
|
+
|
data/docs/Invoice.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# Teleswagger::Invoice
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**title** | **String** | | [optional]
|
7
|
+
**description** | **String** | | [optional]
|
8
|
+
**start_parameter** | **String** | | [optional]
|
9
|
+
**currency** | **String** | | [optional]
|
10
|
+
**total_amount** | **Integer** | | [optional]
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Teleswagger::KeyboardButton
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**text** | **String** | | [optional]
|
7
|
+
**request_contact** | **BOOLEAN** | | [optional]
|
8
|
+
**request_location** | **BOOLEAN** | | [optional]
|
9
|
+
|
10
|
+
|
data/docs/Location.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# Teleswagger::MaskPosition
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**point** | **String** | | [optional]
|
7
|
+
**x_shift** | **Float** | | [optional]
|
8
|
+
**y_shift** | **Float** | | [optional]
|
9
|
+
**zoom** | **Float** | | [optional]
|
10
|
+
|
11
|
+
|
data/docs/Message.md
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# Teleswagger::Message
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**message_id** | **Integer** | | [optional]
|
7
|
+
**from** | [**User**](User.md) | | [optional]
|
8
|
+
**date** | **Integer** | | [optional]
|
9
|
+
**chat** | [**Chat**](Chat.md) | | [optional]
|
10
|
+
**forward_from** | [**User**](User.md) | | [optional]
|
11
|
+
**forward_from_chat** | [**Chat**](Chat.md) | | [optional]
|
12
|
+
**forward_from_message_id** | **Integer** | | [optional]
|
13
|
+
**forward_date** | **Integer** | | [optional]
|
14
|
+
**reply_to_message** | [**Message**](Message.md) | | [optional]
|
15
|
+
**edit_date** | **Integer** | | [optional]
|
16
|
+
**text** | **String** | | [optional]
|
17
|
+
**entities** | [**Array<MessageEntity>**](MessageEntity.md) | | [optional]
|
18
|
+
**audio** | [**Audio**](Audio.md) | | [optional]
|
19
|
+
**document** | [**Document**](Document.md) | | [optional]
|
20
|
+
**game** | [**Game**](Game.md) | | [optional]
|
21
|
+
**photo** | [**Array<PhotoSize>**](PhotoSize.md) | | [optional]
|
22
|
+
**sticker** | [**Sticker**](Sticker.md) | | [optional]
|
23
|
+
**video** | [**Video**](Video.md) | | [optional]
|
24
|
+
**voice** | [**Voice**](Voice.md) | | [optional]
|
25
|
+
**video_note** | [**VideoNote**](VideoNote.md) | | [optional]
|
26
|
+
**caption** | **String** | | [optional]
|
27
|
+
**contact** | [**Contact**](Contact.md) | | [optional]
|
28
|
+
**location** | [**Location**](Location.md) | | [optional]
|
29
|
+
**venue** | [**Venue**](Venue.md) | | [optional]
|
30
|
+
**new_chat_members** | [**Array<User>**](User.md) | | [optional]
|
31
|
+
**left_chat_member** | [**User**](User.md) | | [optional]
|
32
|
+
**new_chat_title** | **String** | | [optional]
|
33
|
+
**new_chat_photo** | [**Array<PhotoSize>**](PhotoSize.md) | | [optional]
|
34
|
+
**delete_chat_photo** | **BOOLEAN** | | [optional]
|
35
|
+
**group_chat_created** | **BOOLEAN** | | [optional]
|
36
|
+
**supergroup_chat_created** | **BOOLEAN** | | [optional]
|
37
|
+
**channel_chat_created** | **BOOLEAN** | | [optional]
|
38
|
+
**migrate_to_chat_id** | **Integer** | | [optional]
|
39
|
+
**migrate_from_chat_id** | **Integer** | | [optional]
|
40
|
+
**pinned_message** | [**Message**](Message.md) | | [optional]
|
41
|
+
**successful_payment** | [**SuccessfulPayment**](SuccessfulPayment.md) | | [optional]
|
42
|
+
**forward_signature** | **String** | | [optional]
|
43
|
+
**author_signature** | **String** | | [optional]
|
44
|
+
|
45
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Teleswagger::MessageEntity
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**type** | **String** | | [optional]
|
7
|
+
**offset** | **Integer** | | [optional]
|
8
|
+
**length** | **Integer** | | [optional]
|
9
|
+
**url** | **String** | | [optional]
|
10
|
+
**user** | [**User**](User.md) | | [optional]
|
11
|
+
|
12
|
+
|
data/docs/MessagesApi.md
ADDED
@@ -0,0 +1,375 @@
|
|
1
|
+
# Teleswagger::MessagesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.telegram.org*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**delete_message**](MessagesApi.md#delete_message) | **GET** /bot{token}/deleteMessage |
|
8
|
+
[**edit_message_caption**](MessagesApi.md#edit_message_caption) | **POST** /bot{token}/editMessageCaption |
|
9
|
+
[**edit_message_reply_markup**](MessagesApi.md#edit_message_reply_markup) | **POST** /bot{token}/editMessageReplyMarkup |
|
10
|
+
[**edit_message_text**](MessagesApi.md#edit_message_text) | **POST** /bot{token}/editMessageText |
|
11
|
+
[**forward_message**](MessagesApi.md#forward_message) | **POST** /bot{token}/forwardMessage |
|
12
|
+
[**send_message**](MessagesApi.md#send_message) | **POST** /bot{token}/sendMessage |
|
13
|
+
[**send_message_bytes**](MessagesApi.md#send_message_bytes) | **POST** /bot{token}/sendMessage#bytes |
|
14
|
+
|
15
|
+
|
16
|
+
# **delete_message**
|
17
|
+
> ResponseBool delete_message(token, chat_id, message_id)
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
### Example
|
24
|
+
```ruby
|
25
|
+
# load the gem
|
26
|
+
require 'teleswagger'
|
27
|
+
|
28
|
+
api_instance = Teleswagger::MessagesApi.new
|
29
|
+
|
30
|
+
token = "token_example" # String | bot's token to authorize the request
|
31
|
+
|
32
|
+
chat_id = "chat_id_example" # String |
|
33
|
+
|
34
|
+
message_id = 56 # Integer |
|
35
|
+
|
36
|
+
|
37
|
+
begin
|
38
|
+
result = api_instance.delete_message(token, chat_id, message_id)
|
39
|
+
p result
|
40
|
+
rescue Teleswagger::ApiError => e
|
41
|
+
puts "Exception when calling MessagesApi->delete_message: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
### Parameters
|
46
|
+
|
47
|
+
Name | Type | Description | Notes
|
48
|
+
------------- | ------------- | ------------- | -------------
|
49
|
+
**token** | **String**| bot's token to authorize the request |
|
50
|
+
**chat_id** | **String**| |
|
51
|
+
**message_id** | **Integer**| |
|
52
|
+
|
53
|
+
### Return type
|
54
|
+
|
55
|
+
[**ResponseBool**](ResponseBool.md)
|
56
|
+
|
57
|
+
### Authorization
|
58
|
+
|
59
|
+
No authorization required
|
60
|
+
|
61
|
+
### HTTP request headers
|
62
|
+
|
63
|
+
- **Content-Type**: application/json
|
64
|
+
- **Accept**: application/json
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
# **edit_message_caption**
|
69
|
+
> InlineResponse2007 edit_message_caption(token, , opts)
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
### Example
|
76
|
+
```ruby
|
77
|
+
# load the gem
|
78
|
+
require 'teleswagger'
|
79
|
+
|
80
|
+
api_instance = Teleswagger::MessagesApi.new
|
81
|
+
|
82
|
+
token = "token_example" # String | bot's token to authorize the request
|
83
|
+
|
84
|
+
opts = {
|
85
|
+
body: Teleswagger::EditMessageCaptionBody.new # EditMessageCaptionBody |
|
86
|
+
}
|
87
|
+
|
88
|
+
begin
|
89
|
+
result = api_instance.edit_message_caption(token, , opts)
|
90
|
+
p result
|
91
|
+
rescue Teleswagger::ApiError => e
|
92
|
+
puts "Exception when calling MessagesApi->edit_message_caption: #{e}"
|
93
|
+
end
|
94
|
+
```
|
95
|
+
|
96
|
+
### Parameters
|
97
|
+
|
98
|
+
Name | Type | Description | Notes
|
99
|
+
------------- | ------------- | ------------- | -------------
|
100
|
+
**token** | **String**| bot's token to authorize the request |
|
101
|
+
**body** | [**EditMessageCaptionBody**](EditMessageCaptionBody.md)| | [optional]
|
102
|
+
|
103
|
+
### Return type
|
104
|
+
|
105
|
+
[**InlineResponse2007**](InlineResponse2007.md)
|
106
|
+
|
107
|
+
### Authorization
|
108
|
+
|
109
|
+
No authorization required
|
110
|
+
|
111
|
+
### HTTP request headers
|
112
|
+
|
113
|
+
- **Content-Type**: application/json
|
114
|
+
- **Accept**: application/json
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
# **edit_message_reply_markup**
|
119
|
+
> InlineResponse2007 edit_message_reply_markup(token, , opts)
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
### Example
|
126
|
+
```ruby
|
127
|
+
# load the gem
|
128
|
+
require 'teleswagger'
|
129
|
+
|
130
|
+
api_instance = Teleswagger::MessagesApi.new
|
131
|
+
|
132
|
+
token = "token_example" # String | bot's token to authorize the request
|
133
|
+
|
134
|
+
opts = {
|
135
|
+
body: Teleswagger::EditMessageReplyMarkupBody.new # EditMessageReplyMarkupBody |
|
136
|
+
}
|
137
|
+
|
138
|
+
begin
|
139
|
+
result = api_instance.edit_message_reply_markup(token, , opts)
|
140
|
+
p result
|
141
|
+
rescue Teleswagger::ApiError => e
|
142
|
+
puts "Exception when calling MessagesApi->edit_message_reply_markup: #{e}"
|
143
|
+
end
|
144
|
+
```
|
145
|
+
|
146
|
+
### Parameters
|
147
|
+
|
148
|
+
Name | Type | Description | Notes
|
149
|
+
------------- | ------------- | ------------- | -------------
|
150
|
+
**token** | **String**| bot's token to authorize the request |
|
151
|
+
**body** | [**EditMessageReplyMarkupBody**](EditMessageReplyMarkupBody.md)| | [optional]
|
152
|
+
|
153
|
+
### Return type
|
154
|
+
|
155
|
+
[**InlineResponse2007**](InlineResponse2007.md)
|
156
|
+
|
157
|
+
### Authorization
|
158
|
+
|
159
|
+
No authorization required
|
160
|
+
|
161
|
+
### HTTP request headers
|
162
|
+
|
163
|
+
- **Content-Type**: application/json
|
164
|
+
- **Accept**: application/json
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
# **edit_message_text**
|
169
|
+
> InlineResponse2007 edit_message_text(token, , opts)
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
### Example
|
176
|
+
```ruby
|
177
|
+
# load the gem
|
178
|
+
require 'teleswagger'
|
179
|
+
|
180
|
+
api_instance = Teleswagger::MessagesApi.new
|
181
|
+
|
182
|
+
token = "token_example" # String | bot's token to authorize the request
|
183
|
+
|
184
|
+
opts = {
|
185
|
+
body: Teleswagger::EditMessageTextBody.new # EditMessageTextBody |
|
186
|
+
}
|
187
|
+
|
188
|
+
begin
|
189
|
+
result = api_instance.edit_message_text(token, , opts)
|
190
|
+
p result
|
191
|
+
rescue Teleswagger::ApiError => e
|
192
|
+
puts "Exception when calling MessagesApi->edit_message_text: #{e}"
|
193
|
+
end
|
194
|
+
```
|
195
|
+
|
196
|
+
### Parameters
|
197
|
+
|
198
|
+
Name | Type | Description | Notes
|
199
|
+
------------- | ------------- | ------------- | -------------
|
200
|
+
**token** | **String**| bot's token to authorize the request |
|
201
|
+
**body** | [**EditMessageTextBody**](EditMessageTextBody.md)| | [optional]
|
202
|
+
|
203
|
+
### Return type
|
204
|
+
|
205
|
+
[**InlineResponse2007**](InlineResponse2007.md)
|
206
|
+
|
207
|
+
### Authorization
|
208
|
+
|
209
|
+
No authorization required
|
210
|
+
|
211
|
+
### HTTP request headers
|
212
|
+
|
213
|
+
- **Content-Type**: application/json
|
214
|
+
- **Accept**: application/json
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
# **forward_message**
|
219
|
+
> ResponseMessage forward_message(token, chat_id, from_chat_id, message_id, opts)
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
### Example
|
226
|
+
```ruby
|
227
|
+
# load the gem
|
228
|
+
require 'teleswagger'
|
229
|
+
|
230
|
+
api_instance = Teleswagger::MessagesApi.new
|
231
|
+
|
232
|
+
token = "token_example" # String | bot's token to authorize the request
|
233
|
+
|
234
|
+
chat_id = "chat_id_example" # String |
|
235
|
+
|
236
|
+
from_chat_id = "from_chat_id_example" # String |
|
237
|
+
|
238
|
+
message_id = 56 # Integer |
|
239
|
+
|
240
|
+
opts = {
|
241
|
+
disable_notification: true # BOOLEAN |
|
242
|
+
}
|
243
|
+
|
244
|
+
begin
|
245
|
+
result = api_instance.forward_message(token, chat_id, from_chat_id, message_id, opts)
|
246
|
+
p result
|
247
|
+
rescue Teleswagger::ApiError => e
|
248
|
+
puts "Exception when calling MessagesApi->forward_message: #{e}"
|
249
|
+
end
|
250
|
+
```
|
251
|
+
|
252
|
+
### Parameters
|
253
|
+
|
254
|
+
Name | Type | Description | Notes
|
255
|
+
------------- | ------------- | ------------- | -------------
|
256
|
+
**token** | **String**| bot's token to authorize the request |
|
257
|
+
**chat_id** | **String**| |
|
258
|
+
**from_chat_id** | **String**| |
|
259
|
+
**message_id** | **Integer**| |
|
260
|
+
**disable_notification** | **BOOLEAN**| | [optional]
|
261
|
+
|
262
|
+
### Return type
|
263
|
+
|
264
|
+
[**ResponseMessage**](ResponseMessage.md)
|
265
|
+
|
266
|
+
### Authorization
|
267
|
+
|
268
|
+
No authorization required
|
269
|
+
|
270
|
+
### HTTP request headers
|
271
|
+
|
272
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
273
|
+
- **Accept**: application/json
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
# **send_message**
|
278
|
+
> ResponseMessage send_message(token, , opts)
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
### Example
|
285
|
+
```ruby
|
286
|
+
# load the gem
|
287
|
+
require 'teleswagger'
|
288
|
+
|
289
|
+
api_instance = Teleswagger::MessagesApi.new
|
290
|
+
|
291
|
+
token = "token_example" # String | bot's token to authorize the request
|
292
|
+
|
293
|
+
opts = {
|
294
|
+
body: Teleswagger::SendMessageBody.new # SendMessageBody |
|
295
|
+
}
|
296
|
+
|
297
|
+
begin
|
298
|
+
result = api_instance.send_message(token, , opts)
|
299
|
+
p result
|
300
|
+
rescue Teleswagger::ApiError => e
|
301
|
+
puts "Exception when calling MessagesApi->send_message: #{e}"
|
302
|
+
end
|
303
|
+
```
|
304
|
+
|
305
|
+
### Parameters
|
306
|
+
|
307
|
+
Name | Type | Description | Notes
|
308
|
+
------------- | ------------- | ------------- | -------------
|
309
|
+
**token** | **String**| bot's token to authorize the request |
|
310
|
+
**body** | [**SendMessageBody**](SendMessageBody.md)| | [optional]
|
311
|
+
|
312
|
+
### Return type
|
313
|
+
|
314
|
+
[**ResponseMessage**](ResponseMessage.md)
|
315
|
+
|
316
|
+
### Authorization
|
317
|
+
|
318
|
+
No authorization required
|
319
|
+
|
320
|
+
### HTTP request headers
|
321
|
+
|
322
|
+
- **Content-Type**: application/json
|
323
|
+
- **Accept**: application/json
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
# **send_message_bytes**
|
328
|
+
> ResponseMessage send_message_bytes(token, body)
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
### Example
|
335
|
+
```ruby
|
336
|
+
# load the gem
|
337
|
+
require 'teleswagger'
|
338
|
+
|
339
|
+
api_instance = Teleswagger::MessagesApi.new
|
340
|
+
|
341
|
+
token = "token_example" # String | bot's token to authorize the request
|
342
|
+
|
343
|
+
body = "B" # String |
|
344
|
+
|
345
|
+
|
346
|
+
begin
|
347
|
+
result = api_instance.send_message_bytes(token, body)
|
348
|
+
p result
|
349
|
+
rescue Teleswagger::ApiError => e
|
350
|
+
puts "Exception when calling MessagesApi->send_message_bytes: #{e}"
|
351
|
+
end
|
352
|
+
```
|
353
|
+
|
354
|
+
### Parameters
|
355
|
+
|
356
|
+
Name | Type | Description | Notes
|
357
|
+
------------- | ------------- | ------------- | -------------
|
358
|
+
**token** | **String**| bot's token to authorize the request |
|
359
|
+
**body** | **String**| |
|
360
|
+
|
361
|
+
### Return type
|
362
|
+
|
363
|
+
[**ResponseMessage**](ResponseMessage.md)
|
364
|
+
|
365
|
+
### Authorization
|
366
|
+
|
367
|
+
No authorization required
|
368
|
+
|
369
|
+
### HTTP request headers
|
370
|
+
|
371
|
+
- **Content-Type**: application/json
|
372
|
+
- **Accept**: application/json
|
373
|
+
|
374
|
+
|
375
|
+
|