teleswagger 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/LICENSE +201 -0
- data/README.md +88 -74
- data/docs/AnswerCallbackQueryBody.md +12 -0
- data/docs/AttachmentsApi.md +166 -3
- data/docs/CallbacksApi.md +6 -18
- data/docs/Chat.md +2 -0
- data/docs/ChatsApi.md +112 -9
- data/docs/EditMessageCaptionBody.md +1 -0
- data/docs/EditMessageLiveLocationBody.md +13 -0
- data/docs/GamesApi.md +5 -5
- data/docs/GetUpdatesBody.md +11 -0
- data/docs/InlineApi.md +1 -1
- data/docs/InlineQueryResultAudio.md +1 -0
- data/docs/InlineQueryResultCachedAudio.md +1 -0
- data/docs/InlineQueryResultCachedDocument.md +1 -0
- data/docs/InlineQueryResultCachedGif.md +1 -0
- data/docs/InlineQueryResultCachedMpeg4Gif.md +1 -0
- data/docs/InlineQueryResultCachedPhoto.md +1 -0
- data/docs/InlineQueryResultCachedVideo.md +1 -0
- data/docs/InlineQueryResultCachedVoice.md +1 -0
- data/docs/InlineQueryResultDocument.md +1 -0
- data/docs/InlineQueryResultGif.md +1 -0
- data/docs/InlineQueryResultLocation.md +1 -0
- data/docs/InlineQueryResultMpeg4Gif.md +1 -0
- data/docs/InlineQueryResultPhoto.md +1 -0
- data/docs/InlineQueryResultVideo.md +1 -0
- data/docs/InlineQueryResultVoice.md +1 -0
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/InputLocationMessageContent.md +1 -0
- data/docs/InputMediaPhoto.md +11 -0
- data/docs/InputMediaVideo.md +15 -0
- data/docs/Message.md +3 -0
- data/docs/MessagesApi.md +7 -7
- data/docs/PaymentsApi.md +1 -1
- data/docs/ReplyKeyboardMarkup.md +1 -1
- data/docs/SendInvoiceBody.md +1 -0
- data/docs/SendLocationBody.md +1 -0
- data/docs/SendMediaGroupLinkBody.md +11 -0
- data/docs/StickersApi.md +3 -3
- data/docs/StopMessageLiveLocationBody.md +11 -0
- data/docs/UpdatesApi.md +4 -8
- data/docs/UsersApi.md +5 -5
- data/git_push.sh +67 -0
- data/lib/teleswagger.rb +20 -2
- data/lib/teleswagger/api/attachments_api.rb +367 -158
- data/lib/teleswagger/api/callbacks_api.rb +29 -47
- data/lib/teleswagger/api/chats_api.rb +316 -192
- data/lib/teleswagger/api/games_api.rb +46 -35
- data/lib/teleswagger/api/inline_api.rb +21 -8
- data/lib/teleswagger/api/messages_api.rb +84 -71
- data/lib/teleswagger/api/payments_api.rb +39 -26
- data/lib/teleswagger/api/stickers_api.rb +107 -116
- data/lib/teleswagger/api/updates_api.rb +50 -39
- data/lib/teleswagger/api/users_api.rb +36 -23
- data/lib/teleswagger/api_client.rb +45 -55
- data/lib/teleswagger/api_error.rb +18 -9
- data/lib/teleswagger/configuration.rb +13 -8
- data/lib/teleswagger/models/add_sticker_to_set_link_body.rb +16 -21
- data/lib/teleswagger/models/allowed_update.rb +15 -2
- data/lib/teleswagger/models/animation.rb +16 -9
- data/lib/teleswagger/models/answer_callback_query_body.rb +235 -0
- data/lib/teleswagger/models/answer_inline_query_body.rb +16 -13
- data/lib/teleswagger/models/answer_shipping_query_body.rb +16 -13
- data/lib/teleswagger/models/audio.rb +16 -5
- data/lib/teleswagger/models/callback_game.rb +16 -5
- data/lib/teleswagger/models/callback_query.rb +16 -5
- data/lib/teleswagger/models/chat.rb +38 -17
- data/lib/teleswagger/models/chat_member.rb +16 -13
- data/lib/teleswagger/models/chat_photo.rb +16 -5
- data/lib/teleswagger/models/chosen_inline_result.rb +16 -17
- data/lib/teleswagger/models/contact.rb +16 -5
- data/lib/teleswagger/models/create_new_sticker_set_link_body.rb +16 -25
- data/lib/teleswagger/models/document.rb +16 -5
- data/lib/teleswagger/models/edit_message_caption_body.rb +26 -6
- data/lib/teleswagger/models/edit_message_live_location_body.rb +246 -0
- data/lib/teleswagger/models/edit_message_reply_markup_body.rb +16 -5
- data/lib/teleswagger/models/edit_message_text_body.rb +16 -9
- data/lib/teleswagger/models/error.rb +16 -5
- data/lib/teleswagger/models/file.rb +16 -5
- data/lib/teleswagger/models/force_reply.rb +16 -5
- data/lib/teleswagger/models/game.rb +16 -17
- data/lib/teleswagger/models/game_high_score.rb +16 -5
- data/lib/teleswagger/models/get_updates_body.rb +228 -0
- data/lib/teleswagger/models/inline_keyboard_button.rb +16 -5
- data/lib/teleswagger/models/inline_keyboard_markup.rb +16 -5
- data/lib/teleswagger/models/inline_query.rb +16 -5
- data/lib/teleswagger/models/inline_query_result_article.rb +16 -21
- data/lib/teleswagger/models/inline_query_result_audio.rb +26 -22
- data/lib/teleswagger/models/inline_query_result_cached_audio.rb +26 -18
- data/lib/teleswagger/models/inline_query_result_cached_document.rb +26 -18
- data/lib/teleswagger/models/inline_query_result_cached_gif.rb +26 -18
- data/lib/teleswagger/models/inline_query_result_cached_mpeg4_gif.rb +26 -18
- data/lib/teleswagger/models/inline_query_result_cached_photo.rb +26 -18
- data/lib/teleswagger/models/inline_query_result_cached_sticker.rb +16 -17
- data/lib/teleswagger/models/inline_query_result_cached_video.rb +26 -18
- data/lib/teleswagger/models/inline_query_result_cached_voice.rb +26 -18
- data/lib/teleswagger/models/inline_query_result_contact.rb +16 -21
- data/lib/teleswagger/models/inline_query_result_document.rb +26 -26
- data/lib/teleswagger/models/inline_query_result_game.rb +16 -17
- data/lib/teleswagger/models/inline_query_result_gif.rb +26 -22
- data/lib/teleswagger/models/inline_query_result_location.rb +50 -24
- data/lib/teleswagger/models/inline_query_result_mpeg4_gif.rb +26 -22
- data/lib/teleswagger/models/inline_query_result_photo.rb +26 -22
- data/lib/teleswagger/models/inline_query_result_venue.rb +16 -29
- data/lib/teleswagger/models/inline_query_result_video.rb +26 -30
- data/lib/teleswagger/models/inline_query_result_voice.rb +26 -22
- data/lib/teleswagger/models/inline_response_200.rb +17 -6
- data/lib/teleswagger/models/inline_response_200_1.rb +17 -6
- data/lib/teleswagger/models/inline_response_200_2.rb +20 -7
- data/lib/teleswagger/models/inline_response_200_3.rb +17 -6
- data/lib/teleswagger/models/inline_response_200_4.rb +18 -9
- data/lib/teleswagger/models/inline_response_200_5.rb +17 -6
- data/lib/teleswagger/models/inline_response_200_6.rb +17 -6
- data/lib/teleswagger/models/inline_response_200_7.rb +17 -6
- data/lib/teleswagger/models/inline_response_200_8.rb +17 -6
- data/lib/teleswagger/models/inline_response_200_9.rb +17 -6
- data/lib/teleswagger/models/inline_type.rb +13 -2
- data/lib/teleswagger/models/input_contact_message_content.rb +16 -13
- data/lib/teleswagger/models/input_location_message_content.rb +51 -13
- data/lib/teleswagger/models/input_media_photo.rb +228 -0
- data/lib/teleswagger/models/input_media_video.rb +264 -0
- data/lib/teleswagger/models/input_text_message_content.rb +16 -9
- data/lib/teleswagger/models/input_venue_message_content.rb +16 -21
- data/lib/teleswagger/models/invoice.rb +16 -5
- data/lib/teleswagger/models/keyboard_button.rb +16 -5
- data/lib/teleswagger/models/labeled_price.rb +16 -5
- data/lib/teleswagger/models/location.rb +16 -5
- data/lib/teleswagger/models/mask_position.rb +16 -5
- data/lib/teleswagger/models/message.rb +49 -9
- data/lib/teleswagger/models/message_entity.rb +16 -5
- data/lib/teleswagger/models/order_info.rb +16 -5
- data/lib/teleswagger/models/parse_mode.rb +13 -2
- data/lib/teleswagger/models/photo_size.rb +16 -5
- data/lib/teleswagger/models/pre_checkout_query.rb +16 -5
- data/lib/teleswagger/models/promote_chat_member_body.rb +16 -13
- data/lib/teleswagger/models/reply_keyboard_markup.rb +17 -6
- data/lib/teleswagger/models/reply_keyboard_remove.rb +16 -5
- data/lib/teleswagger/models/response_bool.rb +16 -5
- data/lib/teleswagger/models/response_message.rb +16 -5
- data/lib/teleswagger/models/response_parameters.rb +16 -5
- data/lib/teleswagger/models/response_update.rb +16 -5
- data/lib/teleswagger/models/restrict_chat_member_body.rb +16 -13
- data/lib/teleswagger/models/send_audio_link_body.rb +16 -13
- data/lib/teleswagger/models/send_contact_body.rb +16 -17
- data/lib/teleswagger/models/send_document_link_body.rb +16 -13
- data/lib/teleswagger/models/send_game_body.rb +16 -13
- data/lib/teleswagger/models/send_invoice_body.rb +26 -38
- data/lib/teleswagger/models/send_location_body.rb +50 -16
- data/lib/teleswagger/models/send_media_group_link_body.rb +230 -0
- data/lib/teleswagger/models/send_message_body.rb +16 -13
- data/lib/teleswagger/models/send_photo_link_body.rb +16 -13
- data/lib/teleswagger/models/send_sticker_link_body.rb +16 -13
- data/lib/teleswagger/models/send_venue_body.rb +16 -25
- data/lib/teleswagger/models/send_video_link_body.rb +16 -13
- data/lib/teleswagger/models/send_video_note_link_body.rb +16 -13
- data/lib/teleswagger/models/send_voice_link_body.rb +16 -13
- data/lib/teleswagger/models/shipping_address.rb +16 -5
- data/lib/teleswagger/models/shipping_option.rb +16 -5
- data/lib/teleswagger/models/shipping_query.rb +16 -5
- data/lib/teleswagger/models/sticker.rb +16 -5
- data/lib/teleswagger/models/sticker_set.rb +16 -5
- data/lib/teleswagger/models/stop_message_live_location_body.rb +226 -0
- data/lib/teleswagger/models/successful_payment.rb +16 -5
- data/lib/teleswagger/models/update.rb +16 -5
- data/lib/teleswagger/models/user.rb +16 -5
- data/lib/teleswagger/models/user_profile_photos.rb +16 -5
- data/lib/teleswagger/models/venue.rb +16 -5
- data/lib/teleswagger/models/video.rb +16 -5
- data/lib/teleswagger/models/video_note.rb +16 -5
- data/lib/teleswagger/models/voice.rb +16 -5
- data/lib/teleswagger/models/webhook_info.rb +16 -17
- data/lib/teleswagger/version.rb +15 -4
- data/spec/models/answer_callback_query_body_spec.rb +77 -0
- data/spec/models/edit_message_live_location_body_spec.rb +83 -0
- data/spec/models/get_updates_body_spec.rb +71 -0
- data/spec/models/input_media_photo_spec.rb +71 -0
- data/spec/models/input_media_video_spec.rb +95 -0
- data/spec/models/send_media_group_link_body_spec.rb +71 -0
- data/spec/models/stop_message_live_location_body_spec.rb +71 -0
- data/swagger.yaml +428 -52
- data/teleswagger.gemspec +17 -8
- metadata +45 -14
@@ -0,0 +1,12 @@
|
|
1
|
+
# Teleswagger::AnswerCallbackQueryBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**callback_query_id** | **String** | | [optional]
|
7
|
+
**text** | **String** | | [optional]
|
8
|
+
**show_alert** | **BOOLEAN** | | [optional]
|
9
|
+
**url** | **String** | | [optional]
|
10
|
+
**cache_time** | **Integer** | | [optional]
|
11
|
+
|
12
|
+
|
data/docs/AttachmentsApi.md
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
# Teleswagger::AttachmentsApi
|
2
2
|
|
3
|
-
All URIs are relative to *https://api.telegram.org
|
3
|
+
All URIs are relative to *https://api.telegram.org/*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**edit_message_live_location**](AttachmentsApi.md#edit_message_live_location) | **POST** /bot{token}/editMessageLiveLocation |
|
7
8
|
[**get_file**](AttachmentsApi.md#get_file) | **GET** /bot{token}/getFile |
|
8
9
|
[**send_audio**](AttachmentsApi.md#send_audio) | **POST** /bot{token}/sendAudio |
|
9
10
|
[**send_audio_link**](AttachmentsApi.md#send_audio_link) | **POST** /bot{token}/sendAudio#link |
|
@@ -11,6 +12,7 @@ Method | HTTP request | Description
|
|
11
12
|
[**send_document**](AttachmentsApi.md#send_document) | **POST** /bot{token}/sendDocument |
|
12
13
|
[**send_document_link**](AttachmentsApi.md#send_document_link) | **POST** /bot{token}/sendDocument#link |
|
13
14
|
[**send_location**](AttachmentsApi.md#send_location) | **POST** /bot{token}/sendLocation |
|
15
|
+
[**send_media_group_link**](AttachmentsApi.md#send_media_group_link) | **POST** /bot{token}/sendMediaGroup#link |
|
14
16
|
[**send_photo**](AttachmentsApi.md#send_photo) | **POST** /bot{token}/sendPhoto |
|
15
17
|
[**send_photo_link**](AttachmentsApi.md#send_photo_link) | **POST** /bot{token}/sendPhoto#link |
|
16
18
|
[**send_sticker**](AttachmentsApi.md#send_sticker) | **POST** /bot{token}/sendSticker |
|
@@ -22,10 +24,61 @@ Method | HTTP request | Description
|
|
22
24
|
[**send_video_note_link**](AttachmentsApi.md#send_video_note_link) | **POST** /bot{token}/sendVideoNote#link |
|
23
25
|
[**send_voice**](AttachmentsApi.md#send_voice) | **POST** /bot{token}/sendVoice |
|
24
26
|
[**send_voice_link**](AttachmentsApi.md#send_voice_link) | **POST** /bot{token}/sendVoice#link |
|
27
|
+
[**stop_message_live_location**](AttachmentsApi.md#stop_message_live_location) | **POST** /bot{token}/stopMessageLiveLocation |
|
28
|
+
|
29
|
+
|
30
|
+
# **edit_message_live_location**
|
31
|
+
> ResponseMessage edit_message_live_location(token, , opts)
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
### Example
|
38
|
+
```ruby
|
39
|
+
# load the gem
|
40
|
+
require 'teleswagger'
|
41
|
+
|
42
|
+
api_instance = Teleswagger::AttachmentsApi.new
|
43
|
+
|
44
|
+
token = "token_example" # String | bot's token to authorize the request
|
45
|
+
|
46
|
+
opts = {
|
47
|
+
body: Teleswagger::EditMessageLiveLocationBody.new # EditMessageLiveLocationBody |
|
48
|
+
}
|
49
|
+
|
50
|
+
begin
|
51
|
+
result = api_instance.edit_message_live_location(token, , opts)
|
52
|
+
p result
|
53
|
+
rescue Teleswagger::ApiError => e
|
54
|
+
puts "Exception when calling AttachmentsApi->edit_message_live_location: #{e}"
|
55
|
+
end
|
56
|
+
```
|
57
|
+
|
58
|
+
### Parameters
|
59
|
+
|
60
|
+
Name | Type | Description | Notes
|
61
|
+
------------- | ------------- | ------------- | -------------
|
62
|
+
**token** | **String**| bot's token to authorize the request |
|
63
|
+
**body** | [**EditMessageLiveLocationBody**](EditMessageLiveLocationBody.md)| | [optional]
|
64
|
+
|
65
|
+
### Return type
|
66
|
+
|
67
|
+
[**ResponseMessage**](ResponseMessage.md)
|
68
|
+
|
69
|
+
### Authorization
|
70
|
+
|
71
|
+
No authorization required
|
72
|
+
|
73
|
+
### HTTP request headers
|
74
|
+
|
75
|
+
- **Content-Type**: application/json
|
76
|
+
- **Accept**: application/json
|
77
|
+
|
25
78
|
|
26
79
|
|
27
80
|
# **get_file**
|
28
|
-
>
|
81
|
+
> InlineResponse2005 get_file(token, file_id)
|
29
82
|
|
30
83
|
|
31
84
|
|
@@ -60,7 +113,7 @@ Name | Type | Description | Notes
|
|
60
113
|
|
61
114
|
### Return type
|
62
115
|
|
63
|
-
[**
|
116
|
+
[**InlineResponse2005**](InlineResponse2005.md)
|
64
117
|
|
65
118
|
### Authorization
|
66
119
|
|
@@ -95,6 +148,7 @@ audio = File.new("/path/to/file.txt") # File |
|
|
95
148
|
|
96
149
|
opts = {
|
97
150
|
caption: "caption_example", # String |
|
151
|
+
parse_mode: "parse_mode_example", # String |
|
98
152
|
duration: 56, # Integer |
|
99
153
|
performer: "performer_example", # String |
|
100
154
|
title: "title_example", # String |
|
@@ -119,6 +173,7 @@ Name | Type | Description | Notes
|
|
119
173
|
**chat_id** | **String**| |
|
120
174
|
**audio** | **File**| |
|
121
175
|
**caption** | **String**| | [optional]
|
176
|
+
**parse_mode** | **String**| | [optional]
|
122
177
|
**duration** | **Integer**| | [optional]
|
123
178
|
**performer** | **String**| | [optional]
|
124
179
|
**title** | **String**| | [optional]
|
@@ -263,6 +318,7 @@ document = File.new("/path/to/file.txt") # File |
|
|
263
318
|
|
264
319
|
opts = {
|
265
320
|
caption: "caption_example", # String |
|
321
|
+
parse_mode: "parse_mode_example", # String |
|
266
322
|
disable_notification: true, # BOOLEAN |
|
267
323
|
reply_to_message_id: 56, # Integer |
|
268
324
|
reply_markup: "reply_markup_example" # String | json string of reply_markup object
|
@@ -284,6 +340,7 @@ Name | Type | Description | Notes
|
|
284
340
|
**chat_id** | **String**| |
|
285
341
|
**document** | **File**| |
|
286
342
|
**caption** | **String**| | [optional]
|
343
|
+
**parse_mode** | **String**| | [optional]
|
287
344
|
**disable_notification** | **BOOLEAN**| | [optional]
|
288
345
|
**reply_to_message_id** | **Integer**| | [optional]
|
289
346
|
**reply_markup** | **String**| json string of reply_markup object | [optional]
|
@@ -403,6 +460,56 @@ No authorization required
|
|
403
460
|
|
404
461
|
|
405
462
|
|
463
|
+
# **send_media_group_link**
|
464
|
+
> ResponseMessage send_media_group_link(token, , opts)
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
### Example
|
471
|
+
```ruby
|
472
|
+
# load the gem
|
473
|
+
require 'teleswagger'
|
474
|
+
|
475
|
+
api_instance = Teleswagger::AttachmentsApi.new
|
476
|
+
|
477
|
+
token = "token_example" # String | bot's token to authorize the request
|
478
|
+
|
479
|
+
opts = {
|
480
|
+
body: Teleswagger::SendMediaGroupLinkBody.new # SendMediaGroupLinkBody |
|
481
|
+
}
|
482
|
+
|
483
|
+
begin
|
484
|
+
result = api_instance.send_media_group_link(token, , opts)
|
485
|
+
p result
|
486
|
+
rescue Teleswagger::ApiError => e
|
487
|
+
puts "Exception when calling AttachmentsApi->send_media_group_link: #{e}"
|
488
|
+
end
|
489
|
+
```
|
490
|
+
|
491
|
+
### Parameters
|
492
|
+
|
493
|
+
Name | Type | Description | Notes
|
494
|
+
------------- | ------------- | ------------- | -------------
|
495
|
+
**token** | **String**| bot's token to authorize the request |
|
496
|
+
**body** | [**SendMediaGroupLinkBody**](SendMediaGroupLinkBody.md)| | [optional]
|
497
|
+
|
498
|
+
### Return type
|
499
|
+
|
500
|
+
[**ResponseMessage**](ResponseMessage.md)
|
501
|
+
|
502
|
+
### Authorization
|
503
|
+
|
504
|
+
No authorization required
|
505
|
+
|
506
|
+
### HTTP request headers
|
507
|
+
|
508
|
+
- **Content-Type**: application/json
|
509
|
+
- **Accept**: application/json
|
510
|
+
|
511
|
+
|
512
|
+
|
406
513
|
# **send_photo**
|
407
514
|
> ResponseMessage send_photo(token, chat_id, photo, opts)
|
408
515
|
|
@@ -425,6 +532,7 @@ photo = File.new("/path/to/file.txt") # File |
|
|
425
532
|
|
426
533
|
opts = {
|
427
534
|
caption: "caption_example", # String |
|
535
|
+
parse_mode: "parse_mode_example", # String |
|
428
536
|
disable_notification: true, # BOOLEAN |
|
429
537
|
reply_to_message_id: 56, # Integer |
|
430
538
|
reply_markup: "reply_markup_example" # String | json string of reply_markup object
|
@@ -446,6 +554,7 @@ Name | Type | Description | Notes
|
|
446
554
|
**chat_id** | **String**| |
|
447
555
|
**photo** | **File**| |
|
448
556
|
**caption** | **String**| | [optional]
|
557
|
+
**parse_mode** | **String**| | [optional]
|
449
558
|
**disable_notification** | **BOOLEAN**| | [optional]
|
450
559
|
**reply_to_message_id** | **Integer**| | [optional]
|
451
560
|
**reply_markup** | **String**| json string of reply_markup object | [optional]
|
@@ -700,6 +809,7 @@ opts = {
|
|
700
809
|
width: 56, # Integer |
|
701
810
|
height: 56, # Integer |
|
702
811
|
caption: "caption_example", # String |
|
812
|
+
parse_mode: "parse_mode_example", # String |
|
703
813
|
disable_notification: true, # BOOLEAN |
|
704
814
|
reply_to_message_id: 56, # Integer |
|
705
815
|
reply_markup: "reply_markup_example" # String | json string of reply_markup object
|
@@ -724,6 +834,7 @@ Name | Type | Description | Notes
|
|
724
834
|
**width** | **Integer**| | [optional]
|
725
835
|
**height** | **Integer**| | [optional]
|
726
836
|
**caption** | **String**| | [optional]
|
837
|
+
**parse_mode** | **String**| | [optional]
|
727
838
|
**disable_notification** | **BOOLEAN**| | [optional]
|
728
839
|
**reply_to_message_id** | **Integer**| | [optional]
|
729
840
|
**reply_markup** | **String**| json string of reply_markup object | [optional]
|
@@ -929,6 +1040,7 @@ voice = File.new("/path/to/file.txt") # File |
|
|
929
1040
|
|
930
1041
|
opts = {
|
931
1042
|
caption: "caption_example", # String |
|
1043
|
+
parse_mode: "parse_mode_example", # String |
|
932
1044
|
duration: 56, # Integer |
|
933
1045
|
disable_notification: true, # BOOLEAN |
|
934
1046
|
reply_to_message_id: 56, # Integer |
|
@@ -951,6 +1063,7 @@ Name | Type | Description | Notes
|
|
951
1063
|
**chat_id** | **String**| |
|
952
1064
|
**voice** | **File**| |
|
953
1065
|
**caption** | **String**| | [optional]
|
1066
|
+
**parse_mode** | **String**| | [optional]
|
954
1067
|
**duration** | **Integer**| | [optional]
|
955
1068
|
**disable_notification** | **BOOLEAN**| | [optional]
|
956
1069
|
**reply_to_message_id** | **Integer**| | [optional]
|
@@ -1021,3 +1134,53 @@ No authorization required
|
|
1021
1134
|
|
1022
1135
|
|
1023
1136
|
|
1137
|
+
# **stop_message_live_location**
|
1138
|
+
> ResponseMessage stop_message_live_location(token, , opts)
|
1139
|
+
|
1140
|
+
|
1141
|
+
|
1142
|
+
|
1143
|
+
|
1144
|
+
### Example
|
1145
|
+
```ruby
|
1146
|
+
# load the gem
|
1147
|
+
require 'teleswagger'
|
1148
|
+
|
1149
|
+
api_instance = Teleswagger::AttachmentsApi.new
|
1150
|
+
|
1151
|
+
token = "token_example" # String | bot's token to authorize the request
|
1152
|
+
|
1153
|
+
opts = {
|
1154
|
+
body: Teleswagger::StopMessageLiveLocationBody.new # StopMessageLiveLocationBody |
|
1155
|
+
}
|
1156
|
+
|
1157
|
+
begin
|
1158
|
+
result = api_instance.stop_message_live_location(token, , opts)
|
1159
|
+
p result
|
1160
|
+
rescue Teleswagger::ApiError => e
|
1161
|
+
puts "Exception when calling AttachmentsApi->stop_message_live_location: #{e}"
|
1162
|
+
end
|
1163
|
+
```
|
1164
|
+
|
1165
|
+
### Parameters
|
1166
|
+
|
1167
|
+
Name | Type | Description | Notes
|
1168
|
+
------------- | ------------- | ------------- | -------------
|
1169
|
+
**token** | **String**| bot's token to authorize the request |
|
1170
|
+
**body** | [**StopMessageLiveLocationBody**](StopMessageLiveLocationBody.md)| | [optional]
|
1171
|
+
|
1172
|
+
### Return type
|
1173
|
+
|
1174
|
+
[**ResponseMessage**](ResponseMessage.md)
|
1175
|
+
|
1176
|
+
### Authorization
|
1177
|
+
|
1178
|
+
No authorization required
|
1179
|
+
|
1180
|
+
### HTTP request headers
|
1181
|
+
|
1182
|
+
- **Content-Type**: application/json
|
1183
|
+
- **Accept**: application/json
|
1184
|
+
|
1185
|
+
|
1186
|
+
|
data/docs/CallbacksApi.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Teleswagger::CallbacksApi
|
2
2
|
|
3
|
-
All URIs are relative to *https://api.telegram.org
|
3
|
+
All URIs are relative to *https://api.telegram.org/*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
@@ -8,7 +8,7 @@ Method | HTTP request | Description
|
|
8
8
|
|
9
9
|
|
10
10
|
# **answer_callback_query**
|
11
|
-
> ResponseBool answer_callback_query(token,
|
11
|
+
> ResponseBool answer_callback_query(token, body)
|
12
12
|
|
13
13
|
|
14
14
|
|
@@ -23,19 +23,11 @@ api_instance = Teleswagger::CallbacksApi.new
|
|
23
23
|
|
24
24
|
token = "token_example" # String | bot's token to authorize the request
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
text = "text_example" # String |
|
29
|
-
|
30
|
-
show_alert = true # BOOLEAN |
|
31
|
-
|
32
|
-
url = "url_example" # String |
|
33
|
-
|
34
|
-
cache_time = 56 # Integer |
|
26
|
+
body = Teleswagger::AnswerCallbackQueryBody.new # AnswerCallbackQueryBody |
|
35
27
|
|
36
28
|
|
37
29
|
begin
|
38
|
-
result = api_instance.answer_callback_query(token,
|
30
|
+
result = api_instance.answer_callback_query(token, body)
|
39
31
|
p result
|
40
32
|
rescue Teleswagger::ApiError => e
|
41
33
|
puts "Exception when calling CallbacksApi->answer_callback_query: #{e}"
|
@@ -47,11 +39,7 @@ end
|
|
47
39
|
Name | Type | Description | Notes
|
48
40
|
------------- | ------------- | ------------- | -------------
|
49
41
|
**token** | **String**| bot's token to authorize the request |
|
50
|
-
**
|
51
|
-
**text** | **String**| |
|
52
|
-
**show_alert** | **BOOLEAN**| |
|
53
|
-
**url** | **String**| |
|
54
|
-
**cache_time** | **Integer**| |
|
42
|
+
**body** | [**AnswerCallbackQueryBody**](AnswerCallbackQueryBody.md)| |
|
55
43
|
|
56
44
|
### Return type
|
57
45
|
|
@@ -63,7 +51,7 @@ No authorization required
|
|
63
51
|
|
64
52
|
### HTTP request headers
|
65
53
|
|
66
|
-
- **Content-Type**: application/
|
54
|
+
- **Content-Type**: application/json
|
67
55
|
- **Accept**: application/json
|
68
56
|
|
69
57
|
|
data/docs/Chat.md
CHANGED
@@ -14,5 +14,7 @@ Name | Type | Description | Notes
|
|
14
14
|
**description** | **String** | | [optional]
|
15
15
|
**invite_link** | **String** | | [optional]
|
16
16
|
**pinned_message** | [**Message**](Message.md) | | [optional]
|
17
|
+
**sticker_set_name** | **String** | | [optional]
|
18
|
+
**can_set_sticker_set** | **BOOLEAN** | | [optional]
|
17
19
|
|
18
20
|
|
data/docs/ChatsApi.md
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
# Teleswagger::ChatsApi
|
2
2
|
|
3
|
-
All URIs are relative to *https://api.telegram.org
|
3
|
+
All URIs are relative to *https://api.telegram.org/*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**delete_chat_photo**](ChatsApi.md#delete_chat_photo) | **POST** /bot{token}/deleteChatPhoto |
|
8
|
+
[**delete_chat_sticker_set**](ChatsApi.md#delete_chat_sticker_set) | **GET** /bot{token}/deleteChatStickerSet |
|
8
9
|
[**export_chat_invite_link**](ChatsApi.md#export_chat_invite_link) | **GET** /bot{token}/exportChatInviteLink |
|
9
10
|
[**get_chat**](ChatsApi.md#get_chat) | **GET** /bot{token}/getChat |
|
10
11
|
[**get_chat_administrators**](ChatsApi.md#get_chat_administrators) | **GET** /bot{token}/getChatAdministrators |
|
@@ -18,6 +19,7 @@ Method | HTTP request | Description
|
|
18
19
|
[**send_chat_action**](ChatsApi.md#send_chat_action) | **GET** /bot{token}/sendChatAction |
|
19
20
|
[**set_chat_description**](ChatsApi.md#set_chat_description) | **POST** /bot{token}/setChatDescription |
|
20
21
|
[**set_chat_photo**](ChatsApi.md#set_chat_photo) | **GET** /bot{token}/setChatPhoto |
|
22
|
+
[**set_chat_sticker_set**](ChatsApi.md#set_chat_sticker_set) | **GET** /bot{token}/setChatStickerSet |
|
21
23
|
[**set_chat_title**](ChatsApi.md#set_chat_title) | **POST** /bot{token}/setChatTitle |
|
22
24
|
[**unban_chat_member**](ChatsApi.md#unban_chat_member) | **GET** /bot{token}/unbanChatMember |
|
23
25
|
[**unpin_chat_message**](ChatsApi.md#unpin_chat_message) | **POST** /bot{token}/unpinChatMessage |
|
@@ -72,6 +74,55 @@ No authorization required
|
|
72
74
|
|
73
75
|
|
74
76
|
|
77
|
+
# **delete_chat_sticker_set**
|
78
|
+
> ResponseBool delete_chat_sticker_set(token, chat_id)
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
### Example
|
85
|
+
```ruby
|
86
|
+
# load the gem
|
87
|
+
require 'teleswagger'
|
88
|
+
|
89
|
+
api_instance = Teleswagger::ChatsApi.new
|
90
|
+
|
91
|
+
token = "token_example" # String | bot's token to authorize the request
|
92
|
+
|
93
|
+
chat_id = "chat_id_example" # String |
|
94
|
+
|
95
|
+
|
96
|
+
begin
|
97
|
+
result = api_instance.delete_chat_sticker_set(token, chat_id)
|
98
|
+
p result
|
99
|
+
rescue Teleswagger::ApiError => e
|
100
|
+
puts "Exception when calling ChatsApi->delete_chat_sticker_set: #{e}"
|
101
|
+
end
|
102
|
+
```
|
103
|
+
|
104
|
+
### Parameters
|
105
|
+
|
106
|
+
Name | Type | Description | Notes
|
107
|
+
------------- | ------------- | ------------- | -------------
|
108
|
+
**token** | **String**| bot's token to authorize the request |
|
109
|
+
**chat_id** | **String**| |
|
110
|
+
|
111
|
+
### Return type
|
112
|
+
|
113
|
+
[**ResponseBool**](ResponseBool.md)
|
114
|
+
|
115
|
+
### Authorization
|
116
|
+
|
117
|
+
No authorization required
|
118
|
+
|
119
|
+
### HTTP request headers
|
120
|
+
|
121
|
+
- **Content-Type**: application/json
|
122
|
+
- **Accept**: application/json
|
123
|
+
|
124
|
+
|
125
|
+
|
75
126
|
# **export_chat_invite_link**
|
76
127
|
> String export_chat_invite_link(token, chat_id)
|
77
128
|
|
@@ -122,7 +173,7 @@ No authorization required
|
|
122
173
|
|
123
174
|
|
124
175
|
# **get_chat**
|
125
|
-
>
|
176
|
+
> InlineResponse2001 get_chat(token, chat_id)
|
126
177
|
|
127
178
|
|
128
179
|
|
@@ -157,7 +208,7 @@ Name | Type | Description | Notes
|
|
157
208
|
|
158
209
|
### Return type
|
159
210
|
|
160
|
-
[**
|
211
|
+
[**InlineResponse2001**](InlineResponse2001.md)
|
161
212
|
|
162
213
|
### Authorization
|
163
214
|
|
@@ -171,7 +222,7 @@ No authorization required
|
|
171
222
|
|
172
223
|
|
173
224
|
# **get_chat_administrators**
|
174
|
-
>
|
225
|
+
> InlineResponse2002 get_chat_administrators(token, chat_id)
|
175
226
|
|
176
227
|
|
177
228
|
|
@@ -206,7 +257,7 @@ Name | Type | Description | Notes
|
|
206
257
|
|
207
258
|
### Return type
|
208
259
|
|
209
|
-
[**
|
260
|
+
[**InlineResponse2002**](InlineResponse2002.md)
|
210
261
|
|
211
262
|
### Authorization
|
212
263
|
|
@@ -220,7 +271,7 @@ No authorization required
|
|
220
271
|
|
221
272
|
|
222
273
|
# **get_chat_member**
|
223
|
-
>
|
274
|
+
> InlineResponse2003 get_chat_member(token, chat_id, user_id)
|
224
275
|
|
225
276
|
|
226
277
|
|
@@ -258,7 +309,7 @@ Name | Type | Description | Notes
|
|
258
309
|
|
259
310
|
### Return type
|
260
311
|
|
261
|
-
[**
|
312
|
+
[**InlineResponse2003**](InlineResponse2003.md)
|
262
313
|
|
263
314
|
### Authorization
|
264
315
|
|
@@ -272,7 +323,7 @@ No authorization required
|
|
272
323
|
|
273
324
|
|
274
325
|
# **get_chat_members_count**
|
275
|
-
>
|
326
|
+
> InlineResponse2004 get_chat_members_count(token, chat_id)
|
276
327
|
|
277
328
|
|
278
329
|
|
@@ -307,7 +358,7 @@ Name | Type | Description | Notes
|
|
307
358
|
|
308
359
|
### Return type
|
309
360
|
|
310
|
-
[**
|
361
|
+
[**InlineResponse2004**](InlineResponse2004.md)
|
311
362
|
|
312
363
|
### Authorization
|
313
364
|
|
@@ -735,6 +786,58 @@ No authorization required
|
|
735
786
|
|
736
787
|
|
737
788
|
|
789
|
+
# **set_chat_sticker_set**
|
790
|
+
> ResponseBool set_chat_sticker_set(token, chat_id, sticker_set_name)
|
791
|
+
|
792
|
+
|
793
|
+
|
794
|
+
|
795
|
+
|
796
|
+
### Example
|
797
|
+
```ruby
|
798
|
+
# load the gem
|
799
|
+
require 'teleswagger'
|
800
|
+
|
801
|
+
api_instance = Teleswagger::ChatsApi.new
|
802
|
+
|
803
|
+
token = "token_example" # String | bot's token to authorize the request
|
804
|
+
|
805
|
+
chat_id = "chat_id_example" # String |
|
806
|
+
|
807
|
+
sticker_set_name = "sticker_set_name_example" # String |
|
808
|
+
|
809
|
+
|
810
|
+
begin
|
811
|
+
result = api_instance.set_chat_sticker_set(token, chat_id, sticker_set_name)
|
812
|
+
p result
|
813
|
+
rescue Teleswagger::ApiError => e
|
814
|
+
puts "Exception when calling ChatsApi->set_chat_sticker_set: #{e}"
|
815
|
+
end
|
816
|
+
```
|
817
|
+
|
818
|
+
### Parameters
|
819
|
+
|
820
|
+
Name | Type | Description | Notes
|
821
|
+
------------- | ------------- | ------------- | -------------
|
822
|
+
**token** | **String**| bot's token to authorize the request |
|
823
|
+
**chat_id** | **String**| |
|
824
|
+
**sticker_set_name** | **String**| |
|
825
|
+
|
826
|
+
### Return type
|
827
|
+
|
828
|
+
[**ResponseBool**](ResponseBool.md)
|
829
|
+
|
830
|
+
### Authorization
|
831
|
+
|
832
|
+
No authorization required
|
833
|
+
|
834
|
+
### HTTP request headers
|
835
|
+
|
836
|
+
- **Content-Type**: application/json
|
837
|
+
- **Accept**: application/json
|
838
|
+
|
839
|
+
|
840
|
+
|
738
841
|
# **set_chat_title**
|
739
842
|
> ResponseBool set_chat_title(token, chat_id, title)
|
740
843
|
|