teleswagger 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,13 @@
1
+ # Teleswagger::Audio
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **file_id** | **String** | | [optional]
7
+ **duration** | **Integer** | | [optional]
8
+ **performer** | **String** | | [optional]
9
+ **title** | **String** | | [optional]
10
+ **mime_type** | **String** | | [optional]
11
+ **file_size** | **Integer** | | [optional]
12
+
13
+
@@ -0,0 +1,7 @@
1
+ # Teleswagger::CallbackGame
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
7
+
@@ -0,0 +1,14 @@
1
+ # Teleswagger::CallbackQuery
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | | [optional]
7
+ **from** | [**User**](User.md) | | [optional]
8
+ **message** | [**Message**](Message.md) | | [optional]
9
+ **inline_message_id** | **String** | | [optional]
10
+ **chat_instance** | **String** | | [optional]
11
+ **data** | **String** | | [optional]
12
+ **game_short_name** | **String** | | [optional]
13
+
14
+
@@ -0,0 +1,70 @@
1
+ # Teleswagger::CallbacksApi
2
+
3
+ All URIs are relative to *https://api.telegram.org*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**answer_callback_query**](CallbacksApi.md#answer_callback_query) | **POST** /bot{token}/answerCallbackQuery |
8
+
9
+
10
+ # **answer_callback_query**
11
+ > ResponseBool answer_callback_query(token, callback_query_id, text, show_alert, url, cache_time)
12
+
13
+
14
+
15
+
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'teleswagger'
21
+
22
+ api_instance = Teleswagger::CallbacksApi.new
23
+
24
+ token = "token_example" # String | bot's token to authorize the request
25
+
26
+ callback_query_id = "callback_query_id_example" # String |
27
+
28
+ text = "text_example" # String |
29
+
30
+ show_alert = true # BOOLEAN |
31
+
32
+ url = "url_example" # String |
33
+
34
+ cache_time = 56 # Integer |
35
+
36
+
37
+ begin
38
+ result = api_instance.answer_callback_query(token, callback_query_id, text, show_alert, url, cache_time)
39
+ p result
40
+ rescue Teleswagger::ApiError => e
41
+ puts "Exception when calling CallbacksApi->answer_callback_query: #{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
+ **callback_query_id** | **String**| |
51
+ **text** | **String**| |
52
+ **show_alert** | **BOOLEAN**| |
53
+ **url** | **String**| |
54
+ **cache_time** | **Integer**| |
55
+
56
+ ### Return type
57
+
58
+ [**ResponseBool**](ResponseBool.md)
59
+
60
+ ### Authorization
61
+
62
+ No authorization required
63
+
64
+ ### HTTP request headers
65
+
66
+ - **Content-Type**: application/x-www-form-urlencoded
67
+ - **Accept**: application/json
68
+
69
+
70
+
@@ -0,0 +1,18 @@
1
+ # Teleswagger::Chat
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | |
7
+ **type** | **String** | |
8
+ **title** | **String** | | [optional]
9
+ **username** | **String** | | [optional]
10
+ **first_name** | **String** | | [optional]
11
+ **last_name** | **String** | | [optional]
12
+ **all_members_are_administrators** | **BOOLEAN** | | [optional]
13
+ **photo** | [**ChatPhoto**](ChatPhoto.md) | | [optional]
14
+ **description** | **String** | | [optional]
15
+ **invite_link** | **String** | | [optional]
16
+ **pinned_message** | [**Message**](Message.md) | | [optional]
17
+
18
+
@@ -0,0 +1,23 @@
1
+ # Teleswagger::ChatMember
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **user** | [**User**](User.md) | |
7
+ **status** | **String** | |
8
+ **until_date** | **Integer** | | [optional]
9
+ **can_be_edited** | **BOOLEAN** | | [optional]
10
+ **can_change_info** | **BOOLEAN** | | [optional]
11
+ **can_post_messages** | **BOOLEAN** | | [optional]
12
+ **can_edit_messages** | **BOOLEAN** | | [optional]
13
+ **can_delete_messages** | **BOOLEAN** | | [optional]
14
+ **can_invite_users** | **BOOLEAN** | | [optional]
15
+ **can_restrict_members** | **BOOLEAN** | | [optional]
16
+ **can_pin_messages** | **BOOLEAN** | | [optional]
17
+ **can_promote_members** | **BOOLEAN** | | [optional]
18
+ **can_send_messages** | **BOOLEAN** | | [optional]
19
+ **can_send_media_messages** | **BOOLEAN** | | [optional]
20
+ **can_send_other_messages** | **BOOLEAN** | | [optional]
21
+ **can_add_web_page_previews** | **BOOLEAN** | | [optional]
22
+
23
+
@@ -0,0 +1,9 @@
1
+ # Teleswagger::ChatPhoto
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **small_file_id** | **String** | | [optional]
7
+ **big_file_id** | **String** | | [optional]
8
+
9
+
@@ -0,0 +1,890 @@
1
+ # Teleswagger::ChatsApi
2
+
3
+ All URIs are relative to *https://api.telegram.org*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**delete_chat_photo**](ChatsApi.md#delete_chat_photo) | **POST** /bot{token}/deleteChatPhoto |
8
+ [**export_chat_invite_link**](ChatsApi.md#export_chat_invite_link) | **GET** /bot{token}/exportChatInviteLink |
9
+ [**get_chat**](ChatsApi.md#get_chat) | **GET** /bot{token}/getChat |
10
+ [**get_chat_administrators**](ChatsApi.md#get_chat_administrators) | **GET** /bot{token}/getChatAdministrators |
11
+ [**get_chat_member**](ChatsApi.md#get_chat_member) | **GET** /bot{token}/getChatMember |
12
+ [**get_chat_members_count**](ChatsApi.md#get_chat_members_count) | **GET** /bot{token}/getChatMembersCount |
13
+ [**kick_chat_member**](ChatsApi.md#kick_chat_member) | **GET** /bot{token}/kickChatMember |
14
+ [**leave_chat**](ChatsApi.md#leave_chat) | **GET** /bot{token}/leaveChat |
15
+ [**pin_chat_message**](ChatsApi.md#pin_chat_message) | **POST** /bot{token}/pinChatMessage |
16
+ [**promote_chat_member**](ChatsApi.md#promote_chat_member) | **POST** /bot{token}/promoteChatMember |
17
+ [**restrict_chat_member**](ChatsApi.md#restrict_chat_member) | **POST** /bot{token}/restrictChatMember |
18
+ [**send_chat_action**](ChatsApi.md#send_chat_action) | **GET** /bot{token}/sendChatAction |
19
+ [**set_chat_description**](ChatsApi.md#set_chat_description) | **POST** /bot{token}/setChatDescription |
20
+ [**set_chat_photo**](ChatsApi.md#set_chat_photo) | **GET** /bot{token}/setChatPhoto |
21
+ [**set_chat_title**](ChatsApi.md#set_chat_title) | **POST** /bot{token}/setChatTitle |
22
+ [**unban_chat_member**](ChatsApi.md#unban_chat_member) | **GET** /bot{token}/unbanChatMember |
23
+ [**unpin_chat_message**](ChatsApi.md#unpin_chat_message) | **POST** /bot{token}/unpinChatMessage |
24
+
25
+
26
+ # **delete_chat_photo**
27
+ > ResponseBool delete_chat_photo(token, chat_id)
28
+
29
+
30
+
31
+
32
+
33
+ ### Example
34
+ ```ruby
35
+ # load the gem
36
+ require 'teleswagger'
37
+
38
+ api_instance = Teleswagger::ChatsApi.new
39
+
40
+ token = "token_example" # String | bot's token to authorize the request
41
+
42
+ chat_id = "chat_id_example" # String |
43
+
44
+
45
+ begin
46
+ result = api_instance.delete_chat_photo(token, chat_id)
47
+ p result
48
+ rescue Teleswagger::ApiError => e
49
+ puts "Exception when calling ChatsApi->delete_chat_photo: #{e}"
50
+ end
51
+ ```
52
+
53
+ ### Parameters
54
+
55
+ Name | Type | Description | Notes
56
+ ------------- | ------------- | ------------- | -------------
57
+ **token** | **String**| bot's token to authorize the request |
58
+ **chat_id** | **String**| |
59
+
60
+ ### Return type
61
+
62
+ [**ResponseBool**](ResponseBool.md)
63
+
64
+ ### Authorization
65
+
66
+ No authorization required
67
+
68
+ ### HTTP request headers
69
+
70
+ - **Content-Type**: application/json
71
+ - **Accept**: application/json
72
+
73
+
74
+
75
+ # **export_chat_invite_link**
76
+ > String export_chat_invite_link(token, chat_id)
77
+
78
+
79
+
80
+
81
+
82
+ ### Example
83
+ ```ruby
84
+ # load the gem
85
+ require 'teleswagger'
86
+
87
+ api_instance = Teleswagger::ChatsApi.new
88
+
89
+ token = "token_example" # String | bot's token to authorize the request
90
+
91
+ chat_id = "chat_id_example" # String |
92
+
93
+
94
+ begin
95
+ result = api_instance.export_chat_invite_link(token, chat_id)
96
+ p result
97
+ rescue Teleswagger::ApiError => e
98
+ puts "Exception when calling ChatsApi->export_chat_invite_link: #{e}"
99
+ end
100
+ ```
101
+
102
+ ### Parameters
103
+
104
+ Name | Type | Description | Notes
105
+ ------------- | ------------- | ------------- | -------------
106
+ **token** | **String**| bot's token to authorize the request |
107
+ **chat_id** | **String**| |
108
+
109
+ ### Return type
110
+
111
+ **String**
112
+
113
+ ### Authorization
114
+
115
+ No authorization required
116
+
117
+ ### HTTP request headers
118
+
119
+ - **Content-Type**: application/json
120
+ - **Accept**: application/json
121
+
122
+
123
+
124
+ # **get_chat**
125
+ > InlineResponse2003 get_chat(token, chat_id)
126
+
127
+
128
+
129
+
130
+
131
+ ### Example
132
+ ```ruby
133
+ # load the gem
134
+ require 'teleswagger'
135
+
136
+ api_instance = Teleswagger::ChatsApi.new
137
+
138
+ token = "token_example" # String | bot's token to authorize the request
139
+
140
+ chat_id = "chat_id_example" # String |
141
+
142
+
143
+ begin
144
+ result = api_instance.get_chat(token, chat_id)
145
+ p result
146
+ rescue Teleswagger::ApiError => e
147
+ puts "Exception when calling ChatsApi->get_chat: #{e}"
148
+ end
149
+ ```
150
+
151
+ ### Parameters
152
+
153
+ Name | Type | Description | Notes
154
+ ------------- | ------------- | ------------- | -------------
155
+ **token** | **String**| bot's token to authorize the request |
156
+ **chat_id** | **String**| |
157
+
158
+ ### Return type
159
+
160
+ [**InlineResponse2003**](InlineResponse2003.md)
161
+
162
+ ### Authorization
163
+
164
+ No authorization required
165
+
166
+ ### HTTP request headers
167
+
168
+ - **Content-Type**: application/json
169
+ - **Accept**: application/json
170
+
171
+
172
+
173
+ # **get_chat_administrators**
174
+ > InlineResponse2004 get_chat_administrators(token, chat_id)
175
+
176
+
177
+
178
+
179
+
180
+ ### Example
181
+ ```ruby
182
+ # load the gem
183
+ require 'teleswagger'
184
+
185
+ api_instance = Teleswagger::ChatsApi.new
186
+
187
+ token = "token_example" # String | bot's token to authorize the request
188
+
189
+ chat_id = "chat_id_example" # String |
190
+
191
+
192
+ begin
193
+ result = api_instance.get_chat_administrators(token, chat_id)
194
+ p result
195
+ rescue Teleswagger::ApiError => e
196
+ puts "Exception when calling ChatsApi->get_chat_administrators: #{e}"
197
+ end
198
+ ```
199
+
200
+ ### Parameters
201
+
202
+ Name | Type | Description | Notes
203
+ ------------- | ------------- | ------------- | -------------
204
+ **token** | **String**| bot's token to authorize the request |
205
+ **chat_id** | **String**| |
206
+
207
+ ### Return type
208
+
209
+ [**InlineResponse2004**](InlineResponse2004.md)
210
+
211
+ ### Authorization
212
+
213
+ No authorization required
214
+
215
+ ### HTTP request headers
216
+
217
+ - **Content-Type**: application/json
218
+ - **Accept**: application/json
219
+
220
+
221
+
222
+ # **get_chat_member**
223
+ > InlineResponse2006 get_chat_member(token, chat_id, user_id)
224
+
225
+
226
+
227
+
228
+
229
+ ### Example
230
+ ```ruby
231
+ # load the gem
232
+ require 'teleswagger'
233
+
234
+ api_instance = Teleswagger::ChatsApi.new
235
+
236
+ token = "token_example" # String | bot's token to authorize the request
237
+
238
+ chat_id = "chat_id_example" # String |
239
+
240
+ user_id = "user_id_example" # String |
241
+
242
+
243
+ begin
244
+ result = api_instance.get_chat_member(token, chat_id, user_id)
245
+ p result
246
+ rescue Teleswagger::ApiError => e
247
+ puts "Exception when calling ChatsApi->get_chat_member: #{e}"
248
+ end
249
+ ```
250
+
251
+ ### Parameters
252
+
253
+ Name | Type | Description | Notes
254
+ ------------- | ------------- | ------------- | -------------
255
+ **token** | **String**| bot's token to authorize the request |
256
+ **chat_id** | **String**| |
257
+ **user_id** | **String**| |
258
+
259
+ ### Return type
260
+
261
+ [**InlineResponse2006**](InlineResponse2006.md)
262
+
263
+ ### Authorization
264
+
265
+ No authorization required
266
+
267
+ ### HTTP request headers
268
+
269
+ - **Content-Type**: application/json
270
+ - **Accept**: application/json
271
+
272
+
273
+
274
+ # **get_chat_members_count**
275
+ > InlineResponse2005 get_chat_members_count(token, chat_id)
276
+
277
+
278
+
279
+
280
+
281
+ ### Example
282
+ ```ruby
283
+ # load the gem
284
+ require 'teleswagger'
285
+
286
+ api_instance = Teleswagger::ChatsApi.new
287
+
288
+ token = "token_example" # String | bot's token to authorize the request
289
+
290
+ chat_id = "chat_id_example" # String |
291
+
292
+
293
+ begin
294
+ result = api_instance.get_chat_members_count(token, chat_id)
295
+ p result
296
+ rescue Teleswagger::ApiError => e
297
+ puts "Exception when calling ChatsApi->get_chat_members_count: #{e}"
298
+ end
299
+ ```
300
+
301
+ ### Parameters
302
+
303
+ Name | Type | Description | Notes
304
+ ------------- | ------------- | ------------- | -------------
305
+ **token** | **String**| bot's token to authorize the request |
306
+ **chat_id** | **String**| |
307
+
308
+ ### Return type
309
+
310
+ [**InlineResponse2005**](InlineResponse2005.md)
311
+
312
+ ### Authorization
313
+
314
+ No authorization required
315
+
316
+ ### HTTP request headers
317
+
318
+ - **Content-Type**: application/json
319
+ - **Accept**: application/json
320
+
321
+
322
+
323
+ # **kick_chat_member**
324
+ > ResponseBool kick_chat_member(token, chat_id, user_id, opts)
325
+
326
+
327
+
328
+
329
+
330
+ ### Example
331
+ ```ruby
332
+ # load the gem
333
+ require 'teleswagger'
334
+
335
+ api_instance = Teleswagger::ChatsApi.new
336
+
337
+ token = "token_example" # String | bot's token to authorize the request
338
+
339
+ chat_id = "chat_id_example" # String |
340
+
341
+ user_id = 56 # Integer |
342
+
343
+ opts = {
344
+ until_date: 56 # Integer |
345
+ }
346
+
347
+ begin
348
+ result = api_instance.kick_chat_member(token, chat_id, user_id, opts)
349
+ p result
350
+ rescue Teleswagger::ApiError => e
351
+ puts "Exception when calling ChatsApi->kick_chat_member: #{e}"
352
+ end
353
+ ```
354
+
355
+ ### Parameters
356
+
357
+ Name | Type | Description | Notes
358
+ ------------- | ------------- | ------------- | -------------
359
+ **token** | **String**| bot's token to authorize the request |
360
+ **chat_id** | **String**| |
361
+ **user_id** | **Integer**| |
362
+ **until_date** | **Integer**| | [optional]
363
+
364
+ ### Return type
365
+
366
+ [**ResponseBool**](ResponseBool.md)
367
+
368
+ ### Authorization
369
+
370
+ No authorization required
371
+
372
+ ### HTTP request headers
373
+
374
+ - **Content-Type**: application/json
375
+ - **Accept**: application/json
376
+
377
+
378
+
379
+ # **leave_chat**
380
+ > ResponseBool leave_chat(token, chat_id)
381
+
382
+
383
+
384
+
385
+
386
+ ### Example
387
+ ```ruby
388
+ # load the gem
389
+ require 'teleswagger'
390
+
391
+ api_instance = Teleswagger::ChatsApi.new
392
+
393
+ token = "token_example" # String | bot's token to authorize the request
394
+
395
+ chat_id = "chat_id_example" # String |
396
+
397
+
398
+ begin
399
+ result = api_instance.leave_chat(token, chat_id)
400
+ p result
401
+ rescue Teleswagger::ApiError => e
402
+ puts "Exception when calling ChatsApi->leave_chat: #{e}"
403
+ end
404
+ ```
405
+
406
+ ### Parameters
407
+
408
+ Name | Type | Description | Notes
409
+ ------------- | ------------- | ------------- | -------------
410
+ **token** | **String**| bot's token to authorize the request |
411
+ **chat_id** | **String**| |
412
+
413
+ ### Return type
414
+
415
+ [**ResponseBool**](ResponseBool.md)
416
+
417
+ ### Authorization
418
+
419
+ No authorization required
420
+
421
+ ### HTTP request headers
422
+
423
+ - **Content-Type**: application/json
424
+ - **Accept**: application/json
425
+
426
+
427
+
428
+ # **pin_chat_message**
429
+ > ResponseBool pin_chat_message(token, chat_id, message_id, opts)
430
+
431
+
432
+
433
+
434
+
435
+ ### Example
436
+ ```ruby
437
+ # load the gem
438
+ require 'teleswagger'
439
+
440
+ api_instance = Teleswagger::ChatsApi.new
441
+
442
+ token = "token_example" # String | bot's token to authorize the request
443
+
444
+ chat_id = "chat_id_example" # String |
445
+
446
+ message_id = 56 # Integer |
447
+
448
+ opts = {
449
+ disable_notification: true # BOOLEAN |
450
+ }
451
+
452
+ begin
453
+ result = api_instance.pin_chat_message(token, chat_id, message_id, opts)
454
+ p result
455
+ rescue Teleswagger::ApiError => e
456
+ puts "Exception when calling ChatsApi->pin_chat_message: #{e}"
457
+ end
458
+ ```
459
+
460
+ ### Parameters
461
+
462
+ Name | Type | Description | Notes
463
+ ------------- | ------------- | ------------- | -------------
464
+ **token** | **String**| bot's token to authorize the request |
465
+ **chat_id** | **String**| |
466
+ **message_id** | **Integer**| |
467
+ **disable_notification** | **BOOLEAN**| | [optional]
468
+
469
+ ### Return type
470
+
471
+ [**ResponseBool**](ResponseBool.md)
472
+
473
+ ### Authorization
474
+
475
+ No authorization required
476
+
477
+ ### HTTP request headers
478
+
479
+ - **Content-Type**: application/json
480
+ - **Accept**: application/json
481
+
482
+
483
+
484
+ # **promote_chat_member**
485
+ > ResponseBool promote_chat_member(token, body)
486
+
487
+
488
+
489
+
490
+
491
+ ### Example
492
+ ```ruby
493
+ # load the gem
494
+ require 'teleswagger'
495
+
496
+ api_instance = Teleswagger::ChatsApi.new
497
+
498
+ token = "token_example" # String | bot's token to authorize the request
499
+
500
+ body = Teleswagger::PromoteChatMemberBody.new # PromoteChatMemberBody |
501
+
502
+
503
+ begin
504
+ result = api_instance.promote_chat_member(token, body)
505
+ p result
506
+ rescue Teleswagger::ApiError => e
507
+ puts "Exception when calling ChatsApi->promote_chat_member: #{e}"
508
+ end
509
+ ```
510
+
511
+ ### Parameters
512
+
513
+ Name | Type | Description | Notes
514
+ ------------- | ------------- | ------------- | -------------
515
+ **token** | **String**| bot's token to authorize the request |
516
+ **body** | [**PromoteChatMemberBody**](PromoteChatMemberBody.md)| |
517
+
518
+ ### Return type
519
+
520
+ [**ResponseBool**](ResponseBool.md)
521
+
522
+ ### Authorization
523
+
524
+ No authorization required
525
+
526
+ ### HTTP request headers
527
+
528
+ - **Content-Type**: application/json
529
+ - **Accept**: application/json
530
+
531
+
532
+
533
+ # **restrict_chat_member**
534
+ > ResponseBool restrict_chat_member(token, body)
535
+
536
+
537
+
538
+
539
+
540
+ ### Example
541
+ ```ruby
542
+ # load the gem
543
+ require 'teleswagger'
544
+
545
+ api_instance = Teleswagger::ChatsApi.new
546
+
547
+ token = "token_example" # String | bot's token to authorize the request
548
+
549
+ body = Teleswagger::RestrictChatMemberBody.new # RestrictChatMemberBody |
550
+
551
+
552
+ begin
553
+ result = api_instance.restrict_chat_member(token, body)
554
+ p result
555
+ rescue Teleswagger::ApiError => e
556
+ puts "Exception when calling ChatsApi->restrict_chat_member: #{e}"
557
+ end
558
+ ```
559
+
560
+ ### Parameters
561
+
562
+ Name | Type | Description | Notes
563
+ ------------- | ------------- | ------------- | -------------
564
+ **token** | **String**| bot's token to authorize the request |
565
+ **body** | [**RestrictChatMemberBody**](RestrictChatMemberBody.md)| |
566
+
567
+ ### Return type
568
+
569
+ [**ResponseBool**](ResponseBool.md)
570
+
571
+ ### Authorization
572
+
573
+ No authorization required
574
+
575
+ ### HTTP request headers
576
+
577
+ - **Content-Type**: application/json
578
+ - **Accept**: application/json
579
+
580
+
581
+
582
+ # **send_chat_action**
583
+ > ResponseBool send_chat_action(token, chat_id, action)
584
+
585
+
586
+
587
+
588
+
589
+ ### Example
590
+ ```ruby
591
+ # load the gem
592
+ require 'teleswagger'
593
+
594
+ api_instance = Teleswagger::ChatsApi.new
595
+
596
+ token = "token_example" # String | bot's token to authorize the request
597
+
598
+ chat_id = "chat_id_example" # String |
599
+
600
+ action = "action_example" # String |
601
+
602
+
603
+ begin
604
+ result = api_instance.send_chat_action(token, chat_id, action)
605
+ p result
606
+ rescue Teleswagger::ApiError => e
607
+ puts "Exception when calling ChatsApi->send_chat_action: #{e}"
608
+ end
609
+ ```
610
+
611
+ ### Parameters
612
+
613
+ Name | Type | Description | Notes
614
+ ------------- | ------------- | ------------- | -------------
615
+ **token** | **String**| bot's token to authorize the request |
616
+ **chat_id** | **String**| |
617
+ **action** | **String**| |
618
+
619
+ ### Return type
620
+
621
+ [**ResponseBool**](ResponseBool.md)
622
+
623
+ ### Authorization
624
+
625
+ No authorization required
626
+
627
+ ### HTTP request headers
628
+
629
+ - **Content-Type**: application/json
630
+ - **Accept**: application/json
631
+
632
+
633
+
634
+ # **set_chat_description**
635
+ > ResponseBool set_chat_description(token, chat_id, description)
636
+
637
+
638
+
639
+
640
+
641
+ ### Example
642
+ ```ruby
643
+ # load the gem
644
+ require 'teleswagger'
645
+
646
+ api_instance = Teleswagger::ChatsApi.new
647
+
648
+ token = "token_example" # String | bot's token to authorize the request
649
+
650
+ chat_id = "chat_id_example" # String |
651
+
652
+ description = "description_example" # String |
653
+
654
+
655
+ begin
656
+ result = api_instance.set_chat_description(token, chat_id, description)
657
+ p result
658
+ rescue Teleswagger::ApiError => e
659
+ puts "Exception when calling ChatsApi->set_chat_description: #{e}"
660
+ end
661
+ ```
662
+
663
+ ### Parameters
664
+
665
+ Name | Type | Description | Notes
666
+ ------------- | ------------- | ------------- | -------------
667
+ **token** | **String**| bot's token to authorize the request |
668
+ **chat_id** | **String**| |
669
+ **description** | **String**| |
670
+
671
+ ### Return type
672
+
673
+ [**ResponseBool**](ResponseBool.md)
674
+
675
+ ### Authorization
676
+
677
+ No authorization required
678
+
679
+ ### HTTP request headers
680
+
681
+ - **Content-Type**: application/json
682
+ - **Accept**: application/json
683
+
684
+
685
+
686
+ # **set_chat_photo**
687
+ > ResponseBool set_chat_photo(token, chat_id, photo)
688
+
689
+
690
+
691
+
692
+
693
+ ### Example
694
+ ```ruby
695
+ # load the gem
696
+ require 'teleswagger'
697
+
698
+ api_instance = Teleswagger::ChatsApi.new
699
+
700
+ token = "token_example" # String | bot's token to authorize the request
701
+
702
+ chat_id = "chat_id_example" # String |
703
+
704
+ photo = File.new("/path/to/file.txt") # File |
705
+
706
+
707
+ begin
708
+ result = api_instance.set_chat_photo(token, chat_id, photo)
709
+ p result
710
+ rescue Teleswagger::ApiError => e
711
+ puts "Exception when calling ChatsApi->set_chat_photo: #{e}"
712
+ end
713
+ ```
714
+
715
+ ### Parameters
716
+
717
+ Name | Type | Description | Notes
718
+ ------------- | ------------- | ------------- | -------------
719
+ **token** | **String**| bot's token to authorize the request |
720
+ **chat_id** | **String**| |
721
+ **photo** | **File**| |
722
+
723
+ ### Return type
724
+
725
+ [**ResponseBool**](ResponseBool.md)
726
+
727
+ ### Authorization
728
+
729
+ No authorization required
730
+
731
+ ### HTTP request headers
732
+
733
+ - **Content-Type**: multipart/form-data
734
+ - **Accept**: application/json
735
+
736
+
737
+
738
+ # **set_chat_title**
739
+ > ResponseBool set_chat_title(token, chat_id, title)
740
+
741
+
742
+
743
+
744
+
745
+ ### Example
746
+ ```ruby
747
+ # load the gem
748
+ require 'teleswagger'
749
+
750
+ api_instance = Teleswagger::ChatsApi.new
751
+
752
+ token = "token_example" # String | bot's token to authorize the request
753
+
754
+ chat_id = "chat_id_example" # String |
755
+
756
+ title = "title_example" # String |
757
+
758
+
759
+ begin
760
+ result = api_instance.set_chat_title(token, chat_id, title)
761
+ p result
762
+ rescue Teleswagger::ApiError => e
763
+ puts "Exception when calling ChatsApi->set_chat_title: #{e}"
764
+ end
765
+ ```
766
+
767
+ ### Parameters
768
+
769
+ Name | Type | Description | Notes
770
+ ------------- | ------------- | ------------- | -------------
771
+ **token** | **String**| bot's token to authorize the request |
772
+ **chat_id** | **String**| |
773
+ **title** | **String**| |
774
+
775
+ ### Return type
776
+
777
+ [**ResponseBool**](ResponseBool.md)
778
+
779
+ ### Authorization
780
+
781
+ No authorization required
782
+
783
+ ### HTTP request headers
784
+
785
+ - **Content-Type**: application/json
786
+ - **Accept**: application/json
787
+
788
+
789
+
790
+ # **unban_chat_member**
791
+ > ResponseBool unban_chat_member(token, chat_id, user_id)
792
+
793
+
794
+
795
+
796
+
797
+ ### Example
798
+ ```ruby
799
+ # load the gem
800
+ require 'teleswagger'
801
+
802
+ api_instance = Teleswagger::ChatsApi.new
803
+
804
+ token = "token_example" # String | bot's token to authorize the request
805
+
806
+ chat_id = "chat_id_example" # String |
807
+
808
+ user_id = "user_id_example" # String |
809
+
810
+
811
+ begin
812
+ result = api_instance.unban_chat_member(token, chat_id, user_id)
813
+ p result
814
+ rescue Teleswagger::ApiError => e
815
+ puts "Exception when calling ChatsApi->unban_chat_member: #{e}"
816
+ end
817
+ ```
818
+
819
+ ### Parameters
820
+
821
+ Name | Type | Description | Notes
822
+ ------------- | ------------- | ------------- | -------------
823
+ **token** | **String**| bot's token to authorize the request |
824
+ **chat_id** | **String**| |
825
+ **user_id** | **String**| |
826
+
827
+ ### Return type
828
+
829
+ [**ResponseBool**](ResponseBool.md)
830
+
831
+ ### Authorization
832
+
833
+ No authorization required
834
+
835
+ ### HTTP request headers
836
+
837
+ - **Content-Type**: application/json
838
+ - **Accept**: application/json
839
+
840
+
841
+
842
+ # **unpin_chat_message**
843
+ > ResponseBool unpin_chat_message(token, chat_id)
844
+
845
+
846
+
847
+
848
+
849
+ ### Example
850
+ ```ruby
851
+ # load the gem
852
+ require 'teleswagger'
853
+
854
+ api_instance = Teleswagger::ChatsApi.new
855
+
856
+ token = "token_example" # String | bot's token to authorize the request
857
+
858
+ chat_id = "chat_id_example" # String |
859
+
860
+
861
+ begin
862
+ result = api_instance.unpin_chat_message(token, chat_id)
863
+ p result
864
+ rescue Teleswagger::ApiError => e
865
+ puts "Exception when calling ChatsApi->unpin_chat_message: #{e}"
866
+ end
867
+ ```
868
+
869
+ ### Parameters
870
+
871
+ Name | Type | Description | Notes
872
+ ------------- | ------------- | ------------- | -------------
873
+ **token** | **String**| bot's token to authorize the request |
874
+ **chat_id** | **String**| |
875
+
876
+ ### Return type
877
+
878
+ [**ResponseBool**](ResponseBool.md)
879
+
880
+ ### Authorization
881
+
882
+ No authorization required
883
+
884
+ ### HTTP request headers
885
+
886
+ - **Content-Type**: application/json
887
+ - **Accept**: application/json
888
+
889
+
890
+