teleswagger 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (368) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/Gemfile.lock +69 -0
  4. data/README.md +260 -0
  5. data/Rakefile +8 -0
  6. data/config.json +5 -0
  7. data/docs/AddStickerToSetLinkBody.md +12 -0
  8. data/docs/AllowedUpdate.md +7 -0
  9. data/docs/Animation.md +12 -0
  10. data/docs/AnswerInlineQueryBody.md +14 -0
  11. data/docs/AnswerShippingQueryBody.md +11 -0
  12. data/docs/AttachmentsApi.md +1023 -0
  13. data/docs/Audio.md +13 -0
  14. data/docs/CallbackGame.md +7 -0
  15. data/docs/CallbackQuery.md +14 -0
  16. data/docs/CallbacksApi.md +70 -0
  17. data/docs/Chat.md +18 -0
  18. data/docs/ChatMember.md +23 -0
  19. data/docs/ChatPhoto.md +9 -0
  20. data/docs/ChatsApi.md +890 -0
  21. data/docs/ChosenInlineResult.md +12 -0
  22. data/docs/Contact.md +11 -0
  23. data/docs/CreateNewStickerSetLinkBody.md +14 -0
  24. data/docs/Document.md +12 -0
  25. data/docs/EditMessageCaptionBody.md +12 -0
  26. data/docs/EditMessageReplyMarkupBody.md +11 -0
  27. data/docs/EditMessageTextBody.md +14 -0
  28. data/docs/Error.md +10 -0
  29. data/docs/File.md +10 -0
  30. data/docs/ForceReply.md +9 -0
  31. data/docs/Game.md +13 -0
  32. data/docs/GameHighScore.md +10 -0
  33. data/docs/GamesApi.md +182 -0
  34. data/docs/InlineApi.md +59 -0
  35. data/docs/InlineKeyboardButton.md +14 -0
  36. data/docs/InlineKeyboardMarkup.md +8 -0
  37. data/docs/InlineQuery.md +12 -0
  38. data/docs/InlineQueryResultArticle.md +18 -0
  39. data/docs/InlineQueryResultAudio.md +16 -0
  40. data/docs/InlineQueryResultCachedAudio.md +13 -0
  41. data/docs/InlineQueryResultCachedDocument.md +14 -0
  42. data/docs/InlineQueryResultCachedGif.md +14 -0
  43. data/docs/InlineQueryResultCachedMpeg4Gif.md +14 -0
  44. data/docs/InlineQueryResultCachedPhoto.md +15 -0
  45. data/docs/InlineQueryResultCachedSticker.md +12 -0
  46. data/docs/InlineQueryResultCachedVideo.md +15 -0
  47. data/docs/InlineQueryResultCachedVoice.md +14 -0
  48. data/docs/InlineQueryResultContact.md +17 -0
  49. data/docs/InlineQueryResultDocument.md +19 -0
  50. data/docs/InlineQueryResultGame.md +11 -0
  51. data/docs/InlineQueryResultGif.md +18 -0
  52. data/docs/InlineQueryResultLocation.md +17 -0
  53. data/docs/InlineQueryResultMpeg4Gif.md +18 -0
  54. data/docs/InlineQueryResultPhoto.md +17 -0
  55. data/docs/InlineQueryResultVenue.md +19 -0
  56. data/docs/InlineQueryResultVideo.md +20 -0
  57. data/docs/InlineQueryResultVoice.md +15 -0
  58. data/docs/InlineResponse200.md +11 -0
  59. data/docs/InlineResponse2001.md +11 -0
  60. data/docs/InlineResponse2002.md +11 -0
  61. data/docs/InlineResponse2003.md +11 -0
  62. data/docs/InlineResponse2004.md +11 -0
  63. data/docs/InlineResponse2005.md +11 -0
  64. data/docs/InlineResponse2006.md +11 -0
  65. data/docs/InlineResponse2007.md +11 -0
  66. data/docs/InlineResponse2008.md +11 -0
  67. data/docs/InlineResponse2009.md +11 -0
  68. data/docs/InlineType.md +7 -0
  69. data/docs/InputContactMessageContent.md +10 -0
  70. data/docs/InputLocationMessageContent.md +9 -0
  71. data/docs/InputTextMessageContent.md +10 -0
  72. data/docs/InputVenueMessageContent.md +12 -0
  73. data/docs/Invoice.md +12 -0
  74. data/docs/KeyboardButton.md +10 -0
  75. data/docs/LabeledPrice.md +9 -0
  76. data/docs/Location.md +9 -0
  77. data/docs/MaskPosition.md +11 -0
  78. data/docs/Message.md +45 -0
  79. data/docs/MessageEntity.md +12 -0
  80. data/docs/MessagesApi.md +375 -0
  81. data/docs/OrderInfo.md +11 -0
  82. data/docs/ParseMode.md +7 -0
  83. data/docs/PaymentsApi.md +167 -0
  84. data/docs/PhotoSize.md +11 -0
  85. data/docs/PreCheckoutQuery.md +14 -0
  86. data/docs/PromoteChatMemberBody.md +17 -0
  87. data/docs/ReplyKeyboardMarkup.md +11 -0
  88. data/docs/ReplyKeyboardRemove.md +9 -0
  89. data/docs/ResponseBool.md +11 -0
  90. data/docs/ResponseMessage.md +11 -0
  91. data/docs/ResponseParameters.md +9 -0
  92. data/docs/ResponseUpdate.md +11 -0
  93. data/docs/RestrictChatMemberBody.md +14 -0
  94. data/docs/SendAudioLinkBody.md +16 -0
  95. data/docs/SendContactBody.md +14 -0
  96. data/docs/SendDocumentLinkBody.md +13 -0
  97. data/docs/SendGameBody.md +12 -0
  98. data/docs/SendInvoiceBody.md +27 -0
  99. data/docs/SendLocationBody.md +13 -0
  100. data/docs/SendMessageBody.md +14 -0
  101. data/docs/SendPhotoLinkBody.md +13 -0
  102. data/docs/SendStickerLinkBody.md +12 -0
  103. data/docs/SendVenueBody.md +16 -0
  104. data/docs/SendVideoLinkBody.md +16 -0
  105. data/docs/SendVideoNoteLinkBody.md +14 -0
  106. data/docs/SendVoiceLinkBody.md +14 -0
  107. data/docs/ShippingAddress.md +13 -0
  108. data/docs/ShippingOption.md +10 -0
  109. data/docs/ShippingQuery.md +11 -0
  110. data/docs/Sticker.md +15 -0
  111. data/docs/StickerSet.md +11 -0
  112. data/docs/StickersApi.md +498 -0
  113. data/docs/SuccessfulPayment.md +14 -0
  114. data/docs/Update.md +17 -0
  115. data/docs/UpdatesApi.md +205 -0
  116. data/docs/User.md +13 -0
  117. data/docs/UserProfilePhotos.md +9 -0
  118. data/docs/UsersApi.md +111 -0
  119. data/docs/Venue.md +11 -0
  120. data/docs/Video.md +14 -0
  121. data/docs/VideoNote.md +12 -0
  122. data/docs/Voice.md +11 -0
  123. data/docs/WebhookInfo.md +14 -0
  124. data/lib/teleswagger.rb +156 -0
  125. data/lib/teleswagger/api/attachments_api.rb +1243 -0
  126. data/lib/teleswagger/api/callbacks_api.rb +113 -0
  127. data/lib/teleswagger/api/chats_api.rb +1141 -0
  128. data/lib/teleswagger/api/games_api.rb +235 -0
  129. data/lib/teleswagger/api/inline_api.rb +80 -0
  130. data/lib/teleswagger/api/messages_api.rb +460 -0
  131. data/lib/teleswagger/api/payments_api.rb +209 -0
  132. data/lib/teleswagger/api/stickers_api.rb +658 -0
  133. data/lib/teleswagger/api/updates_api.rb +265 -0
  134. data/lib/teleswagger/api/users_api.rb +146 -0
  135. data/lib/teleswagger/api_client.rb +388 -0
  136. data/lib/teleswagger/api_error.rb +38 -0
  137. data/lib/teleswagger/configuration.rb +202 -0
  138. data/lib/teleswagger/models/add_sticker_to_set_link_body.rb +244 -0
  139. data/lib/teleswagger/models/allowed_update.rb +27 -0
  140. data/lib/teleswagger/models/animation.rb +229 -0
  141. data/lib/teleswagger/models/answer_inline_query_body.rb +254 -0
  142. data/lib/teleswagger/models/answer_shipping_query_body.rb +227 -0
  143. data/lib/teleswagger/models/audio.rb +233 -0
  144. data/lib/teleswagger/models/callback_game.rb +179 -0
  145. data/lib/teleswagger/models/callback_query.rb +242 -0
  146. data/lib/teleswagger/models/chat.rb +321 -0
  147. data/lib/teleswagger/models/chat_member.rb +366 -0
  148. data/lib/teleswagger/models/chat_photo.rb +197 -0
  149. data/lib/teleswagger/models/chosen_inline_result.rb +239 -0
  150. data/lib/teleswagger/models/contact.rb +215 -0
  151. data/lib/teleswagger/models/create_new_sticker_set_link_body.rb +267 -0
  152. data/lib/teleswagger/models/document.rb +224 -0
  153. data/lib/teleswagger/models/edit_message_caption_body.rb +224 -0
  154. data/lib/teleswagger/models/edit_message_reply_markup_body.rb +215 -0
  155. data/lib/teleswagger/models/edit_message_text_body.rb +247 -0
  156. data/lib/teleswagger/models/error.rb +206 -0
  157. data/lib/teleswagger/models/file.rb +206 -0
  158. data/lib/teleswagger/models/force_reply.rb +197 -0
  159. data/lib/teleswagger/models/game.rb +252 -0
  160. data/lib/teleswagger/models/game_high_score.rb +206 -0
  161. data/lib/teleswagger/models/inline_keyboard_button.rb +242 -0
  162. data/lib/teleswagger/models/inline_keyboard_markup.rb +190 -0
  163. data/lib/teleswagger/models/inline_query.rb +224 -0
  164. data/lib/teleswagger/models/inline_query_result_article.rb +298 -0
  165. data/lib/teleswagger/models/inline_query_result_audio.rb +280 -0
  166. data/lib/teleswagger/models/inline_query_result_cached_audio.rb +248 -0
  167. data/lib/teleswagger/models/inline_query_result_cached_document.rb +257 -0
  168. data/lib/teleswagger/models/inline_query_result_cached_gif.rb +257 -0
  169. data/lib/teleswagger/models/inline_query_result_cached_mpeg4_gif.rb +257 -0
  170. data/lib/teleswagger/models/inline_query_result_cached_photo.rb +266 -0
  171. data/lib/teleswagger/models/inline_query_result_cached_sticker.rb +239 -0
  172. data/lib/teleswagger/models/inline_query_result_cached_video.rb +266 -0
  173. data/lib/teleswagger/models/inline_query_result_cached_voice.rb +257 -0
  174. data/lib/teleswagger/models/inline_query_result_contact.rb +289 -0
  175. data/lib/teleswagger/models/inline_query_result_document.rb +312 -0
  176. data/lib/teleswagger/models/inline_query_result_game.rb +230 -0
  177. data/lib/teleswagger/models/inline_query_result_gif.rb +298 -0
  178. data/lib/teleswagger/models/inline_query_result_location.rb +294 -0
  179. data/lib/teleswagger/models/inline_query_result_mpeg4_gif.rb +298 -0
  180. data/lib/teleswagger/models/inline_query_result_photo.rb +289 -0
  181. data/lib/teleswagger/models/inline_query_result_venue.rb +317 -0
  182. data/lib/teleswagger/models/inline_query_result_video.rb +326 -0
  183. data/lib/teleswagger/models/inline_query_result_voice.rb +271 -0
  184. data/lib/teleswagger/models/inline_response_200.rb +215 -0
  185. data/lib/teleswagger/models/inline_response_200_1.rb +215 -0
  186. data/lib/teleswagger/models/inline_response_200_2.rb +215 -0
  187. data/lib/teleswagger/models/inline_response_200_3.rb +215 -0
  188. data/lib/teleswagger/models/inline_response_200_4.rb +217 -0
  189. data/lib/teleswagger/models/inline_response_200_5.rb +215 -0
  190. data/lib/teleswagger/models/inline_response_200_6.rb +215 -0
  191. data/lib/teleswagger/models/inline_response_200_7.rb +215 -0
  192. data/lib/teleswagger/models/inline_response_200_8.rb +215 -0
  193. data/lib/teleswagger/models/inline_response_200_9.rb +215 -0
  194. data/lib/teleswagger/models/inline_type.rb +33 -0
  195. data/lib/teleswagger/models/input_contact_message_content.rb +216 -0
  196. data/lib/teleswagger/models/input_location_message_content.rb +207 -0
  197. data/lib/teleswagger/models/input_text_message_content.rb +211 -0
  198. data/lib/teleswagger/models/input_venue_message_content.rb +244 -0
  199. data/lib/teleswagger/models/invoice.rb +224 -0
  200. data/lib/teleswagger/models/keyboard_button.rb +206 -0
  201. data/lib/teleswagger/models/labeled_price.rb +197 -0
  202. data/lib/teleswagger/models/location.rb +197 -0
  203. data/lib/teleswagger/models/mask_position.rb +248 -0
  204. data/lib/teleswagger/models/message.rb +529 -0
  205. data/lib/teleswagger/models/message_entity.rb +257 -0
  206. data/lib/teleswagger/models/order_info.rb +215 -0
  207. data/lib/teleswagger/models/parse_mode.rb +22 -0
  208. data/lib/teleswagger/models/photo_size.rb +215 -0
  209. data/lib/teleswagger/models/pre_checkout_query.rb +242 -0
  210. data/lib/teleswagger/models/promote_chat_member_body.rb +279 -0
  211. data/lib/teleswagger/models/reply_keyboard_markup.rb +217 -0
  212. data/lib/teleswagger/models/reply_keyboard_remove.rb +197 -0
  213. data/lib/teleswagger/models/response_bool.rb +215 -0
  214. data/lib/teleswagger/models/response_message.rb +215 -0
  215. data/lib/teleswagger/models/response_parameters.rb +197 -0
  216. data/lib/teleswagger/models/response_update.rb +217 -0
  217. data/lib/teleswagger/models/restrict_chat_member_body.rb +252 -0
  218. data/lib/teleswagger/models/send_audio_link_body.rb +270 -0
  219. data/lib/teleswagger/models/send_contact_body.rb +257 -0
  220. data/lib/teleswagger/models/send_document_link_body.rb +243 -0
  221. data/lib/teleswagger/models/send_game_body.rb +234 -0
  222. data/lib/teleswagger/models/send_invoice_body.rb +401 -0
  223. data/lib/teleswagger/models/send_location_body.rb +248 -0
  224. data/lib/teleswagger/models/send_message_body.rb +252 -0
  225. data/lib/teleswagger/models/send_photo_link_body.rb +243 -0
  226. data/lib/teleswagger/models/send_sticker_link_body.rb +234 -0
  227. data/lib/teleswagger/models/send_venue_body.rb +285 -0
  228. data/lib/teleswagger/models/send_video_link_body.rb +270 -0
  229. data/lib/teleswagger/models/send_video_note_link_body.rb +252 -0
  230. data/lib/teleswagger/models/send_voice_link_body.rb +252 -0
  231. data/lib/teleswagger/models/shipping_address.rb +233 -0
  232. data/lib/teleswagger/models/shipping_option.rb +208 -0
  233. data/lib/teleswagger/models/shipping_query.rb +215 -0
  234. data/lib/teleswagger/models/sticker.rb +251 -0
  235. data/lib/teleswagger/models/sticker_set.rb +217 -0
  236. data/lib/teleswagger/models/successful_payment.rb +242 -0
  237. data/lib/teleswagger/models/update.rb +269 -0
  238. data/lib/teleswagger/models/user.rb +233 -0
  239. data/lib/teleswagger/models/user_profile_photos.rb +199 -0
  240. data/lib/teleswagger/models/venue.rb +215 -0
  241. data/lib/teleswagger/models/video.rb +242 -0
  242. data/lib/teleswagger/models/video_note.rb +224 -0
  243. data/lib/teleswagger/models/voice.rb +215 -0
  244. data/lib/teleswagger/models/webhook_info.rb +259 -0
  245. data/lib/teleswagger/version.rb +15 -0
  246. data/spec/api/attachments_api_spec.rb +311 -0
  247. data/spec/api/callbacks_api_spec.rb +52 -0
  248. data/spec/api/chats_api_spec.rb +266 -0
  249. data/spec/api/games_api_spec.rb +83 -0
  250. data/spec/api/inline_api_spec.rb +48 -0
  251. data/spec/api/messages_api_spec.rb +130 -0
  252. data/spec/api/payments_api_spec.rb +76 -0
  253. data/spec/api/stickers_api_spec.rb +165 -0
  254. data/spec/api/updates_api_spec.rb +89 -0
  255. data/spec/api/users_api_spec.rb +62 -0
  256. data/spec/api_client_spec.rb +226 -0
  257. data/spec/configuration_spec.rb +42 -0
  258. data/spec/models/add_sticker_to_set_link_body_spec.rb +66 -0
  259. data/spec/models/allowed_update_spec.rb +36 -0
  260. data/spec/models/animation_spec.rb +66 -0
  261. data/spec/models/answer_inline_query_body_spec.rb +78 -0
  262. data/spec/models/answer_shipping_query_body_spec.rb +60 -0
  263. data/spec/models/audio_spec.rb +72 -0
  264. data/spec/models/callback_game_spec.rb +36 -0
  265. data/spec/models/callback_query_spec.rb +78 -0
  266. data/spec/models/chat_member_spec.rb +136 -0
  267. data/spec/models/chat_photo_spec.rb +48 -0
  268. data/spec/models/chat_spec.rb +106 -0
  269. data/spec/models/chosen_inline_result_spec.rb +66 -0
  270. data/spec/models/contact_spec.rb +60 -0
  271. data/spec/models/create_new_sticker_set_link_body_spec.rb +78 -0
  272. data/spec/models/document_spec.rb +66 -0
  273. data/spec/models/edit_message_caption_body_spec.rb +66 -0
  274. data/spec/models/edit_message_reply_markup_body_spec.rb +60 -0
  275. data/spec/models/edit_message_text_body_spec.rb +78 -0
  276. data/spec/models/error_spec.rb +54 -0
  277. data/spec/models/file_spec.rb +54 -0
  278. data/spec/models/force_reply_spec.rb +48 -0
  279. data/spec/models/game_high_score_spec.rb +54 -0
  280. data/spec/models/game_spec.rb +72 -0
  281. data/spec/models/inline_keyboard_button_spec.rb +78 -0
  282. data/spec/models/inline_keyboard_markup_spec.rb +42 -0
  283. data/spec/models/inline_query_result_article_spec.rb +102 -0
  284. data/spec/models/inline_query_result_audio_spec.rb +90 -0
  285. data/spec/models/inline_query_result_cached_audio_spec.rb +72 -0
  286. data/spec/models/inline_query_result_cached_document_spec.rb +78 -0
  287. data/spec/models/inline_query_result_cached_gif_spec.rb +78 -0
  288. data/spec/models/inline_query_result_cached_mpeg4_gif_spec.rb +78 -0
  289. data/spec/models/inline_query_result_cached_photo_spec.rb +84 -0
  290. data/spec/models/inline_query_result_cached_sticker_spec.rb +66 -0
  291. data/spec/models/inline_query_result_cached_video_spec.rb +84 -0
  292. data/spec/models/inline_query_result_cached_voice_spec.rb +78 -0
  293. data/spec/models/inline_query_result_contact_spec.rb +96 -0
  294. data/spec/models/inline_query_result_document_spec.rb +108 -0
  295. data/spec/models/inline_query_result_game_spec.rb +60 -0
  296. data/spec/models/inline_query_result_gif_spec.rb +102 -0
  297. data/spec/models/inline_query_result_location_spec.rb +96 -0
  298. data/spec/models/inline_query_result_mpeg4_gif_spec.rb +102 -0
  299. data/spec/models/inline_query_result_photo_spec.rb +96 -0
  300. data/spec/models/inline_query_result_venue_spec.rb +108 -0
  301. data/spec/models/inline_query_result_video_spec.rb +114 -0
  302. data/spec/models/inline_query_result_voice_spec.rb +84 -0
  303. data/spec/models/inline_query_spec.rb +66 -0
  304. data/spec/models/inline_response_200_1_spec.rb +60 -0
  305. data/spec/models/inline_response_200_2_spec.rb +60 -0
  306. data/spec/models/inline_response_200_3_spec.rb +60 -0
  307. data/spec/models/inline_response_200_4_spec.rb +60 -0
  308. data/spec/models/inline_response_200_5_spec.rb +60 -0
  309. data/spec/models/inline_response_200_6_spec.rb +60 -0
  310. data/spec/models/inline_response_200_7_spec.rb +60 -0
  311. data/spec/models/inline_response_200_8_spec.rb +60 -0
  312. data/spec/models/inline_response_200_9_spec.rb +60 -0
  313. data/spec/models/inline_response_200_spec.rb +60 -0
  314. data/spec/models/inline_type_spec.rb +36 -0
  315. data/spec/models/input_contact_message_content_spec.rb +54 -0
  316. data/spec/models/input_location_message_content_spec.rb +48 -0
  317. data/spec/models/input_text_message_content_spec.rb +54 -0
  318. data/spec/models/input_venue_message_content_spec.rb +66 -0
  319. data/spec/models/invoice_spec.rb +66 -0
  320. data/spec/models/keyboard_button_spec.rb +54 -0
  321. data/spec/models/labeled_price_spec.rb +48 -0
  322. data/spec/models/location_spec.rb +48 -0
  323. data/spec/models/mask_position_spec.rb +64 -0
  324. data/spec/models/message_entity_spec.rb +70 -0
  325. data/spec/models/message_spec.rb +264 -0
  326. data/spec/models/order_info_spec.rb +60 -0
  327. data/spec/models/parse_mode_spec.rb +36 -0
  328. data/spec/models/photo_size_spec.rb +60 -0
  329. data/spec/models/pre_checkout_query_spec.rb +78 -0
  330. data/spec/models/promote_chat_member_body_spec.rb +96 -0
  331. data/spec/models/reply_keyboard_markup_spec.rb +60 -0
  332. data/spec/models/reply_keyboard_remove_spec.rb +48 -0
  333. data/spec/models/response_bool_spec.rb +60 -0
  334. data/spec/models/response_message_spec.rb +60 -0
  335. data/spec/models/response_parameters_spec.rb +48 -0
  336. data/spec/models/response_update_spec.rb +60 -0
  337. data/spec/models/restrict_chat_member_body_spec.rb +78 -0
  338. data/spec/models/send_audio_link_body_spec.rb +90 -0
  339. data/spec/models/send_contact_body_spec.rb +78 -0
  340. data/spec/models/send_document_link_body_spec.rb +72 -0
  341. data/spec/models/send_game_body_spec.rb +66 -0
  342. data/spec/models/send_invoice_body_spec.rb +156 -0
  343. data/spec/models/send_location_body_spec.rb +72 -0
  344. data/spec/models/send_message_body_spec.rb +78 -0
  345. data/spec/models/send_photo_link_body_spec.rb +72 -0
  346. data/spec/models/send_sticker_link_body_spec.rb +66 -0
  347. data/spec/models/send_venue_body_spec.rb +90 -0
  348. data/spec/models/send_video_link_body_spec.rb +90 -0
  349. data/spec/models/send_video_note_link_body_spec.rb +78 -0
  350. data/spec/models/send_voice_link_body_spec.rb +78 -0
  351. data/spec/models/shipping_address_spec.rb +72 -0
  352. data/spec/models/shipping_option_spec.rb +54 -0
  353. data/spec/models/shipping_query_spec.rb +60 -0
  354. data/spec/models/sticker_set_spec.rb +60 -0
  355. data/spec/models/sticker_spec.rb +84 -0
  356. data/spec/models/successful_payment_spec.rb +78 -0
  357. data/spec/models/update_spec.rb +96 -0
  358. data/spec/models/user_profile_photos_spec.rb +48 -0
  359. data/spec/models/user_spec.rb +72 -0
  360. data/spec/models/venue_spec.rb +60 -0
  361. data/spec/models/video_note_spec.rb +66 -0
  362. data/spec/models/video_spec.rb +78 -0
  363. data/spec/models/voice_spec.rb +60 -0
  364. data/spec/models/webhook_info_spec.rb +78 -0
  365. data/spec/spec_helper.rb +111 -0
  366. data/swagger.yaml +5202 -0
  367. data/teleswagger.gemspec +46 -0
  368. metadata +709 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6a0da29abb43030d262e07d91a2b1ec416310645
4
+ data.tar.gz: e46d1b3bd9b6d8380c7d8fe8db77f0b15cfc9c31
5
+ SHA512:
6
+ metadata.gz: a1670d2cb77f18e5a858cd715ed931250649fbc93c8eaf1ad1a0b18580a4661fd6a9e32847852e7f971e8b8a853e345ee840632fe5fe469d7e61897c1e16dd74
7
+ data.tar.gz: c1104c681386fb1ca9727b13392582d7dc273b03864ba2d85e78037970446e25bcc4ad55af01a48f778bd9a196428b84f4c60a983f03e6d8b3434cc458af8315
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 12.0.0'
7
+ end
@@ -0,0 +1,69 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ teleswagger (0.0.1)
5
+ json (~> 2.1, >= 2.1.0)
6
+ typhoeus (~> 1.0, >= 1.0.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ ZenTest (4.11.1)
12
+ addressable (2.5.2)
13
+ public_suffix (>= 2.0.2, < 4.0)
14
+ autotest (4.4.6)
15
+ ZenTest (>= 4.4.1)
16
+ autotest-fsevent (0.2.12)
17
+ sys-uname
18
+ autotest-growl (0.2.16)
19
+ autotest-rails-pure (4.1.2)
20
+ crack (0.4.3)
21
+ safe_yaml (~> 1.0.0)
22
+ diff-lcs (1.3)
23
+ ethon (0.10.1)
24
+ ffi (>= 1.3.0)
25
+ ffi (1.9.18)
26
+ hashdiff (0.3.6)
27
+ json (2.1.0)
28
+ public_suffix (3.0.0)
29
+ rake (12.0.0)
30
+ rspec (3.6.0)
31
+ rspec-core (~> 3.6.0)
32
+ rspec-expectations (~> 3.6.0)
33
+ rspec-mocks (~> 3.6.0)
34
+ rspec-core (3.6.0)
35
+ rspec-support (~> 3.6.0)
36
+ rspec-expectations (3.6.0)
37
+ diff-lcs (>= 1.2.0, < 2.0)
38
+ rspec-support (~> 3.6.0)
39
+ rspec-mocks (3.6.0)
40
+ diff-lcs (>= 1.2.0, < 2.0)
41
+ rspec-support (~> 3.6.0)
42
+ rspec-support (3.6.0)
43
+ safe_yaml (1.0.4)
44
+ sys-uname (1.0.3)
45
+ ffi (>= 1.0.0)
46
+ typhoeus (1.3.0)
47
+ ethon (>= 0.9.0)
48
+ vcr (3.0.3)
49
+ webmock (1.24.6)
50
+ addressable (>= 2.3.6)
51
+ crack (>= 0.3.2)
52
+ hashdiff
53
+
54
+ PLATFORMS
55
+ ruby
56
+
57
+ DEPENDENCIES
58
+ autotest (~> 4.4, >= 4.4.6)
59
+ autotest-fsevent (~> 0.2, >= 0.2.12)
60
+ autotest-growl (~> 0.2, >= 0.2.16)
61
+ autotest-rails-pure (~> 4.1, >= 4.1.2)
62
+ rake (~> 12.0.0)
63
+ rspec (~> 3.6, >= 3.6.0)
64
+ teleswagger!
65
+ vcr (~> 3.0, >= 3.0.1)
66
+ webmock (~> 1.24, >= 1.24.3)
67
+
68
+ BUNDLED WITH
69
+ 1.15.4
@@ -0,0 +1,260 @@
1
+
2
+ # teleswagger
3
+
4
+ Teleswagger - the Ruby gem for the Telegram bot API
5
+
6
+ This is a swagger defenition for [Telegram bot API](https://core.telegram.org/bots/api).
7
+
8
+ This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
9
+
10
+ - API version: 3.3
11
+ - Package version: 0.0.1
12
+ - Build package: io.swagger.codegen.languages.RubyClientCodegen
13
+
14
+ ## Installation
15
+
16
+ ### Build a gem
17
+
18
+ To build the Ruby code into a gem:
19
+
20
+ ```shell
21
+ gem build teleswagger.gemspec
22
+ ```
23
+
24
+ Then either install the gem locally:
25
+
26
+ ```shell
27
+ gem install ./teleswagger-0.0.1.gem
28
+ ```
29
+ (for development, run `gem install --dev ./teleswagger-0.0.1.gem` to install the development dependencies)
30
+
31
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
+
33
+ Finally add this to the Gemfile:
34
+
35
+ gem 'teleswagger', '~> 0.0.1'
36
+
37
+ ### Install from Git
38
+
39
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
40
+
41
+ gem 'teleswagger', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
42
+
43
+ ### Include the Ruby code directly
44
+
45
+ Include the Ruby code directly using `-I` as follows:
46
+
47
+ ```shell
48
+ ruby -Ilib script.rb
49
+ ```
50
+
51
+ ## Getting Started
52
+
53
+ Please follow the [installation](#installation) procedure and then run the following code:
54
+ ```ruby
55
+ # Load the gem
56
+ require 'teleswagger'
57
+
58
+ api_instance = Teleswagger::AttachmentsApi.new
59
+
60
+ token = "token_example" # String | bot's token to authorize the request
61
+
62
+ file_id = "file_id_example" # String |
63
+
64
+
65
+ begin
66
+ result = api_instance.get_file(token, file_id)
67
+ p result
68
+ rescue Teleswagger::ApiError => e
69
+ puts "Exception when calling AttachmentsApi->get_file: #{e}"
70
+ end
71
+
72
+ ```
73
+
74
+ ## Documentation for API Endpoints
75
+
76
+ All URIs are relative to *https://api.telegram.org*
77
+
78
+ Class | Method | HTTP request | Description
79
+ ------------ | ------------- | ------------- | -------------
80
+ *Teleswagger::AttachmentsApi* | [**get_file**](docs/AttachmentsApi.md#get_file) | **GET** /bot{token}/getFile |
81
+ *Teleswagger::AttachmentsApi* | [**send_audio**](docs/AttachmentsApi.md#send_audio) | **POST** /bot{token}/sendAudio |
82
+ *Teleswagger::AttachmentsApi* | [**send_audio_link**](docs/AttachmentsApi.md#send_audio_link) | **POST** /bot{token}/sendAudio#link |
83
+ *Teleswagger::AttachmentsApi* | [**send_contact**](docs/AttachmentsApi.md#send_contact) | **POST** /bot{token}/sendContact |
84
+ *Teleswagger::AttachmentsApi* | [**send_document**](docs/AttachmentsApi.md#send_document) | **POST** /bot{token}/sendDocument |
85
+ *Teleswagger::AttachmentsApi* | [**send_document_link**](docs/AttachmentsApi.md#send_document_link) | **POST** /bot{token}/sendDocument#link |
86
+ *Teleswagger::AttachmentsApi* | [**send_location**](docs/AttachmentsApi.md#send_location) | **POST** /bot{token}/sendLocation |
87
+ *Teleswagger::AttachmentsApi* | [**send_photo**](docs/AttachmentsApi.md#send_photo) | **POST** /bot{token}/sendPhoto |
88
+ *Teleswagger::AttachmentsApi* | [**send_photo_link**](docs/AttachmentsApi.md#send_photo_link) | **POST** /bot{token}/sendPhoto#link |
89
+ *Teleswagger::AttachmentsApi* | [**send_sticker**](docs/AttachmentsApi.md#send_sticker) | **POST** /bot{token}/sendSticker |
90
+ *Teleswagger::AttachmentsApi* | [**send_sticker_link**](docs/AttachmentsApi.md#send_sticker_link) | **POST** /bot{token}/sendSticker#link |
91
+ *Teleswagger::AttachmentsApi* | [**send_venue**](docs/AttachmentsApi.md#send_venue) | **POST** /bot{token}/sendVenue |
92
+ *Teleswagger::AttachmentsApi* | [**send_video**](docs/AttachmentsApi.md#send_video) | **POST** /bot{token}/sendVideo |
93
+ *Teleswagger::AttachmentsApi* | [**send_video_link**](docs/AttachmentsApi.md#send_video_link) | **POST** /bot{token}/sendVideo#link |
94
+ *Teleswagger::AttachmentsApi* | [**send_video_note**](docs/AttachmentsApi.md#send_video_note) | **POST** /bot{token}/sendVideoNote |
95
+ *Teleswagger::AttachmentsApi* | [**send_video_note_link**](docs/AttachmentsApi.md#send_video_note_link) | **POST** /bot{token}/sendVideoNote#link |
96
+ *Teleswagger::AttachmentsApi* | [**send_voice**](docs/AttachmentsApi.md#send_voice) | **POST** /bot{token}/sendVoice |
97
+ *Teleswagger::AttachmentsApi* | [**send_voice_link**](docs/AttachmentsApi.md#send_voice_link) | **POST** /bot{token}/sendVoice#link |
98
+ *Teleswagger::CallbacksApi* | [**answer_callback_query**](docs/CallbacksApi.md#answer_callback_query) | **POST** /bot{token}/answerCallbackQuery |
99
+ *Teleswagger::ChatsApi* | [**delete_chat_photo**](docs/ChatsApi.md#delete_chat_photo) | **POST** /bot{token}/deleteChatPhoto |
100
+ *Teleswagger::ChatsApi* | [**export_chat_invite_link**](docs/ChatsApi.md#export_chat_invite_link) | **GET** /bot{token}/exportChatInviteLink |
101
+ *Teleswagger::ChatsApi* | [**get_chat**](docs/ChatsApi.md#get_chat) | **GET** /bot{token}/getChat |
102
+ *Teleswagger::ChatsApi* | [**get_chat_administrators**](docs/ChatsApi.md#get_chat_administrators) | **GET** /bot{token}/getChatAdministrators |
103
+ *Teleswagger::ChatsApi* | [**get_chat_member**](docs/ChatsApi.md#get_chat_member) | **GET** /bot{token}/getChatMember |
104
+ *Teleswagger::ChatsApi* | [**get_chat_members_count**](docs/ChatsApi.md#get_chat_members_count) | **GET** /bot{token}/getChatMembersCount |
105
+ *Teleswagger::ChatsApi* | [**kick_chat_member**](docs/ChatsApi.md#kick_chat_member) | **GET** /bot{token}/kickChatMember |
106
+ *Teleswagger::ChatsApi* | [**leave_chat**](docs/ChatsApi.md#leave_chat) | **GET** /bot{token}/leaveChat |
107
+ *Teleswagger::ChatsApi* | [**pin_chat_message**](docs/ChatsApi.md#pin_chat_message) | **POST** /bot{token}/pinChatMessage |
108
+ *Teleswagger::ChatsApi* | [**promote_chat_member**](docs/ChatsApi.md#promote_chat_member) | **POST** /bot{token}/promoteChatMember |
109
+ *Teleswagger::ChatsApi* | [**restrict_chat_member**](docs/ChatsApi.md#restrict_chat_member) | **POST** /bot{token}/restrictChatMember |
110
+ *Teleswagger::ChatsApi* | [**send_chat_action**](docs/ChatsApi.md#send_chat_action) | **GET** /bot{token}/sendChatAction |
111
+ *Teleswagger::ChatsApi* | [**set_chat_description**](docs/ChatsApi.md#set_chat_description) | **POST** /bot{token}/setChatDescription |
112
+ *Teleswagger::ChatsApi* | [**set_chat_photo**](docs/ChatsApi.md#set_chat_photo) | **GET** /bot{token}/setChatPhoto |
113
+ *Teleswagger::ChatsApi* | [**set_chat_title**](docs/ChatsApi.md#set_chat_title) | **POST** /bot{token}/setChatTitle |
114
+ *Teleswagger::ChatsApi* | [**unban_chat_member**](docs/ChatsApi.md#unban_chat_member) | **GET** /bot{token}/unbanChatMember |
115
+ *Teleswagger::ChatsApi* | [**unpin_chat_message**](docs/ChatsApi.md#unpin_chat_message) | **POST** /bot{token}/unpinChatMessage |
116
+ *Teleswagger::GamesApi* | [**get_game_high_scores**](docs/GamesApi.md#get_game_high_scores) | **GET** /bot{token}/getGameHighScores |
117
+ *Teleswagger::GamesApi* | [**send_game**](docs/GamesApi.md#send_game) | **POST** /bot{token}/sendGame |
118
+ *Teleswagger::GamesApi* | [**set_game_score**](docs/GamesApi.md#set_game_score) | **GET** /bot{token}/setGameScore |
119
+ *Teleswagger::InlineApi* | [**answer_inline_query**](docs/InlineApi.md#answer_inline_query) | **POST** /bot{token}/answerInlineQuery |
120
+ *Teleswagger::MessagesApi* | [**delete_message**](docs/MessagesApi.md#delete_message) | **GET** /bot{token}/deleteMessage |
121
+ *Teleswagger::MessagesApi* | [**edit_message_caption**](docs/MessagesApi.md#edit_message_caption) | **POST** /bot{token}/editMessageCaption |
122
+ *Teleswagger::MessagesApi* | [**edit_message_reply_markup**](docs/MessagesApi.md#edit_message_reply_markup) | **POST** /bot{token}/editMessageReplyMarkup |
123
+ *Teleswagger::MessagesApi* | [**edit_message_text**](docs/MessagesApi.md#edit_message_text) | **POST** /bot{token}/editMessageText |
124
+ *Teleswagger::MessagesApi* | [**forward_message**](docs/MessagesApi.md#forward_message) | **POST** /bot{token}/forwardMessage |
125
+ *Teleswagger::MessagesApi* | [**send_message**](docs/MessagesApi.md#send_message) | **POST** /bot{token}/sendMessage |
126
+ *Teleswagger::MessagesApi* | [**send_message_bytes**](docs/MessagesApi.md#send_message_bytes) | **POST** /bot{token}/sendMessage#bytes |
127
+ *Teleswagger::PaymentsApi* | [**answer_pre_checkout_query**](docs/PaymentsApi.md#answer_pre_checkout_query) | **GET** /bot{token}/answerPreCheckoutQuery |
128
+ *Teleswagger::PaymentsApi* | [**answer_shipping_query**](docs/PaymentsApi.md#answer_shipping_query) | **POST** /bot{token}/answerShippingQuery |
129
+ *Teleswagger::PaymentsApi* | [**send_invoice**](docs/PaymentsApi.md#send_invoice) | **POST** /bot{token}/sendInvoice |
130
+ *Teleswagger::StickersApi* | [**add_sticker_to_set**](docs/StickersApi.md#add_sticker_to_set) | **POST** /bot{token}/addStickerToSet |
131
+ *Teleswagger::StickersApi* | [**add_sticker_to_set_link**](docs/StickersApi.md#add_sticker_to_set_link) | **POST** /bot{token}/addStickerToSet#link |
132
+ *Teleswagger::StickersApi* | [**create_new_sticker_set**](docs/StickersApi.md#create_new_sticker_set) | **POST** /bot{token}/createNewStickerSet |
133
+ *Teleswagger::StickersApi* | [**create_new_sticker_set_link**](docs/StickersApi.md#create_new_sticker_set_link) | **POST** /bot{token}/createNewStickerSet#link |
134
+ *Teleswagger::StickersApi* | [**delete_sticker_from_set**](docs/StickersApi.md#delete_sticker_from_set) | **POST** /bot{token}/deleteStickerFromSet |
135
+ *Teleswagger::StickersApi* | [**get_sticker_set**](docs/StickersApi.md#get_sticker_set) | **GET** /bot{token}/getStickerSet |
136
+ *Teleswagger::StickersApi* | [**set_sticker_position_in_set**](docs/StickersApi.md#set_sticker_position_in_set) | **POST** /bot{token}/setStickerPositionInSet |
137
+ *Teleswagger::StickersApi* | [**upload_sticker_file**](docs/StickersApi.md#upload_sticker_file) | **POST** /bot{token}/uploadStickerFile |
138
+ *Teleswagger::StickersApi* | [**upload_sticker_file_link**](docs/StickersApi.md#upload_sticker_file_link) | **POST** /bot{token}/uploadStickerFile#link |
139
+ *Teleswagger::UpdatesApi* | [**delete_webhook**](docs/UpdatesApi.md#delete_webhook) | **GET** /bot{token}/deleteWebhook |
140
+ *Teleswagger::UpdatesApi* | [**get_updates**](docs/UpdatesApi.md#get_updates) | **GET** /bot{token}/getUpdates |
141
+ *Teleswagger::UpdatesApi* | [**get_webhook_info**](docs/UpdatesApi.md#get_webhook_info) | **GET** /bot{token}/getWebhookInfo |
142
+ *Teleswagger::UpdatesApi* | [**set_webhook**](docs/UpdatesApi.md#set_webhook) | **POST** /bot{token}/setWebhook |
143
+ *Teleswagger::UsersApi* | [**get_me**](docs/UsersApi.md#get_me) | **GET** /bot{token}/getMe |
144
+ *Teleswagger::UsersApi* | [**get_user_profile_photos**](docs/UsersApi.md#get_user_profile_photos) | **GET** /bot{token}/getUserProfilePhotos |
145
+
146
+
147
+ ## Documentation for Models
148
+
149
+ - [Teleswagger::AddStickerToSetLinkBody](docs/AddStickerToSetLinkBody.md)
150
+ - [Teleswagger::AllowedUpdate](docs/AllowedUpdate.md)
151
+ - [Teleswagger::Animation](docs/Animation.md)
152
+ - [Teleswagger::AnswerInlineQueryBody](docs/AnswerInlineQueryBody.md)
153
+ - [Teleswagger::AnswerShippingQueryBody](docs/AnswerShippingQueryBody.md)
154
+ - [Teleswagger::Audio](docs/Audio.md)
155
+ - [Teleswagger::CallbackGame](docs/CallbackGame.md)
156
+ - [Teleswagger::CallbackQuery](docs/CallbackQuery.md)
157
+ - [Teleswagger::Chat](docs/Chat.md)
158
+ - [Teleswagger::ChatMember](docs/ChatMember.md)
159
+ - [Teleswagger::ChatPhoto](docs/ChatPhoto.md)
160
+ - [Teleswagger::ChosenInlineResult](docs/ChosenInlineResult.md)
161
+ - [Teleswagger::Contact](docs/Contact.md)
162
+ - [Teleswagger::CreateNewStickerSetLinkBody](docs/CreateNewStickerSetLinkBody.md)
163
+ - [Teleswagger::Document](docs/Document.md)
164
+ - [Teleswagger::EditMessageCaptionBody](docs/EditMessageCaptionBody.md)
165
+ - [Teleswagger::EditMessageReplyMarkupBody](docs/EditMessageReplyMarkupBody.md)
166
+ - [Teleswagger::EditMessageTextBody](docs/EditMessageTextBody.md)
167
+ - [Teleswagger::Error](docs/Error.md)
168
+ - [Teleswagger::File](docs/File.md)
169
+ - [Teleswagger::ForceReply](docs/ForceReply.md)
170
+ - [Teleswagger::Game](docs/Game.md)
171
+ - [Teleswagger::GameHighScore](docs/GameHighScore.md)
172
+ - [Teleswagger::InlineKeyboardButton](docs/InlineKeyboardButton.md)
173
+ - [Teleswagger::InlineKeyboardMarkup](docs/InlineKeyboardMarkup.md)
174
+ - [Teleswagger::InlineQuery](docs/InlineQuery.md)
175
+ - [Teleswagger::InlineQueryResultArticle](docs/InlineQueryResultArticle.md)
176
+ - [Teleswagger::InlineQueryResultAudio](docs/InlineQueryResultAudio.md)
177
+ - [Teleswagger::InlineQueryResultCachedAudio](docs/InlineQueryResultCachedAudio.md)
178
+ - [Teleswagger::InlineQueryResultCachedDocument](docs/InlineQueryResultCachedDocument.md)
179
+ - [Teleswagger::InlineQueryResultCachedGif](docs/InlineQueryResultCachedGif.md)
180
+ - [Teleswagger::InlineQueryResultCachedMpeg4Gif](docs/InlineQueryResultCachedMpeg4Gif.md)
181
+ - [Teleswagger::InlineQueryResultCachedPhoto](docs/InlineQueryResultCachedPhoto.md)
182
+ - [Teleswagger::InlineQueryResultCachedSticker](docs/InlineQueryResultCachedSticker.md)
183
+ - [Teleswagger::InlineQueryResultCachedVideo](docs/InlineQueryResultCachedVideo.md)
184
+ - [Teleswagger::InlineQueryResultCachedVoice](docs/InlineQueryResultCachedVoice.md)
185
+ - [Teleswagger::InlineQueryResultContact](docs/InlineQueryResultContact.md)
186
+ - [Teleswagger::InlineQueryResultDocument](docs/InlineQueryResultDocument.md)
187
+ - [Teleswagger::InlineQueryResultGame](docs/InlineQueryResultGame.md)
188
+ - [Teleswagger::InlineQueryResultGif](docs/InlineQueryResultGif.md)
189
+ - [Teleswagger::InlineQueryResultLocation](docs/InlineQueryResultLocation.md)
190
+ - [Teleswagger::InlineQueryResultMpeg4Gif](docs/InlineQueryResultMpeg4Gif.md)
191
+ - [Teleswagger::InlineQueryResultPhoto](docs/InlineQueryResultPhoto.md)
192
+ - [Teleswagger::InlineQueryResultVenue](docs/InlineQueryResultVenue.md)
193
+ - [Teleswagger::InlineQueryResultVideo](docs/InlineQueryResultVideo.md)
194
+ - [Teleswagger::InlineQueryResultVoice](docs/InlineQueryResultVoice.md)
195
+ - [Teleswagger::InlineResponse200](docs/InlineResponse200.md)
196
+ - [Teleswagger::InlineResponse2001](docs/InlineResponse2001.md)
197
+ - [Teleswagger::InlineResponse2002](docs/InlineResponse2002.md)
198
+ - [Teleswagger::InlineResponse2003](docs/InlineResponse2003.md)
199
+ - [Teleswagger::InlineResponse2004](docs/InlineResponse2004.md)
200
+ - [Teleswagger::InlineResponse2005](docs/InlineResponse2005.md)
201
+ - [Teleswagger::InlineResponse2006](docs/InlineResponse2006.md)
202
+ - [Teleswagger::InlineResponse2007](docs/InlineResponse2007.md)
203
+ - [Teleswagger::InlineResponse2008](docs/InlineResponse2008.md)
204
+ - [Teleswagger::InlineResponse2009](docs/InlineResponse2009.md)
205
+ - [Teleswagger::InlineType](docs/InlineType.md)
206
+ - [Teleswagger::InputContactMessageContent](docs/InputContactMessageContent.md)
207
+ - [Teleswagger::InputLocationMessageContent](docs/InputLocationMessageContent.md)
208
+ - [Teleswagger::InputTextMessageContent](docs/InputTextMessageContent.md)
209
+ - [Teleswagger::InputVenueMessageContent](docs/InputVenueMessageContent.md)
210
+ - [Teleswagger::Invoice](docs/Invoice.md)
211
+ - [Teleswagger::KeyboardButton](docs/KeyboardButton.md)
212
+ - [Teleswagger::LabeledPrice](docs/LabeledPrice.md)
213
+ - [Teleswagger::Location](docs/Location.md)
214
+ - [Teleswagger::MaskPosition](docs/MaskPosition.md)
215
+ - [Teleswagger::Message](docs/Message.md)
216
+ - [Teleswagger::MessageEntity](docs/MessageEntity.md)
217
+ - [Teleswagger::OrderInfo](docs/OrderInfo.md)
218
+ - [Teleswagger::ParseMode](docs/ParseMode.md)
219
+ - [Teleswagger::PhotoSize](docs/PhotoSize.md)
220
+ - [Teleswagger::PreCheckoutQuery](docs/PreCheckoutQuery.md)
221
+ - [Teleswagger::PromoteChatMemberBody](docs/PromoteChatMemberBody.md)
222
+ - [Teleswagger::ReplyKeyboardMarkup](docs/ReplyKeyboardMarkup.md)
223
+ - [Teleswagger::ReplyKeyboardRemove](docs/ReplyKeyboardRemove.md)
224
+ - [Teleswagger::ResponseBool](docs/ResponseBool.md)
225
+ - [Teleswagger::ResponseMessage](docs/ResponseMessage.md)
226
+ - [Teleswagger::ResponseParameters](docs/ResponseParameters.md)
227
+ - [Teleswagger::ResponseUpdate](docs/ResponseUpdate.md)
228
+ - [Teleswagger::RestrictChatMemberBody](docs/RestrictChatMemberBody.md)
229
+ - [Teleswagger::SendAudioLinkBody](docs/SendAudioLinkBody.md)
230
+ - [Teleswagger::SendContactBody](docs/SendContactBody.md)
231
+ - [Teleswagger::SendDocumentLinkBody](docs/SendDocumentLinkBody.md)
232
+ - [Teleswagger::SendGameBody](docs/SendGameBody.md)
233
+ - [Teleswagger::SendInvoiceBody](docs/SendInvoiceBody.md)
234
+ - [Teleswagger::SendLocationBody](docs/SendLocationBody.md)
235
+ - [Teleswagger::SendMessageBody](docs/SendMessageBody.md)
236
+ - [Teleswagger::SendPhotoLinkBody](docs/SendPhotoLinkBody.md)
237
+ - [Teleswagger::SendStickerLinkBody](docs/SendStickerLinkBody.md)
238
+ - [Teleswagger::SendVenueBody](docs/SendVenueBody.md)
239
+ - [Teleswagger::SendVideoLinkBody](docs/SendVideoLinkBody.md)
240
+ - [Teleswagger::SendVideoNoteLinkBody](docs/SendVideoNoteLinkBody.md)
241
+ - [Teleswagger::SendVoiceLinkBody](docs/SendVoiceLinkBody.md)
242
+ - [Teleswagger::ShippingAddress](docs/ShippingAddress.md)
243
+ - [Teleswagger::ShippingOption](docs/ShippingOption.md)
244
+ - [Teleswagger::ShippingQuery](docs/ShippingQuery.md)
245
+ - [Teleswagger::Sticker](docs/Sticker.md)
246
+ - [Teleswagger::StickerSet](docs/StickerSet.md)
247
+ - [Teleswagger::SuccessfulPayment](docs/SuccessfulPayment.md)
248
+ - [Teleswagger::Update](docs/Update.md)
249
+ - [Teleswagger::User](docs/User.md)
250
+ - [Teleswagger::UserProfilePhotos](docs/UserProfilePhotos.md)
251
+ - [Teleswagger::Venue](docs/Venue.md)
252
+ - [Teleswagger::Video](docs/Video.md)
253
+ - [Teleswagger::VideoNote](docs/VideoNote.md)
254
+ - [Teleswagger::Voice](docs/Voice.md)
255
+ - [Teleswagger::WebhookInfo](docs/WebhookInfo.md)
256
+
257
+
258
+ ## Documentation for Authorization
259
+
260
+ All endpoints do not require authorization.
@@ -0,0 +1,8 @@
1
+ begin
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+ task default: :spec
6
+ rescue LoadError
7
+ # no rspec available
8
+ end
@@ -0,0 +1,5 @@
1
+ {
2
+ "gemName": "teleswagger",
3
+ "moduleName": "Teleswagger",
4
+ "gemVersion": "0.0.1"
5
+ }
@@ -0,0 +1,12 @@
1
+ # Teleswagger::AddStickerToSetLinkBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **user_id** | **Integer** | |
7
+ **name** | **String** | |
8
+ **png_sticker** | **String** | |
9
+ **emojis** | **String** | |
10
+ **mask_position** | [**MaskPosition**](MaskPosition.md) | | [optional]
11
+
12
+
@@ -0,0 +1,7 @@
1
+ # Teleswagger::AllowedUpdate
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
7
+
@@ -0,0 +1,12 @@
1
+ # Teleswagger::Animation
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **file_id** | **String** | |
7
+ **thumb** | [**PhotoSize**](PhotoSize.md) | | [optional]
8
+ **file_name** | **String** | | [optional]
9
+ **mime_type** | **String** | | [optional]
10
+ **file_size** | **Integer** | | [optional]
11
+
12
+
@@ -0,0 +1,14 @@
1
+ # Teleswagger::AnswerInlineQueryBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **inline_query_id** | **String** | |
7
+ **results** | **Array&lt;Object&gt;** | |
8
+ **cache_time** | **Integer** | | [optional]
9
+ **is_personal** | **BOOLEAN** | | [optional]
10
+ **next_offset** | **String** | | [optional]
11
+ **switch_pm_text** | **String** | | [optional]
12
+ **switch_pm_parameter** | **String** | | [optional]
13
+
14
+
@@ -0,0 +1,11 @@
1
+ # Teleswagger::AnswerShippingQueryBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **shipping_query_id** | **String** | |
7
+ **ok** | **BOOLEAN** | |
8
+ **shipping_options** | [**Array&lt;ShippingOption&gt;**](ShippingOption.md) | | [optional]
9
+ **error_message** | **String** | | [optional]
10
+
11
+
@@ -0,0 +1,1023 @@
1
+ # Teleswagger::AttachmentsApi
2
+
3
+ All URIs are relative to *https://api.telegram.org*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**get_file**](AttachmentsApi.md#get_file) | **GET** /bot{token}/getFile |
8
+ [**send_audio**](AttachmentsApi.md#send_audio) | **POST** /bot{token}/sendAudio |
9
+ [**send_audio_link**](AttachmentsApi.md#send_audio_link) | **POST** /bot{token}/sendAudio#link |
10
+ [**send_contact**](AttachmentsApi.md#send_contact) | **POST** /bot{token}/sendContact |
11
+ [**send_document**](AttachmentsApi.md#send_document) | **POST** /bot{token}/sendDocument |
12
+ [**send_document_link**](AttachmentsApi.md#send_document_link) | **POST** /bot{token}/sendDocument#link |
13
+ [**send_location**](AttachmentsApi.md#send_location) | **POST** /bot{token}/sendLocation |
14
+ [**send_photo**](AttachmentsApi.md#send_photo) | **POST** /bot{token}/sendPhoto |
15
+ [**send_photo_link**](AttachmentsApi.md#send_photo_link) | **POST** /bot{token}/sendPhoto#link |
16
+ [**send_sticker**](AttachmentsApi.md#send_sticker) | **POST** /bot{token}/sendSticker |
17
+ [**send_sticker_link**](AttachmentsApi.md#send_sticker_link) | **POST** /bot{token}/sendSticker#link |
18
+ [**send_venue**](AttachmentsApi.md#send_venue) | **POST** /bot{token}/sendVenue |
19
+ [**send_video**](AttachmentsApi.md#send_video) | **POST** /bot{token}/sendVideo |
20
+ [**send_video_link**](AttachmentsApi.md#send_video_link) | **POST** /bot{token}/sendVideo#link |
21
+ [**send_video_note**](AttachmentsApi.md#send_video_note) | **POST** /bot{token}/sendVideoNote |
22
+ [**send_video_note_link**](AttachmentsApi.md#send_video_note_link) | **POST** /bot{token}/sendVideoNote#link |
23
+ [**send_voice**](AttachmentsApi.md#send_voice) | **POST** /bot{token}/sendVoice |
24
+ [**send_voice_link**](AttachmentsApi.md#send_voice_link) | **POST** /bot{token}/sendVoice#link |
25
+
26
+
27
+ # **get_file**
28
+ > InlineResponse2002 get_file(token, file_id)
29
+
30
+
31
+
32
+
33
+
34
+ ### Example
35
+ ```ruby
36
+ # load the gem
37
+ require 'teleswagger'
38
+
39
+ api_instance = Teleswagger::AttachmentsApi.new
40
+
41
+ token = "token_example" # String | bot's token to authorize the request
42
+
43
+ file_id = "file_id_example" # String |
44
+
45
+
46
+ begin
47
+ result = api_instance.get_file(token, file_id)
48
+ p result
49
+ rescue Teleswagger::ApiError => e
50
+ puts "Exception when calling AttachmentsApi->get_file: #{e}"
51
+ end
52
+ ```
53
+
54
+ ### Parameters
55
+
56
+ Name | Type | Description | Notes
57
+ ------------- | ------------- | ------------- | -------------
58
+ **token** | **String**| bot&#39;s token to authorize the request |
59
+ **file_id** | **String**| |
60
+
61
+ ### Return type
62
+
63
+ [**InlineResponse2002**](InlineResponse2002.md)
64
+
65
+ ### Authorization
66
+
67
+ No authorization required
68
+
69
+ ### HTTP request headers
70
+
71
+ - **Content-Type**: application/json
72
+ - **Accept**: application/json
73
+
74
+
75
+
76
+ # **send_audio**
77
+ > ResponseMessage send_audio(token, chat_id, audio, opts)
78
+
79
+
80
+
81
+
82
+
83
+ ### Example
84
+ ```ruby
85
+ # load the gem
86
+ require 'teleswagger'
87
+
88
+ api_instance = Teleswagger::AttachmentsApi.new
89
+
90
+ token = "token_example" # String | bot's token to authorize the request
91
+
92
+ chat_id = "chat_id_example" # String |
93
+
94
+ audio = File.new("/path/to/file.txt") # File |
95
+
96
+ opts = {
97
+ caption: "caption_example", # String |
98
+ duration: 56, # Integer |
99
+ performer: "performer_example", # String |
100
+ title: "title_example", # String |
101
+ disable_notification: true, # BOOLEAN |
102
+ reply_to_message_id: 56, # Integer |
103
+ reply_markup: "reply_markup_example" # String | json string of reply_markup object
104
+ }
105
+
106
+ begin
107
+ result = api_instance.send_audio(token, chat_id, audio, opts)
108
+ p result
109
+ rescue Teleswagger::ApiError => e
110
+ puts "Exception when calling AttachmentsApi->send_audio: #{e}"
111
+ end
112
+ ```
113
+
114
+ ### Parameters
115
+
116
+ Name | Type | Description | Notes
117
+ ------------- | ------------- | ------------- | -------------
118
+ **token** | **String**| bot&#39;s token to authorize the request |
119
+ **chat_id** | **String**| |
120
+ **audio** | **File**| |
121
+ **caption** | **String**| | [optional]
122
+ **duration** | **Integer**| | [optional]
123
+ **performer** | **String**| | [optional]
124
+ **title** | **String**| | [optional]
125
+ **disable_notification** | **BOOLEAN**| | [optional]
126
+ **reply_to_message_id** | **Integer**| | [optional]
127
+ **reply_markup** | **String**| json string of reply_markup object | [optional]
128
+
129
+ ### Return type
130
+
131
+ [**ResponseMessage**](ResponseMessage.md)
132
+
133
+ ### Authorization
134
+
135
+ No authorization required
136
+
137
+ ### HTTP request headers
138
+
139
+ - **Content-Type**: multipart/form-data
140
+ - **Accept**: application/json
141
+
142
+
143
+
144
+ # **send_audio_link**
145
+ > ResponseMessage send_audio_link(token, , opts)
146
+
147
+
148
+
149
+
150
+
151
+ ### Example
152
+ ```ruby
153
+ # load the gem
154
+ require 'teleswagger'
155
+
156
+ api_instance = Teleswagger::AttachmentsApi.new
157
+
158
+ token = "token_example" # String | bot's token to authorize the request
159
+
160
+ opts = {
161
+ body: Teleswagger::SendAudioLinkBody.new # SendAudioLinkBody |
162
+ }
163
+
164
+ begin
165
+ result = api_instance.send_audio_link(token, , opts)
166
+ p result
167
+ rescue Teleswagger::ApiError => e
168
+ puts "Exception when calling AttachmentsApi->send_audio_link: #{e}"
169
+ end
170
+ ```
171
+
172
+ ### Parameters
173
+
174
+ Name | Type | Description | Notes
175
+ ------------- | ------------- | ------------- | -------------
176
+ **token** | **String**| bot&#39;s token to authorize the request |
177
+ **body** | [**SendAudioLinkBody**](SendAudioLinkBody.md)| | [optional]
178
+
179
+ ### Return type
180
+
181
+ [**ResponseMessage**](ResponseMessage.md)
182
+
183
+ ### Authorization
184
+
185
+ No authorization required
186
+
187
+ ### HTTP request headers
188
+
189
+ - **Content-Type**: application/json
190
+ - **Accept**: application/json
191
+
192
+
193
+
194
+ # **send_contact**
195
+ > ResponseMessage send_contact(token, , opts)
196
+
197
+
198
+
199
+
200
+
201
+ ### Example
202
+ ```ruby
203
+ # load the gem
204
+ require 'teleswagger'
205
+
206
+ api_instance = Teleswagger::AttachmentsApi.new
207
+
208
+ token = "token_example" # String | bot's token to authorize the request
209
+
210
+ opts = {
211
+ body: Teleswagger::SendContactBody.new # SendContactBody |
212
+ }
213
+
214
+ begin
215
+ result = api_instance.send_contact(token, , opts)
216
+ p result
217
+ rescue Teleswagger::ApiError => e
218
+ puts "Exception when calling AttachmentsApi->send_contact: #{e}"
219
+ end
220
+ ```
221
+
222
+ ### Parameters
223
+
224
+ Name | Type | Description | Notes
225
+ ------------- | ------------- | ------------- | -------------
226
+ **token** | **String**| bot&#39;s token to authorize the request |
227
+ **body** | [**SendContactBody**](SendContactBody.md)| | [optional]
228
+
229
+ ### Return type
230
+
231
+ [**ResponseMessage**](ResponseMessage.md)
232
+
233
+ ### Authorization
234
+
235
+ No authorization required
236
+
237
+ ### HTTP request headers
238
+
239
+ - **Content-Type**: application/json
240
+ - **Accept**: application/json
241
+
242
+
243
+
244
+ # **send_document**
245
+ > ResponseMessage send_document(token, chat_id, document, opts)
246
+
247
+
248
+
249
+
250
+
251
+ ### Example
252
+ ```ruby
253
+ # load the gem
254
+ require 'teleswagger'
255
+
256
+ api_instance = Teleswagger::AttachmentsApi.new
257
+
258
+ token = "token_example" # String | bot's token to authorize the request
259
+
260
+ chat_id = "chat_id_example" # String |
261
+
262
+ document = File.new("/path/to/file.txt") # File |
263
+
264
+ opts = {
265
+ caption: "caption_example", # String |
266
+ disable_notification: true, # BOOLEAN |
267
+ reply_to_message_id: 56, # Integer |
268
+ reply_markup: "reply_markup_example" # String | json string of reply_markup object
269
+ }
270
+
271
+ begin
272
+ result = api_instance.send_document(token, chat_id, document, opts)
273
+ p result
274
+ rescue Teleswagger::ApiError => e
275
+ puts "Exception when calling AttachmentsApi->send_document: #{e}"
276
+ end
277
+ ```
278
+
279
+ ### Parameters
280
+
281
+ Name | Type | Description | Notes
282
+ ------------- | ------------- | ------------- | -------------
283
+ **token** | **String**| bot&#39;s token to authorize the request |
284
+ **chat_id** | **String**| |
285
+ **document** | **File**| |
286
+ **caption** | **String**| | [optional]
287
+ **disable_notification** | **BOOLEAN**| | [optional]
288
+ **reply_to_message_id** | **Integer**| | [optional]
289
+ **reply_markup** | **String**| json string of reply_markup object | [optional]
290
+
291
+ ### Return type
292
+
293
+ [**ResponseMessage**](ResponseMessage.md)
294
+
295
+ ### Authorization
296
+
297
+ No authorization required
298
+
299
+ ### HTTP request headers
300
+
301
+ - **Content-Type**: multipart/form-data
302
+ - **Accept**: application/json
303
+
304
+
305
+
306
+ # **send_document_link**
307
+ > ResponseMessage send_document_link(token, , opts)
308
+
309
+
310
+
311
+
312
+
313
+ ### Example
314
+ ```ruby
315
+ # load the gem
316
+ require 'teleswagger'
317
+
318
+ api_instance = Teleswagger::AttachmentsApi.new
319
+
320
+ token = "token_example" # String | bot's token to authorize the request
321
+
322
+ opts = {
323
+ body: Teleswagger::SendDocumentLinkBody.new # SendDocumentLinkBody |
324
+ }
325
+
326
+ begin
327
+ result = api_instance.send_document_link(token, , opts)
328
+ p result
329
+ rescue Teleswagger::ApiError => e
330
+ puts "Exception when calling AttachmentsApi->send_document_link: #{e}"
331
+ end
332
+ ```
333
+
334
+ ### Parameters
335
+
336
+ Name | Type | Description | Notes
337
+ ------------- | ------------- | ------------- | -------------
338
+ **token** | **String**| bot&#39;s token to authorize the request |
339
+ **body** | [**SendDocumentLinkBody**](SendDocumentLinkBody.md)| | [optional]
340
+
341
+ ### Return type
342
+
343
+ [**ResponseMessage**](ResponseMessage.md)
344
+
345
+ ### Authorization
346
+
347
+ No authorization required
348
+
349
+ ### HTTP request headers
350
+
351
+ - **Content-Type**: application/json
352
+ - **Accept**: application/json
353
+
354
+
355
+
356
+ # **send_location**
357
+ > ResponseMessage send_location(token, , opts)
358
+
359
+
360
+
361
+
362
+
363
+ ### Example
364
+ ```ruby
365
+ # load the gem
366
+ require 'teleswagger'
367
+
368
+ api_instance = Teleswagger::AttachmentsApi.new
369
+
370
+ token = "token_example" # String | bot's token to authorize the request
371
+
372
+ opts = {
373
+ body: Teleswagger::SendLocationBody.new # SendLocationBody |
374
+ }
375
+
376
+ begin
377
+ result = api_instance.send_location(token, , opts)
378
+ p result
379
+ rescue Teleswagger::ApiError => e
380
+ puts "Exception when calling AttachmentsApi->send_location: #{e}"
381
+ end
382
+ ```
383
+
384
+ ### Parameters
385
+
386
+ Name | Type | Description | Notes
387
+ ------------- | ------------- | ------------- | -------------
388
+ **token** | **String**| bot&#39;s token to authorize the request |
389
+ **body** | [**SendLocationBody**](SendLocationBody.md)| | [optional]
390
+
391
+ ### Return type
392
+
393
+ [**ResponseMessage**](ResponseMessage.md)
394
+
395
+ ### Authorization
396
+
397
+ No authorization required
398
+
399
+ ### HTTP request headers
400
+
401
+ - **Content-Type**: application/json
402
+ - **Accept**: application/json
403
+
404
+
405
+
406
+ # **send_photo**
407
+ > ResponseMessage send_photo(token, chat_id, photo, opts)
408
+
409
+
410
+
411
+
412
+
413
+ ### Example
414
+ ```ruby
415
+ # load the gem
416
+ require 'teleswagger'
417
+
418
+ api_instance = Teleswagger::AttachmentsApi.new
419
+
420
+ token = "token_example" # String | bot's token to authorize the request
421
+
422
+ chat_id = "chat_id_example" # String |
423
+
424
+ photo = File.new("/path/to/file.txt") # File |
425
+
426
+ opts = {
427
+ caption: "caption_example", # String |
428
+ disable_notification: true, # BOOLEAN |
429
+ reply_to_message_id: 56, # Integer |
430
+ reply_markup: "reply_markup_example" # String | json string of reply_markup object
431
+ }
432
+
433
+ begin
434
+ result = api_instance.send_photo(token, chat_id, photo, opts)
435
+ p result
436
+ rescue Teleswagger::ApiError => e
437
+ puts "Exception when calling AttachmentsApi->send_photo: #{e}"
438
+ end
439
+ ```
440
+
441
+ ### Parameters
442
+
443
+ Name | Type | Description | Notes
444
+ ------------- | ------------- | ------------- | -------------
445
+ **token** | **String**| bot&#39;s token to authorize the request |
446
+ **chat_id** | **String**| |
447
+ **photo** | **File**| |
448
+ **caption** | **String**| | [optional]
449
+ **disable_notification** | **BOOLEAN**| | [optional]
450
+ **reply_to_message_id** | **Integer**| | [optional]
451
+ **reply_markup** | **String**| json string of reply_markup object | [optional]
452
+
453
+ ### Return type
454
+
455
+ [**ResponseMessage**](ResponseMessage.md)
456
+
457
+ ### Authorization
458
+
459
+ No authorization required
460
+
461
+ ### HTTP request headers
462
+
463
+ - **Content-Type**: multipart/form-data
464
+ - **Accept**: application/json
465
+
466
+
467
+
468
+ # **send_photo_link**
469
+ > ResponseMessage send_photo_link(token, , opts)
470
+
471
+
472
+
473
+
474
+
475
+ ### Example
476
+ ```ruby
477
+ # load the gem
478
+ require 'teleswagger'
479
+
480
+ api_instance = Teleswagger::AttachmentsApi.new
481
+
482
+ token = "token_example" # String | bot's token to authorize the request
483
+
484
+ opts = {
485
+ body: Teleswagger::SendPhotoLinkBody.new # SendPhotoLinkBody |
486
+ }
487
+
488
+ begin
489
+ result = api_instance.send_photo_link(token, , opts)
490
+ p result
491
+ rescue Teleswagger::ApiError => e
492
+ puts "Exception when calling AttachmentsApi->send_photo_link: #{e}"
493
+ end
494
+ ```
495
+
496
+ ### Parameters
497
+
498
+ Name | Type | Description | Notes
499
+ ------------- | ------------- | ------------- | -------------
500
+ **token** | **String**| bot&#39;s token to authorize the request |
501
+ **body** | [**SendPhotoLinkBody**](SendPhotoLinkBody.md)| | [optional]
502
+
503
+ ### Return type
504
+
505
+ [**ResponseMessage**](ResponseMessage.md)
506
+
507
+ ### Authorization
508
+
509
+ No authorization required
510
+
511
+ ### HTTP request headers
512
+
513
+ - **Content-Type**: application/json
514
+ - **Accept**: application/json
515
+
516
+
517
+
518
+ # **send_sticker**
519
+ > ResponseMessage send_sticker(token, chat_id, sticker, opts)
520
+
521
+
522
+
523
+
524
+
525
+ ### Example
526
+ ```ruby
527
+ # load the gem
528
+ require 'teleswagger'
529
+
530
+ api_instance = Teleswagger::AttachmentsApi.new
531
+
532
+ token = "token_example" # String | bot's token to authorize the request
533
+
534
+ chat_id = "chat_id_example" # String |
535
+
536
+ sticker = File.new("/path/to/file.txt") # File |
537
+
538
+ opts = {
539
+ disable_notification: true, # BOOLEAN |
540
+ reply_to_message_id: 56, # Integer |
541
+ reply_markup: "reply_markup_example" # String | json string of reply_markup object
542
+ }
543
+
544
+ begin
545
+ result = api_instance.send_sticker(token, chat_id, sticker, opts)
546
+ p result
547
+ rescue Teleswagger::ApiError => e
548
+ puts "Exception when calling AttachmentsApi->send_sticker: #{e}"
549
+ end
550
+ ```
551
+
552
+ ### Parameters
553
+
554
+ Name | Type | Description | Notes
555
+ ------------- | ------------- | ------------- | -------------
556
+ **token** | **String**| bot&#39;s token to authorize the request |
557
+ **chat_id** | **String**| |
558
+ **sticker** | **File**| |
559
+ **disable_notification** | **BOOLEAN**| | [optional]
560
+ **reply_to_message_id** | **Integer**| | [optional]
561
+ **reply_markup** | **String**| json string of reply_markup object | [optional]
562
+
563
+ ### Return type
564
+
565
+ [**ResponseMessage**](ResponseMessage.md)
566
+
567
+ ### Authorization
568
+
569
+ No authorization required
570
+
571
+ ### HTTP request headers
572
+
573
+ - **Content-Type**: multipart/form-data
574
+ - **Accept**: application/json
575
+
576
+
577
+
578
+ # **send_sticker_link**
579
+ > ResponseMessage send_sticker_link(token, , opts)
580
+
581
+
582
+
583
+
584
+
585
+ ### Example
586
+ ```ruby
587
+ # load the gem
588
+ require 'teleswagger'
589
+
590
+ api_instance = Teleswagger::AttachmentsApi.new
591
+
592
+ token = "token_example" # String | bot's token to authorize the request
593
+
594
+ opts = {
595
+ body: Teleswagger::SendStickerLinkBody.new # SendStickerLinkBody |
596
+ }
597
+
598
+ begin
599
+ result = api_instance.send_sticker_link(token, , opts)
600
+ p result
601
+ rescue Teleswagger::ApiError => e
602
+ puts "Exception when calling AttachmentsApi->send_sticker_link: #{e}"
603
+ end
604
+ ```
605
+
606
+ ### Parameters
607
+
608
+ Name | Type | Description | Notes
609
+ ------------- | ------------- | ------------- | -------------
610
+ **token** | **String**| bot&#39;s token to authorize the request |
611
+ **body** | [**SendStickerLinkBody**](SendStickerLinkBody.md)| | [optional]
612
+
613
+ ### Return type
614
+
615
+ [**ResponseMessage**](ResponseMessage.md)
616
+
617
+ ### Authorization
618
+
619
+ No authorization required
620
+
621
+ ### HTTP request headers
622
+
623
+ - **Content-Type**: application/json
624
+ - **Accept**: application/json
625
+
626
+
627
+
628
+ # **send_venue**
629
+ > ResponseMessage send_venue(token, , opts)
630
+
631
+
632
+
633
+
634
+
635
+ ### Example
636
+ ```ruby
637
+ # load the gem
638
+ require 'teleswagger'
639
+
640
+ api_instance = Teleswagger::AttachmentsApi.new
641
+
642
+ token = "token_example" # String | bot's token to authorize the request
643
+
644
+ opts = {
645
+ body: Teleswagger::SendVenueBody.new # SendVenueBody |
646
+ }
647
+
648
+ begin
649
+ result = api_instance.send_venue(token, , opts)
650
+ p result
651
+ rescue Teleswagger::ApiError => e
652
+ puts "Exception when calling AttachmentsApi->send_venue: #{e}"
653
+ end
654
+ ```
655
+
656
+ ### Parameters
657
+
658
+ Name | Type | Description | Notes
659
+ ------------- | ------------- | ------------- | -------------
660
+ **token** | **String**| bot&#39;s token to authorize the request |
661
+ **body** | [**SendVenueBody**](SendVenueBody.md)| | [optional]
662
+
663
+ ### Return type
664
+
665
+ [**ResponseMessage**](ResponseMessage.md)
666
+
667
+ ### Authorization
668
+
669
+ No authorization required
670
+
671
+ ### HTTP request headers
672
+
673
+ - **Content-Type**: application/json
674
+ - **Accept**: application/json
675
+
676
+
677
+
678
+ # **send_video**
679
+ > ResponseMessage send_video(token, chat_id, video, opts)
680
+
681
+
682
+
683
+
684
+
685
+ ### Example
686
+ ```ruby
687
+ # load the gem
688
+ require 'teleswagger'
689
+
690
+ api_instance = Teleswagger::AttachmentsApi.new
691
+
692
+ token = "token_example" # String | bot's token to authorize the request
693
+
694
+ chat_id = "chat_id_example" # String |
695
+
696
+ video = File.new("/path/to/file.txt") # File |
697
+
698
+ opts = {
699
+ duration: 56, # Integer |
700
+ width: 56, # Integer |
701
+ height: 56, # Integer |
702
+ caption: "caption_example", # String |
703
+ disable_notification: true, # BOOLEAN |
704
+ reply_to_message_id: 56, # Integer |
705
+ reply_markup: "reply_markup_example" # String | json string of reply_markup object
706
+ }
707
+
708
+ begin
709
+ result = api_instance.send_video(token, chat_id, video, opts)
710
+ p result
711
+ rescue Teleswagger::ApiError => e
712
+ puts "Exception when calling AttachmentsApi->send_video: #{e}"
713
+ end
714
+ ```
715
+
716
+ ### Parameters
717
+
718
+ Name | Type | Description | Notes
719
+ ------------- | ------------- | ------------- | -------------
720
+ **token** | **String**| bot&#39;s token to authorize the request |
721
+ **chat_id** | **String**| |
722
+ **video** | **File**| |
723
+ **duration** | **Integer**| | [optional]
724
+ **width** | **Integer**| | [optional]
725
+ **height** | **Integer**| | [optional]
726
+ **caption** | **String**| | [optional]
727
+ **disable_notification** | **BOOLEAN**| | [optional]
728
+ **reply_to_message_id** | **Integer**| | [optional]
729
+ **reply_markup** | **String**| json string of reply_markup object | [optional]
730
+
731
+ ### Return type
732
+
733
+ [**ResponseMessage**](ResponseMessage.md)
734
+
735
+ ### Authorization
736
+
737
+ No authorization required
738
+
739
+ ### HTTP request headers
740
+
741
+ - **Content-Type**: multipart/form-data
742
+ - **Accept**: application/json
743
+
744
+
745
+
746
+ # **send_video_link**
747
+ > ResponseMessage send_video_link(token, , opts)
748
+
749
+
750
+
751
+
752
+
753
+ ### Example
754
+ ```ruby
755
+ # load the gem
756
+ require 'teleswagger'
757
+
758
+ api_instance = Teleswagger::AttachmentsApi.new
759
+
760
+ token = "token_example" # String | bot's token to authorize the request
761
+
762
+ opts = {
763
+ body: Teleswagger::SendVideoLinkBody.new # SendVideoLinkBody |
764
+ }
765
+
766
+ begin
767
+ result = api_instance.send_video_link(token, , opts)
768
+ p result
769
+ rescue Teleswagger::ApiError => e
770
+ puts "Exception when calling AttachmentsApi->send_video_link: #{e}"
771
+ end
772
+ ```
773
+
774
+ ### Parameters
775
+
776
+ Name | Type | Description | Notes
777
+ ------------- | ------------- | ------------- | -------------
778
+ **token** | **String**| bot&#39;s token to authorize the request |
779
+ **body** | [**SendVideoLinkBody**](SendVideoLinkBody.md)| | [optional]
780
+
781
+ ### Return type
782
+
783
+ [**ResponseMessage**](ResponseMessage.md)
784
+
785
+ ### Authorization
786
+
787
+ No authorization required
788
+
789
+ ### HTTP request headers
790
+
791
+ - **Content-Type**: application/json
792
+ - **Accept**: application/json
793
+
794
+
795
+
796
+ # **send_video_note**
797
+ > ResponseMessage send_video_note(token, chat_id, video_note, opts)
798
+
799
+
800
+
801
+
802
+
803
+ ### Example
804
+ ```ruby
805
+ # load the gem
806
+ require 'teleswagger'
807
+
808
+ api_instance = Teleswagger::AttachmentsApi.new
809
+
810
+ token = "token_example" # String | bot's token to authorize the request
811
+
812
+ chat_id = "chat_id_example" # String |
813
+
814
+ video_note = File.new("/path/to/file.txt") # File |
815
+
816
+ opts = {
817
+ duration: 56, # Integer |
818
+ length: 56, # Integer |
819
+ disable_notification: true, # BOOLEAN |
820
+ reply_to_message_id: 56, # Integer |
821
+ reply_markup: "reply_markup_example" # String | json string of reply_markup object
822
+ }
823
+
824
+ begin
825
+ result = api_instance.send_video_note(token, chat_id, video_note, opts)
826
+ p result
827
+ rescue Teleswagger::ApiError => e
828
+ puts "Exception when calling AttachmentsApi->send_video_note: #{e}"
829
+ end
830
+ ```
831
+
832
+ ### Parameters
833
+
834
+ Name | Type | Description | Notes
835
+ ------------- | ------------- | ------------- | -------------
836
+ **token** | **String**| bot&#39;s token to authorize the request |
837
+ **chat_id** | **String**| |
838
+ **video_note** | **File**| |
839
+ **duration** | **Integer**| | [optional]
840
+ **length** | **Integer**| | [optional]
841
+ **disable_notification** | **BOOLEAN**| | [optional]
842
+ **reply_to_message_id** | **Integer**| | [optional]
843
+ **reply_markup** | **String**| json string of reply_markup object | [optional]
844
+
845
+ ### Return type
846
+
847
+ [**ResponseMessage**](ResponseMessage.md)
848
+
849
+ ### Authorization
850
+
851
+ No authorization required
852
+
853
+ ### HTTP request headers
854
+
855
+ - **Content-Type**: multipart/form-data
856
+ - **Accept**: application/json
857
+
858
+
859
+
860
+ # **send_video_note_link**
861
+ > ResponseMessage send_video_note_link(token, , opts)
862
+
863
+
864
+
865
+
866
+
867
+ ### Example
868
+ ```ruby
869
+ # load the gem
870
+ require 'teleswagger'
871
+
872
+ api_instance = Teleswagger::AttachmentsApi.new
873
+
874
+ token = "token_example" # String | bot's token to authorize the request
875
+
876
+ opts = {
877
+ body: Teleswagger::SendVideoNoteLinkBody.new # SendVideoNoteLinkBody |
878
+ }
879
+
880
+ begin
881
+ result = api_instance.send_video_note_link(token, , opts)
882
+ p result
883
+ rescue Teleswagger::ApiError => e
884
+ puts "Exception when calling AttachmentsApi->send_video_note_link: #{e}"
885
+ end
886
+ ```
887
+
888
+ ### Parameters
889
+
890
+ Name | Type | Description | Notes
891
+ ------------- | ------------- | ------------- | -------------
892
+ **token** | **String**| bot&#39;s token to authorize the request |
893
+ **body** | [**SendVideoNoteLinkBody**](SendVideoNoteLinkBody.md)| | [optional]
894
+
895
+ ### Return type
896
+
897
+ [**ResponseMessage**](ResponseMessage.md)
898
+
899
+ ### Authorization
900
+
901
+ No authorization required
902
+
903
+ ### HTTP request headers
904
+
905
+ - **Content-Type**: application/json
906
+ - **Accept**: application/json
907
+
908
+
909
+
910
+ # **send_voice**
911
+ > ResponseMessage send_voice(token, chat_id, voice, opts)
912
+
913
+
914
+
915
+
916
+
917
+ ### Example
918
+ ```ruby
919
+ # load the gem
920
+ require 'teleswagger'
921
+
922
+ api_instance = Teleswagger::AttachmentsApi.new
923
+
924
+ token = "token_example" # String | bot's token to authorize the request
925
+
926
+ chat_id = "chat_id_example" # String |
927
+
928
+ voice = File.new("/path/to/file.txt") # File |
929
+
930
+ opts = {
931
+ caption: "caption_example", # String |
932
+ duration: 56, # Integer |
933
+ disable_notification: true, # BOOLEAN |
934
+ reply_to_message_id: 56, # Integer |
935
+ reply_markup: "reply_markup_example" # String | json string of reply_markup object
936
+ }
937
+
938
+ begin
939
+ result = api_instance.send_voice(token, chat_id, voice, opts)
940
+ p result
941
+ rescue Teleswagger::ApiError => e
942
+ puts "Exception when calling AttachmentsApi->send_voice: #{e}"
943
+ end
944
+ ```
945
+
946
+ ### Parameters
947
+
948
+ Name | Type | Description | Notes
949
+ ------------- | ------------- | ------------- | -------------
950
+ **token** | **String**| bot&#39;s token to authorize the request |
951
+ **chat_id** | **String**| |
952
+ **voice** | **File**| |
953
+ **caption** | **String**| | [optional]
954
+ **duration** | **Integer**| | [optional]
955
+ **disable_notification** | **BOOLEAN**| | [optional]
956
+ **reply_to_message_id** | **Integer**| | [optional]
957
+ **reply_markup** | **String**| json string of reply_markup object | [optional]
958
+
959
+ ### Return type
960
+
961
+ [**ResponseMessage**](ResponseMessage.md)
962
+
963
+ ### Authorization
964
+
965
+ No authorization required
966
+
967
+ ### HTTP request headers
968
+
969
+ - **Content-Type**: multipart/form-data
970
+ - **Accept**: application/json
971
+
972
+
973
+
974
+ # **send_voice_link**
975
+ > ResponseMessage send_voice_link(token, , opts)
976
+
977
+
978
+
979
+
980
+
981
+ ### Example
982
+ ```ruby
983
+ # load the gem
984
+ require 'teleswagger'
985
+
986
+ api_instance = Teleswagger::AttachmentsApi.new
987
+
988
+ token = "token_example" # String | bot's token to authorize the request
989
+
990
+ opts = {
991
+ body: Teleswagger::SendVoiceLinkBody.new # SendVoiceLinkBody |
992
+ }
993
+
994
+ begin
995
+ result = api_instance.send_voice_link(token, , opts)
996
+ p result
997
+ rescue Teleswagger::ApiError => e
998
+ puts "Exception when calling AttachmentsApi->send_voice_link: #{e}"
999
+ end
1000
+ ```
1001
+
1002
+ ### Parameters
1003
+
1004
+ Name | Type | Description | Notes
1005
+ ------------- | ------------- | ------------- | -------------
1006
+ **token** | **String**| bot&#39;s token to authorize the request |
1007
+ **body** | [**SendVoiceLinkBody**](SendVoiceLinkBody.md)| | [optional]
1008
+
1009
+ ### Return type
1010
+
1011
+ [**ResponseMessage**](ResponseMessage.md)
1012
+
1013
+ ### Authorization
1014
+
1015
+ No authorization required
1016
+
1017
+ ### HTTP request headers
1018
+
1019
+ - **Content-Type**: application/json
1020
+ - **Accept**: application/json
1021
+
1022
+
1023
+