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,71 @@
|
|
1
|
+
=begin
|
2
|
+
#Telegram bot API
|
3
|
+
|
4
|
+
#This is a swagger defenition for [Telegram bot API](https://core.telegram.org/bots/api).
|
5
|
+
|
6
|
+
OpenAPI spec version: 3.6
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
require 'date'
|
27
|
+
|
28
|
+
# Unit tests for Teleswagger::GetUpdatesBody
|
29
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
30
|
+
# Please update as you see appropriate
|
31
|
+
describe 'GetUpdatesBody' do
|
32
|
+
before do
|
33
|
+
# run before each test
|
34
|
+
@instance = Teleswagger::GetUpdatesBody.new
|
35
|
+
end
|
36
|
+
|
37
|
+
after do
|
38
|
+
# run after each test
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test an instance of GetUpdatesBody' do
|
42
|
+
it 'should create an instact of GetUpdatesBody' do
|
43
|
+
expect(@instance).to be_instance_of(Teleswagger::GetUpdatesBody)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
describe 'test attribute "offset"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "limit"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "timeout"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "allowed_updates"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
71
|
+
|
@@ -0,0 +1,71 @@
|
|
1
|
+
=begin
|
2
|
+
#Telegram bot API
|
3
|
+
|
4
|
+
#This is a swagger defenition for [Telegram bot API](https://core.telegram.org/bots/api).
|
5
|
+
|
6
|
+
OpenAPI spec version: 3.6
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
require 'date'
|
27
|
+
|
28
|
+
# Unit tests for Teleswagger::InputMediaPhoto
|
29
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
30
|
+
# Please update as you see appropriate
|
31
|
+
describe 'InputMediaPhoto' do
|
32
|
+
before do
|
33
|
+
# run before each test
|
34
|
+
@instance = Teleswagger::InputMediaPhoto.new
|
35
|
+
end
|
36
|
+
|
37
|
+
after do
|
38
|
+
# run after each test
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test an instance of InputMediaPhoto' do
|
42
|
+
it 'should create an instact of InputMediaPhoto' do
|
43
|
+
expect(@instance).to be_instance_of(Teleswagger::InputMediaPhoto)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
describe 'test attribute "type"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "media"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "caption"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "parse_mode"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
71
|
+
|
@@ -0,0 +1,95 @@
|
|
1
|
+
=begin
|
2
|
+
#Telegram bot API
|
3
|
+
|
4
|
+
#This is a swagger defenition for [Telegram bot API](https://core.telegram.org/bots/api).
|
5
|
+
|
6
|
+
OpenAPI spec version: 3.6
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
require 'date'
|
27
|
+
|
28
|
+
# Unit tests for Teleswagger::InputMediaVideo
|
29
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
30
|
+
# Please update as you see appropriate
|
31
|
+
describe 'InputMediaVideo' do
|
32
|
+
before do
|
33
|
+
# run before each test
|
34
|
+
@instance = Teleswagger::InputMediaVideo.new
|
35
|
+
end
|
36
|
+
|
37
|
+
after do
|
38
|
+
# run after each test
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test an instance of InputMediaVideo' do
|
42
|
+
it 'should create an instact of InputMediaVideo' do
|
43
|
+
expect(@instance).to be_instance_of(Teleswagger::InputMediaVideo)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
describe 'test attribute "type"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "media"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "caption"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "width"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'test attribute "height"' do
|
71
|
+
it 'should work' do
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
describe 'test attribute "duration"' do
|
77
|
+
it 'should work' do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
describe 'test attribute "parse_mode"' do
|
83
|
+
it 'should work' do
|
84
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
describe 'test attribute "supports_streaming"' do
|
89
|
+
it 'should work' do
|
90
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
end
|
95
|
+
|
@@ -0,0 +1,71 @@
|
|
1
|
+
=begin
|
2
|
+
#Telegram bot API
|
3
|
+
|
4
|
+
#This is a swagger defenition for [Telegram bot API](https://core.telegram.org/bots/api).
|
5
|
+
|
6
|
+
OpenAPI spec version: 3.6
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
require 'date'
|
27
|
+
|
28
|
+
# Unit tests for Teleswagger::SendMediaGroupLinkBody
|
29
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
30
|
+
# Please update as you see appropriate
|
31
|
+
describe 'SendMediaGroupLinkBody' do
|
32
|
+
before do
|
33
|
+
# run before each test
|
34
|
+
@instance = Teleswagger::SendMediaGroupLinkBody.new
|
35
|
+
end
|
36
|
+
|
37
|
+
after do
|
38
|
+
# run after each test
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test an instance of SendMediaGroupLinkBody' do
|
42
|
+
it 'should create an instact of SendMediaGroupLinkBody' do
|
43
|
+
expect(@instance).to be_instance_of(Teleswagger::SendMediaGroupLinkBody)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
describe 'test attribute "chat_id"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "media"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "disable_notification"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "reply_to_message_id"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
71
|
+
|
@@ -0,0 +1,71 @@
|
|
1
|
+
=begin
|
2
|
+
#Telegram bot API
|
3
|
+
|
4
|
+
#This is a swagger defenition for [Telegram bot API](https://core.telegram.org/bots/api).
|
5
|
+
|
6
|
+
OpenAPI spec version: 3.6
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
require 'date'
|
27
|
+
|
28
|
+
# Unit tests for Teleswagger::StopMessageLiveLocationBody
|
29
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
30
|
+
# Please update as you see appropriate
|
31
|
+
describe 'StopMessageLiveLocationBody' do
|
32
|
+
before do
|
33
|
+
# run before each test
|
34
|
+
@instance = Teleswagger::StopMessageLiveLocationBody.new
|
35
|
+
end
|
36
|
+
|
37
|
+
after do
|
38
|
+
# run after each test
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test an instance of StopMessageLiveLocationBody' do
|
42
|
+
it 'should create an instact of StopMessageLiveLocationBody' do
|
43
|
+
expect(@instance).to be_instance_of(Teleswagger::StopMessageLiveLocationBody)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
describe 'test attribute "chat_id"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "message_id"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "inline_message_id"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "reply_markup"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
71
|
+
|
data/swagger.yaml
CHANGED
@@ -3,7 +3,7 @@ swagger: "2.0"
|
|
3
3
|
info:
|
4
4
|
description: |
|
5
5
|
This is a swagger defenition for [Telegram bot API](https://core.telegram.org/bots/api).
|
6
|
-
version: "3.
|
6
|
+
version: "3.6"
|
7
7
|
title: Telegram bot API
|
8
8
|
externalDocs:
|
9
9
|
description: Find out more about Telegram bot API
|
@@ -25,7 +25,7 @@ parameters:
|
|
25
25
|
description: bot's token to authorize the request
|
26
26
|
paths:
|
27
27
|
/bot{token}/getUpdates:
|
28
|
-
|
28
|
+
post:
|
29
29
|
tags:
|
30
30
|
- updates
|
31
31
|
description: ""
|
@@ -36,31 +36,11 @@ paths:
|
|
36
36
|
name: offset
|
37
37
|
type: integer
|
38
38
|
required: false
|
39
|
-
- in:
|
40
|
-
name:
|
41
|
-
type: integer
|
42
|
-
required: false
|
43
|
-
- in: query
|
44
|
-
name: timeout
|
45
|
-
type: integer
|
46
|
-
required: false
|
47
|
-
- in: query
|
48
|
-
name: allowed_updates
|
39
|
+
- in: body
|
40
|
+
name: body
|
49
41
|
required: false
|
50
|
-
|
51
|
-
|
52
|
-
items:
|
53
|
-
# go-swagger bug here
|
54
|
-
# cannot use $ref: "#/definitions/AllowedUpdate"
|
55
|
-
type: string
|
56
|
-
enum:
|
57
|
-
- message
|
58
|
-
- edited_message
|
59
|
-
- channel_post
|
60
|
-
- edited_channel_post
|
61
|
-
- inline_query
|
62
|
-
- chosen_inline_result
|
63
|
-
- callback_query
|
42
|
+
schema:
|
43
|
+
$ref: "#/definitions/GetUpdatesBody"
|
64
44
|
responses:
|
65
45
|
200:
|
66
46
|
description: An array of Updates
|
@@ -129,6 +109,8 @@ paths:
|
|
129
109
|
- inline_query
|
130
110
|
- chosen_inline_result
|
131
111
|
- callback_query
|
112
|
+
- shipping_query
|
113
|
+
- pre_checkout_query
|
132
114
|
responses:
|
133
115
|
200:
|
134
116
|
description: Is OK?
|
@@ -443,6 +425,11 @@ paths:
|
|
443
425
|
type: string
|
444
426
|
required: false
|
445
427
|
description: ""
|
428
|
+
- in: formData
|
429
|
+
name: parse_mode
|
430
|
+
type: string
|
431
|
+
required: false
|
432
|
+
description: ""
|
446
433
|
- in: formData
|
447
434
|
name: disable_notification
|
448
435
|
type: boolean
|
@@ -555,6 +542,11 @@ paths:
|
|
555
542
|
type: string
|
556
543
|
required: false
|
557
544
|
description: ""
|
545
|
+
- in: formData
|
546
|
+
name: parse_mode
|
547
|
+
type: string
|
548
|
+
required: false
|
549
|
+
description: ""
|
558
550
|
- in: formData
|
559
551
|
name: duration
|
560
552
|
type: integer
|
@@ -682,6 +674,11 @@ paths:
|
|
682
674
|
type: string
|
683
675
|
required: false
|
684
676
|
description: ""
|
677
|
+
- in: formData
|
678
|
+
name: parse_mode
|
679
|
+
type: string
|
680
|
+
required: false
|
681
|
+
description: ""
|
685
682
|
- in: formData
|
686
683
|
name: disable_notification
|
687
684
|
type: boolean
|
@@ -916,6 +913,11 @@ paths:
|
|
916
913
|
type: string
|
917
914
|
required: false
|
918
915
|
description: ""
|
916
|
+
- in: formData
|
917
|
+
name: parse_mode
|
918
|
+
type: string
|
919
|
+
required: false
|
920
|
+
description: ""
|
919
921
|
- in: formData
|
920
922
|
name: disable_notification
|
921
923
|
type: boolean
|
@@ -1120,6 +1122,49 @@ paths:
|
|
1120
1122
|
description: Internal
|
1121
1123
|
schema:
|
1122
1124
|
$ref: "#/definitions/Error"
|
1125
|
+
/bot{token}/sendMediaGroup#link:
|
1126
|
+
post:
|
1127
|
+
tags:
|
1128
|
+
- attachments
|
1129
|
+
description: ""
|
1130
|
+
operationId: sendMediaGroupLink
|
1131
|
+
parameters:
|
1132
|
+
- $ref: '#/parameters/token'
|
1133
|
+
- in: body
|
1134
|
+
required: false
|
1135
|
+
name: body
|
1136
|
+
description: ""
|
1137
|
+
schema:
|
1138
|
+
$ref: "#/definitions/SendMediaGroupLinkBody"
|
1139
|
+
responses:
|
1140
|
+
200:
|
1141
|
+
description: ""
|
1142
|
+
schema:
|
1143
|
+
$ref: "#/definitions/ResponseMessage"
|
1144
|
+
400:
|
1145
|
+
description: Bad Request
|
1146
|
+
schema:
|
1147
|
+
$ref: "#/definitions/Error"
|
1148
|
+
401:
|
1149
|
+
description: Unauthorized
|
1150
|
+
schema:
|
1151
|
+
$ref: "#/definitions/Error"
|
1152
|
+
403:
|
1153
|
+
description: Forbidden
|
1154
|
+
schema:
|
1155
|
+
$ref: "#/definitions/Error"
|
1156
|
+
404:
|
1157
|
+
description: Not Found
|
1158
|
+
schema:
|
1159
|
+
$ref: "#/definitions/Error"
|
1160
|
+
420:
|
1161
|
+
description: Flood
|
1162
|
+
schema:
|
1163
|
+
$ref: "#/definitions/Error"
|
1164
|
+
500:
|
1165
|
+
description: Internal
|
1166
|
+
schema:
|
1167
|
+
$ref: "#/definitions/Error"
|
1123
1168
|
/bot{token}/sendVoice:
|
1124
1169
|
post:
|
1125
1170
|
tags:
|
@@ -1145,6 +1190,11 @@ paths:
|
|
1145
1190
|
type: string
|
1146
1191
|
required: false
|
1147
1192
|
description: ""
|
1193
|
+
- in: formData
|
1194
|
+
name: parse_mode
|
1195
|
+
type: string
|
1196
|
+
required: false
|
1197
|
+
description: ""
|
1148
1198
|
- in: formData
|
1149
1199
|
name: duration
|
1150
1200
|
type: integer
|
@@ -1280,6 +1330,92 @@ paths:
|
|
1280
1330
|
description: Internal
|
1281
1331
|
schema:
|
1282
1332
|
$ref: "#/definitions/Error"
|
1333
|
+
/bot{token}/editMessageLiveLocation:
|
1334
|
+
post:
|
1335
|
+
tags:
|
1336
|
+
- attachments
|
1337
|
+
description: ""
|
1338
|
+
operationId: editMessageLiveLocation
|
1339
|
+
parameters:
|
1340
|
+
- $ref: '#/parameters/token'
|
1341
|
+
- in: body
|
1342
|
+
name: body
|
1343
|
+
required: false
|
1344
|
+
description: ""
|
1345
|
+
schema:
|
1346
|
+
$ref: "#/definitions/EditMessageLiveLocationBody"
|
1347
|
+
responses:
|
1348
|
+
200:
|
1349
|
+
description: ""
|
1350
|
+
schema:
|
1351
|
+
$ref: "#/definitions/ResponseMessage"
|
1352
|
+
400:
|
1353
|
+
description: Bad Request
|
1354
|
+
schema:
|
1355
|
+
$ref: "#/definitions/Error"
|
1356
|
+
401:
|
1357
|
+
description: Unauthorized
|
1358
|
+
schema:
|
1359
|
+
$ref: "#/definitions/Error"
|
1360
|
+
403:
|
1361
|
+
description: Forbidden
|
1362
|
+
schema:
|
1363
|
+
$ref: "#/definitions/Error"
|
1364
|
+
404:
|
1365
|
+
description: Not Found
|
1366
|
+
schema:
|
1367
|
+
$ref: "#/definitions/Error"
|
1368
|
+
420:
|
1369
|
+
description: Flood
|
1370
|
+
schema:
|
1371
|
+
$ref: "#/definitions/Error"
|
1372
|
+
500:
|
1373
|
+
description: Internal
|
1374
|
+
schema:
|
1375
|
+
$ref: "#/definitions/Error"
|
1376
|
+
/bot{token}/stopMessageLiveLocation:
|
1377
|
+
post:
|
1378
|
+
tags:
|
1379
|
+
- attachments
|
1380
|
+
description: ""
|
1381
|
+
operationId: stopMessageLiveLocation
|
1382
|
+
parameters:
|
1383
|
+
- $ref: '#/parameters/token'
|
1384
|
+
- in: body
|
1385
|
+
name: body
|
1386
|
+
required: false
|
1387
|
+
description: ""
|
1388
|
+
schema:
|
1389
|
+
$ref: "#/definitions/StopMessageLiveLocationBody"
|
1390
|
+
responses:
|
1391
|
+
200:
|
1392
|
+
description: ""
|
1393
|
+
schema:
|
1394
|
+
$ref: "#/definitions/ResponseMessage"
|
1395
|
+
400:
|
1396
|
+
description: Bad Request
|
1397
|
+
schema:
|
1398
|
+
$ref: "#/definitions/Error"
|
1399
|
+
401:
|
1400
|
+
description: Unauthorized
|
1401
|
+
schema:
|
1402
|
+
$ref: "#/definitions/Error"
|
1403
|
+
403:
|
1404
|
+
description: Forbidden
|
1405
|
+
schema:
|
1406
|
+
$ref: "#/definitions/Error"
|
1407
|
+
404:
|
1408
|
+
description: Not Found
|
1409
|
+
schema:
|
1410
|
+
$ref: "#/definitions/Error"
|
1411
|
+
420:
|
1412
|
+
description: Flood
|
1413
|
+
schema:
|
1414
|
+
$ref: "#/definitions/Error"
|
1415
|
+
500:
|
1416
|
+
description: Internal
|
1417
|
+
schema:
|
1418
|
+
$ref: "#/definitions/Error"
|
1283
1419
|
/bot{token}/sendVenue:
|
1284
1420
|
post:
|
1285
1421
|
tags:
|
@@ -1536,6 +1672,7 @@ paths:
|
|
1536
1672
|
description: Internal
|
1537
1673
|
schema:
|
1538
1674
|
$ref: "#/definitions/Error"
|
1675
|
+
|
1539
1676
|
/bot{token}/kickChatMember:
|
1540
1677
|
get:
|
1541
1678
|
tags:
|
@@ -1687,7 +1824,7 @@ paths:
|
|
1687
1824
|
- $ref: '#/parameters/token'
|
1688
1825
|
- in: body
|
1689
1826
|
name: body
|
1690
|
-
schema:
|
1827
|
+
schema:
|
1691
1828
|
$ref: "#/definitions/RestrictChatMemberBody"
|
1692
1829
|
required: true
|
1693
1830
|
description: ""
|
@@ -1730,7 +1867,7 @@ paths:
|
|
1730
1867
|
- $ref: '#/parameters/token'
|
1731
1868
|
- in: body
|
1732
1869
|
name: body
|
1733
|
-
schema:
|
1870
|
+
schema:
|
1734
1871
|
$ref: "#/definitions/PromoteChatMemberBody"
|
1735
1872
|
required: true
|
1736
1873
|
description: ""
|
@@ -2294,39 +2431,104 @@ paths:
|
|
2294
2431
|
description: Internal
|
2295
2432
|
schema:
|
2296
2433
|
$ref: "#/definitions/Error"
|
2297
|
-
/bot{token}/
|
2298
|
-
|
2434
|
+
/bot{token}/setChatStickerSet:
|
2435
|
+
get:
|
2299
2436
|
tags:
|
2300
|
-
-
|
2301
|
-
consumes:
|
2302
|
-
- application/x-www-form-urlencoded
|
2437
|
+
- chats
|
2303
2438
|
description: ""
|
2304
|
-
operationId:
|
2439
|
+
operationId: setChatStickerSet
|
2305
2440
|
parameters:
|
2306
2441
|
- $ref: '#/parameters/token'
|
2307
|
-
- in:
|
2308
|
-
name:
|
2442
|
+
- in: query
|
2443
|
+
name: chat_id
|
2309
2444
|
type: string
|
2310
2445
|
required: true
|
2311
|
-
|
2312
|
-
|
2313
|
-
name: text
|
2446
|
+
- in: query
|
2447
|
+
name: sticker_set_name
|
2314
2448
|
type: string
|
2315
2449
|
required: true
|
2316
|
-
|
2317
|
-
|
2318
|
-
|
2319
|
-
|
2320
|
-
|
2321
|
-
|
2322
|
-
|
2323
|
-
|
2450
|
+
responses:
|
2451
|
+
200:
|
2452
|
+
description: ""
|
2453
|
+
schema:
|
2454
|
+
$ref: "#/definitions/ResponseBool"
|
2455
|
+
400:
|
2456
|
+
description: Bad Request
|
2457
|
+
schema:
|
2458
|
+
$ref: "#/definitions/Error"
|
2459
|
+
401:
|
2460
|
+
description: Unauthorized
|
2461
|
+
schema:
|
2462
|
+
$ref: "#/definitions/Error"
|
2463
|
+
403:
|
2464
|
+
description: Forbidden
|
2465
|
+
schema:
|
2466
|
+
$ref: "#/definitions/Error"
|
2467
|
+
404:
|
2468
|
+
description: Not Found
|
2469
|
+
schema:
|
2470
|
+
$ref: "#/definitions/Error"
|
2471
|
+
420:
|
2472
|
+
description: Flood
|
2473
|
+
schema:
|
2474
|
+
$ref: "#/definitions/Error"
|
2475
|
+
500:
|
2476
|
+
description: Internal
|
2477
|
+
schema:
|
2478
|
+
$ref: "#/definitions/Error"
|
2479
|
+
/bot{token}/deleteChatStickerSet:
|
2480
|
+
get:
|
2481
|
+
tags:
|
2482
|
+
- chats
|
2483
|
+
description: ""
|
2484
|
+
operationId: deleteChatStickerSet
|
2485
|
+
parameters:
|
2486
|
+
- $ref: '#/parameters/token'
|
2487
|
+
- in: query
|
2488
|
+
name: chat_id
|
2324
2489
|
type: string
|
2325
2490
|
required: true
|
2326
|
-
|
2327
|
-
|
2328
|
-
|
2329
|
-
|
2491
|
+
responses:
|
2492
|
+
200:
|
2493
|
+
description: ""
|
2494
|
+
schema:
|
2495
|
+
$ref: "#/definitions/ResponseBool"
|
2496
|
+
400:
|
2497
|
+
description: Bad Request
|
2498
|
+
schema:
|
2499
|
+
$ref: "#/definitions/Error"
|
2500
|
+
401:
|
2501
|
+
description: Unauthorized
|
2502
|
+
schema:
|
2503
|
+
$ref: "#/definitions/Error"
|
2504
|
+
403:
|
2505
|
+
description: Forbidden
|
2506
|
+
schema:
|
2507
|
+
$ref: "#/definitions/Error"
|
2508
|
+
404:
|
2509
|
+
description: Not Found
|
2510
|
+
schema:
|
2511
|
+
$ref: "#/definitions/Error"
|
2512
|
+
420:
|
2513
|
+
description: Flood
|
2514
|
+
schema:
|
2515
|
+
$ref: "#/definitions/Error"
|
2516
|
+
500:
|
2517
|
+
description: Internal
|
2518
|
+
schema:
|
2519
|
+
$ref: "#/definitions/Error"
|
2520
|
+
/bot{token}/answerCallbackQuery:
|
2521
|
+
post:
|
2522
|
+
tags:
|
2523
|
+
- callbacks
|
2524
|
+
description: ""
|
2525
|
+
operationId: answerCallbackQuery
|
2526
|
+
parameters:
|
2527
|
+
- $ref: '#/parameters/token'
|
2528
|
+
- in: body
|
2529
|
+
name: body
|
2530
|
+
schema:
|
2531
|
+
$ref: "#/definitions/AnswerCallbackQueryBody"
|
2330
2532
|
required: true
|
2331
2533
|
description: ""
|
2332
2534
|
responses:
|
@@ -3438,6 +3640,10 @@ definitions:
|
|
3438
3640
|
type: string
|
3439
3641
|
pinned_message:
|
3440
3642
|
$ref: '#/definitions/Message'
|
3643
|
+
sticker_set_name:
|
3644
|
+
type: string
|
3645
|
+
can_set_sticker_set:
|
3646
|
+
type: boolean
|
3441
3647
|
Message:
|
3442
3648
|
type: object
|
3443
3649
|
properties:
|
@@ -3467,6 +3673,10 @@ definitions:
|
|
3467
3673
|
type: array
|
3468
3674
|
items:
|
3469
3675
|
$ref: '#/definitions/MessageEntity'
|
3676
|
+
caption_entities:
|
3677
|
+
type: array
|
3678
|
+
items:
|
3679
|
+
$ref: '#/definitions/MessageEntity'
|
3470
3680
|
audio:
|
3471
3681
|
$ref: '#/definitions/Audio'
|
3472
3682
|
document:
|
@@ -3519,12 +3729,16 @@ definitions:
|
|
3519
3729
|
type: integer
|
3520
3730
|
pinned_message:
|
3521
3731
|
$ref: '#/definitions/Message'
|
3732
|
+
invoice:
|
3733
|
+
$ref: '#/definitions/Invoice'
|
3522
3734
|
successful_payment:
|
3523
3735
|
$ref: '#/definitions/SuccessfulPayment'
|
3524
3736
|
forward_signature:
|
3525
3737
|
type: string
|
3526
3738
|
author_signature:
|
3527
3739
|
type: string
|
3740
|
+
connected_website:
|
3741
|
+
type: string
|
3528
3742
|
MessageEntity:
|
3529
3743
|
type: object
|
3530
3744
|
properties:
|
@@ -3680,7 +3894,9 @@ definitions:
|
|
3680
3894
|
keyboard:
|
3681
3895
|
type: array
|
3682
3896
|
items:
|
3683
|
-
|
3897
|
+
type: array
|
3898
|
+
items:
|
3899
|
+
$ref: '#/definitions/KeyboardButton'
|
3684
3900
|
resize_keyboard:
|
3685
3901
|
type: boolean
|
3686
3902
|
one_time_keyboard:
|
@@ -3723,8 +3939,10 @@ definitions:
|
|
3723
3939
|
type: string
|
3724
3940
|
switch_inline_query:
|
3725
3941
|
type: string
|
3942
|
+
x-nullable: true
|
3726
3943
|
switch_inline_query_current_chat:
|
3727
3944
|
type: string
|
3945
|
+
x-nullable: true
|
3728
3946
|
callback_game:
|
3729
3947
|
$ref: '#/definitions/CallbackGame'
|
3730
3948
|
pay:
|
@@ -3860,6 +4078,10 @@ definitions:
|
|
3860
4078
|
type: number
|
3861
4079
|
longitude:
|
3862
4080
|
type: number
|
4081
|
+
live_period:
|
4082
|
+
type: integer
|
4083
|
+
minimum: 60
|
4084
|
+
maximum: 86400
|
3863
4085
|
InputVenueMessageContent:
|
3864
4086
|
type: object
|
3865
4087
|
required:
|
@@ -4012,6 +4234,8 @@ definitions:
|
|
4012
4234
|
type: string
|
4013
4235
|
caption:
|
4014
4236
|
type: string
|
4237
|
+
parse_mode:
|
4238
|
+
$ref: '#/definitions/ParseMode'
|
4015
4239
|
performer:
|
4016
4240
|
type: string
|
4017
4241
|
audio_duration:
|
@@ -4079,6 +4303,8 @@ definitions:
|
|
4079
4303
|
type: string
|
4080
4304
|
caption:
|
4081
4305
|
type: string
|
4306
|
+
parse_mode:
|
4307
|
+
$ref: '#/definitions/ParseMode'
|
4082
4308
|
document_url:
|
4083
4309
|
type: string
|
4084
4310
|
mime_type:
|
@@ -4122,6 +4348,8 @@ definitions:
|
|
4122
4348
|
type: string
|
4123
4349
|
caption:
|
4124
4350
|
type: string
|
4351
|
+
parse_mode:
|
4352
|
+
$ref: '#/definitions/ParseMode'
|
4125
4353
|
reply_markup:
|
4126
4354
|
$ref: '#/definitions/InlineKeyboardMarkup'
|
4127
4355
|
input_message_content:
|
@@ -4154,6 +4382,10 @@ definitions:
|
|
4154
4382
|
type: integer
|
4155
4383
|
thumb_height:
|
4156
4384
|
type: integer
|
4385
|
+
live_period:
|
4386
|
+
type: integer
|
4387
|
+
minimum: 60
|
4388
|
+
maximum: 86400
|
4157
4389
|
required:
|
4158
4390
|
- type
|
4159
4391
|
- id
|
@@ -4181,6 +4413,8 @@ definitions:
|
|
4181
4413
|
type: string
|
4182
4414
|
caption:
|
4183
4415
|
type: string
|
4416
|
+
parse_mode:
|
4417
|
+
$ref: '#/definitions/ParseMode'
|
4184
4418
|
reply_markup:
|
4185
4419
|
$ref: '#/definitions/InlineKeyboardMarkup'
|
4186
4420
|
input_message_content:
|
@@ -4209,6 +4443,8 @@ definitions:
|
|
4209
4443
|
type: string
|
4210
4444
|
caption:
|
4211
4445
|
type: string
|
4446
|
+
parse_mode:
|
4447
|
+
$ref: '#/definitions/ParseMode'
|
4212
4448
|
reply_markup:
|
4213
4449
|
$ref: '#/definitions/InlineKeyboardMarkup'
|
4214
4450
|
input_message_content:
|
@@ -4269,6 +4505,8 @@ definitions:
|
|
4269
4505
|
type: string
|
4270
4506
|
caption:
|
4271
4507
|
type: string
|
4508
|
+
parse_mode:
|
4509
|
+
$ref: '#/definitions/ParseMode'
|
4272
4510
|
video_width:
|
4273
4511
|
type: integer
|
4274
4512
|
video_height:
|
@@ -4301,6 +4539,8 @@ definitions:
|
|
4301
4539
|
type: string
|
4302
4540
|
caption:
|
4303
4541
|
type: string
|
4542
|
+
parse_mode:
|
4543
|
+
$ref: '#/definitions/ParseMode'
|
4304
4544
|
voice_duration:
|
4305
4545
|
type: integer
|
4306
4546
|
input_message_content:
|
@@ -4323,6 +4563,8 @@ definitions:
|
|
4323
4563
|
type: string
|
4324
4564
|
caption:
|
4325
4565
|
type: string
|
4566
|
+
parse_mode:
|
4567
|
+
$ref: '#/definitions/ParseMode'
|
4326
4568
|
input_message_content:
|
4327
4569
|
type: object
|
4328
4570
|
reply_markup:
|
@@ -4344,6 +4586,8 @@ definitions:
|
|
4344
4586
|
type: string
|
4345
4587
|
caption:
|
4346
4588
|
type: string
|
4589
|
+
parse_mode:
|
4590
|
+
$ref: '#/definitions/ParseMode'
|
4347
4591
|
input_message_content:
|
4348
4592
|
type: object
|
4349
4593
|
reply_markup:
|
@@ -4365,6 +4609,8 @@ definitions:
|
|
4365
4609
|
type: string
|
4366
4610
|
caption:
|
4367
4611
|
type: string
|
4612
|
+
parse_mode:
|
4613
|
+
$ref: '#/definitions/ParseMode'
|
4368
4614
|
input_message_content:
|
4369
4615
|
type: object
|
4370
4616
|
reply_markup:
|
@@ -4386,6 +4632,8 @@ definitions:
|
|
4386
4632
|
type: string
|
4387
4633
|
caption:
|
4388
4634
|
type: string
|
4635
|
+
parse_mode:
|
4636
|
+
$ref: '#/definitions/ParseMode'
|
4389
4637
|
input_message_content:
|
4390
4638
|
type: object
|
4391
4639
|
reply_markup:
|
@@ -4409,6 +4657,8 @@ definitions:
|
|
4409
4657
|
type: string
|
4410
4658
|
caption:
|
4411
4659
|
type: string
|
4660
|
+
parse_mode:
|
4661
|
+
$ref: '#/definitions/ParseMode'
|
4412
4662
|
input_message_content:
|
4413
4663
|
type: object
|
4414
4664
|
reply_markup:
|
@@ -4449,6 +4699,8 @@ definitions:
|
|
4449
4699
|
type: string
|
4450
4700
|
caption:
|
4451
4701
|
type: string
|
4702
|
+
parse_mode:
|
4703
|
+
$ref: '#/definitions/ParseMode'
|
4452
4704
|
input_message_content:
|
4453
4705
|
type: object
|
4454
4706
|
reply_markup:
|
@@ -4470,6 +4722,8 @@ definitions:
|
|
4470
4722
|
type: string
|
4471
4723
|
caption:
|
4472
4724
|
type: string
|
4725
|
+
parse_mode:
|
4726
|
+
$ref: '#/definitions/ParseMode'
|
4473
4727
|
input_message_content:
|
4474
4728
|
type: object
|
4475
4729
|
reply_markup:
|
@@ -4722,6 +4976,39 @@ definitions:
|
|
4722
4976
|
type: integer
|
4723
4977
|
reply_markup:
|
4724
4978
|
type: object
|
4979
|
+
live_period:
|
4980
|
+
type: integer
|
4981
|
+
minimum: 60
|
4982
|
+
maximum: 86400
|
4983
|
+
EditMessageLiveLocationBody:
|
4984
|
+
type: object
|
4985
|
+
required:
|
4986
|
+
- latitude
|
4987
|
+
- longitude
|
4988
|
+
properties:
|
4989
|
+
chat_id:
|
4990
|
+
type: object
|
4991
|
+
message_id:
|
4992
|
+
type: integer
|
4993
|
+
inline_message_id:
|
4994
|
+
type: string
|
4995
|
+
latitude:
|
4996
|
+
type: number
|
4997
|
+
longitude:
|
4998
|
+
type: number
|
4999
|
+
reply_markup:
|
5000
|
+
type: object
|
5001
|
+
StopMessageLiveLocationBody:
|
5002
|
+
type: object
|
5003
|
+
properties:
|
5004
|
+
chat_id:
|
5005
|
+
type: object
|
5006
|
+
message_id:
|
5007
|
+
type: integer
|
5008
|
+
inline_message_id:
|
5009
|
+
type: string
|
5010
|
+
reply_markup:
|
5011
|
+
type: object
|
4725
5012
|
SendVenueBody:
|
4726
5013
|
type: object
|
4727
5014
|
required:
|
@@ -4800,6 +5087,8 @@ definitions:
|
|
4800
5087
|
type: string
|
4801
5088
|
caption:
|
4802
5089
|
type: string
|
5090
|
+
parse_mode:
|
5091
|
+
$ref: "#/definitions/ParseMode"
|
4803
5092
|
reply_markup:
|
4804
5093
|
$ref: '#/definitions/InlineKeyboardMarkup'
|
4805
5094
|
EditMessageReplyMarkupBody:
|
@@ -4861,6 +5150,8 @@ definitions:
|
|
4861
5150
|
- inline_query
|
4862
5151
|
- chosen_inline_result
|
4863
5152
|
- callback_query
|
5153
|
+
- shipping_query
|
5154
|
+
- pre_checkout_query
|
4864
5155
|
WebhookInfo:
|
4865
5156
|
type: object
|
4866
5157
|
required:
|
@@ -5029,6 +5320,8 @@ definitions:
|
|
5029
5320
|
type: array
|
5030
5321
|
items:
|
5031
5322
|
$ref: "#/definitions/LabeledPrice"
|
5323
|
+
provider_data:
|
5324
|
+
type: string
|
5032
5325
|
photo_url:
|
5033
5326
|
type: string
|
5034
5327
|
photo_size:
|
@@ -5200,3 +5493,86 @@ definitions:
|
|
5200
5493
|
type: string
|
5201
5494
|
mask_position:
|
5202
5495
|
$ref: "#/definitions/MaskPosition"
|
5496
|
+
InputMediaPhoto:
|
5497
|
+
type: object
|
5498
|
+
required:
|
5499
|
+
- type
|
5500
|
+
- media
|
5501
|
+
properties:
|
5502
|
+
type:
|
5503
|
+
type: string
|
5504
|
+
x-nullable: false
|
5505
|
+
media:
|
5506
|
+
type: string
|
5507
|
+
x-nullable: false
|
5508
|
+
caption:
|
5509
|
+
type: string
|
5510
|
+
parse_mode:
|
5511
|
+
$ref: "#/definitions/ParseMode"
|
5512
|
+
InputMediaVideo:
|
5513
|
+
type: object
|
5514
|
+
required:
|
5515
|
+
- type
|
5516
|
+
- media
|
5517
|
+
properties:
|
5518
|
+
type:
|
5519
|
+
type: string
|
5520
|
+
x-nullable: false
|
5521
|
+
media:
|
5522
|
+
type: string
|
5523
|
+
x-nullable: false
|
5524
|
+
caption:
|
5525
|
+
type: string
|
5526
|
+
width:
|
5527
|
+
type: integer
|
5528
|
+
height:
|
5529
|
+
type: integer
|
5530
|
+
duration:
|
5531
|
+
type: integer
|
5532
|
+
parse_mode:
|
5533
|
+
$ref: "#/definitions/ParseMode"
|
5534
|
+
supports_streaming:
|
5535
|
+
type: boolean
|
5536
|
+
SendMediaGroupLinkBody:
|
5537
|
+
type: object
|
5538
|
+
required:
|
5539
|
+
- chat_id
|
5540
|
+
- media
|
5541
|
+
properties:
|
5542
|
+
chat_id:
|
5543
|
+
type: object
|
5544
|
+
media:
|
5545
|
+
type: array
|
5546
|
+
items:
|
5547
|
+
type: object
|
5548
|
+
disable_notification:
|
5549
|
+
type: boolean
|
5550
|
+
reply_to_message_id:
|
5551
|
+
type: integer
|
5552
|
+
GetUpdatesBody:
|
5553
|
+
required:
|
5554
|
+
type: object
|
5555
|
+
properties:
|
5556
|
+
offset:
|
5557
|
+
type: integer
|
5558
|
+
limit:
|
5559
|
+
type: integer
|
5560
|
+
timeout:
|
5561
|
+
type: integer
|
5562
|
+
allowed_updates:
|
5563
|
+
type: array
|
5564
|
+
items:
|
5565
|
+
$ref: '#/definitions/AllowedUpdate'
|
5566
|
+
AnswerCallbackQueryBody:
|
5567
|
+
type: object
|
5568
|
+
properties:
|
5569
|
+
callback_query_id:
|
5570
|
+
type: string
|
5571
|
+
text:
|
5572
|
+
type: string
|
5573
|
+
show_alert:
|
5574
|
+
type: boolean
|
5575
|
+
url:
|
5576
|
+
type: string
|
5577
|
+
cache_time:
|
5578
|
+
type: integer
|