telegram-bot-ruby 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile +6 -2
- data/Rakefile +0 -45
- data/lib/telegram/bot/api/endpoints.rb +12 -2
- data/lib/telegram/bot/client.rb +1 -1
- data/lib/telegram/bot/exceptions/response_error.rb +1 -1
- data/lib/telegram/bot/types/background_fill.rb +16 -0
- data/lib/telegram/bot/types/background_fill_freeform_gradient.rb +12 -0
- data/lib/telegram/bot/types/background_fill_gradient.rb +14 -0
- data/lib/telegram/bot/types/background_fill_solid.rb +12 -0
- data/lib/telegram/bot/types/background_type.rb +17 -0
- data/lib/telegram/bot/types/background_type_chat_theme.rb +12 -0
- data/lib/telegram/bot/types/background_type_fill.rb +13 -0
- data/lib/telegram/bot/types/background_type_pattern.rb +16 -0
- data/lib/telegram/bot/types/background_type_wallpaper.rb +15 -0
- data/lib/telegram/bot/types/birthdate.rb +13 -0
- data/lib/telegram/bot/types/bot_command.rb +2 -2
- data/lib/telegram/bot/types/bot_command_scope.rb +20 -0
- data/lib/telegram/bot/types/business_connection.rb +16 -0
- data/lib/telegram/bot/types/business_intro.rb +13 -0
- data/lib/telegram/bot/types/business_location.rb +12 -0
- data/lib/telegram/bot/types/business_messages_deleted.rb +13 -0
- data/lib/telegram/bot/types/business_opening_hours.rb +12 -0
- data/lib/telegram/bot/types/business_opening_hours_interval.rb +12 -0
- data/lib/telegram/bot/types/chat.rb +0 -28
- data/lib/telegram/bot/types/chat_administrator_rights.rb +3 -3
- data/lib/telegram/bot/types/chat_background.rb +11 -0
- data/lib/telegram/bot/types/chat_boost_added.rb +11 -0
- data/lib/telegram/bot/types/chat_boost_source.rb +4 -1
- data/lib/telegram/bot/types/chat_boost_source_giveaway.rb +1 -0
- data/lib/telegram/bot/types/chat_full_info.rb +54 -0
- data/lib/telegram/bot/types/chat_invite_link.rb +2 -0
- data/lib/telegram/bot/types/chat_location.rb +1 -1
- data/lib/telegram/bot/types/chat_member.rb +4 -4
- data/lib/telegram/bot/types/chat_member_administrator.rb +3 -3
- data/lib/telegram/bot/types/chat_member_member.rb +1 -0
- data/lib/telegram/bot/types/chat_member_updated.rb +1 -0
- data/lib/telegram/bot/types/chat_shared.rb +3 -0
- data/lib/telegram/bot/types/copy_text_button.rb +11 -0
- data/lib/telegram/bot/types/error.rb +14 -0
- data/lib/telegram/bot/types/external_reply_info.rb +1 -0
- data/lib/telegram/bot/types/force_reply.rb +2 -2
- data/lib/telegram/bot/types/gift.rb +15 -0
- data/lib/telegram/bot/types/gifts.rb +11 -0
- data/lib/telegram/bot/types/giveaway.rb +1 -0
- data/lib/telegram/bot/types/giveaway_completed.rb +1 -0
- data/lib/telegram/bot/types/giveaway_created.rb +1 -0
- data/lib/telegram/bot/types/giveaway_winners.rb +1 -0
- data/lib/telegram/bot/types/inline_keyboard_button.rb +2 -1
- data/lib/telegram/bot/types/inline_query_result.rb +33 -0
- data/lib/telegram/bot/types/inline_query_result_cached_gif.rb +1 -0
- data/lib/telegram/bot/types/inline_query_result_cached_mpeg4_gif.rb +1 -0
- data/lib/telegram/bot/types/inline_query_result_cached_photo.rb +1 -0
- data/lib/telegram/bot/types/inline_query_result_cached_video.rb +1 -0
- data/lib/telegram/bot/types/inline_query_result_gif.rb +2 -1
- data/lib/telegram/bot/types/inline_query_result_mpeg4_gif.rb +2 -1
- data/lib/telegram/bot/types/inline_query_result_photo.rb +1 -0
- data/lib/telegram/bot/types/inline_query_result_video.rb +1 -0
- data/lib/telegram/bot/types/inline_query_results_button.rb +13 -0
- data/lib/telegram/bot/types/input_contact_message_content.rb +1 -1
- data/lib/telegram/bot/types/input_invoice_message_content.rb +5 -5
- data/lib/telegram/bot/types/input_location_message_content.rb +1 -1
- data/lib/telegram/bot/types/input_media.rb +18 -0
- data/lib/telegram/bot/types/input_media_animation.rb +1 -0
- data/lib/telegram/bot/types/input_media_photo.rb +1 -0
- data/lib/telegram/bot/types/input_media_video.rb +1 -0
- data/lib/telegram/bot/types/input_message_content.rb +10 -2
- data/lib/telegram/bot/types/input_paid_media.rb +15 -0
- data/lib/telegram/bot/types/input_paid_media_photo.rb +12 -0
- data/lib/telegram/bot/types/input_paid_media_video.rb +17 -0
- data/lib/telegram/bot/types/input_poll_option.rb +13 -0
- data/lib/telegram/bot/types/input_sticker.rb +15 -0
- data/lib/telegram/bot/types/input_text_message_content.rb +2 -2
- data/lib/telegram/bot/types/input_venue_message_content.rb +1 -1
- data/lib/telegram/bot/types/keyboard_button_request_chat.rb +3 -0
- data/lib/telegram/bot/types/keyboard_button_request_users.rb +3 -0
- data/lib/telegram/bot/types/location.rb +1 -1
- data/lib/telegram/bot/types/maybe_inaccessible_message.rb +4 -1
- data/lib/telegram/bot/types/menu_button.rb +16 -0
- data/lib/telegram/bot/types/message.rb +11 -0
- data/lib/telegram/bot/types/message_origin.rb +4 -1
- data/lib/telegram/bot/types/paid_media.rb +16 -0
- data/lib/telegram/bot/types/paid_media_info.rb +12 -0
- data/lib/telegram/bot/types/paid_media_photo.rb +12 -0
- data/lib/telegram/bot/types/paid_media_preview.rb +14 -0
- data/lib/telegram/bot/types/paid_media_purchased.rb +12 -0
- data/lib/telegram/bot/types/paid_media_video.rb +12 -0
- data/lib/telegram/bot/types/passport_element_error.rb +22 -0
- data/lib/telegram/bot/types/poll.rb +2 -1
- data/lib/telegram/bot/types/poll_option.rb +2 -1
- data/lib/telegram/bot/types/prepared_inline_message.rb +12 -0
- data/lib/telegram/bot/types/reaction_type.rb +6 -2
- data/lib/telegram/bot/types/reaction_type_paid.rb +11 -0
- data/lib/telegram/bot/types/refunded_payment.rb +15 -0
- data/lib/telegram/bot/types/reply_keyboard_markup.rb +2 -2
- data/lib/telegram/bot/types/reply_keyboard_remove.rb +1 -1
- data/lib/telegram/bot/types/response_parameters.rb +12 -0
- data/lib/telegram/bot/types/revenue_withdrawal_state.rb +16 -0
- data/lib/telegram/bot/types/revenue_withdrawal_state_failed.rb +11 -0
- data/lib/telegram/bot/types/revenue_withdrawal_state_pending.rb +11 -0
- data/lib/telegram/bot/types/revenue_withdrawal_state_succeeded.rb +13 -0
- data/lib/telegram/bot/types/shared_user.rb +15 -0
- data/lib/telegram/bot/types/star_transaction.rb +15 -0
- data/lib/telegram/bot/types/star_transactions.rb +11 -0
- data/lib/telegram/bot/types/sticker_set.rb +0 -2
- data/lib/telegram/bot/types/story.rb +4 -1
- data/lib/telegram/bot/types/successful_payment.rb +3 -0
- data/lib/telegram/bot/types/transaction_partner.rb +18 -0
- data/lib/telegram/bot/types/transaction_partner_fragment.rb +12 -0
- data/lib/telegram/bot/types/transaction_partner_other.rb +11 -0
- data/lib/telegram/bot/types/transaction_partner_telegram_ads.rb +11 -0
- data/lib/telegram/bot/types/transaction_partner_telegram_api.rb +12 -0
- data/lib/telegram/bot/types/transaction_partner_user.rb +17 -0
- data/lib/telegram/bot/types/update.rb +5 -0
- data/lib/telegram/bot/types/user.rb +2 -0
- data/lib/telegram/bot/types/users_shared.rb +1 -1
- data/lib/telegram/bot/version.rb +1 -1
- data/rakelib/parse_schema.rake +73 -0
- data/rakelib/rebuild_types.rake +90 -0
- data/utility/empty_type.erb +14 -0
- data/utility/type.erb +13 -0
- data/utility/type_attributes.json +5138 -0
- metadata +65 -3
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: telegram-bot-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Tipugin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|
@@ -99,8 +99,19 @@ files:
|
|
99
99
|
- lib/telegram/bot/types.rb
|
100
100
|
- lib/telegram/bot/types/animation.rb
|
101
101
|
- lib/telegram/bot/types/audio.rb
|
102
|
+
- lib/telegram/bot/types/background_fill.rb
|
103
|
+
- lib/telegram/bot/types/background_fill_freeform_gradient.rb
|
104
|
+
- lib/telegram/bot/types/background_fill_gradient.rb
|
105
|
+
- lib/telegram/bot/types/background_fill_solid.rb
|
106
|
+
- lib/telegram/bot/types/background_type.rb
|
107
|
+
- lib/telegram/bot/types/background_type_chat_theme.rb
|
108
|
+
- lib/telegram/bot/types/background_type_fill.rb
|
109
|
+
- lib/telegram/bot/types/background_type_pattern.rb
|
110
|
+
- lib/telegram/bot/types/background_type_wallpaper.rb
|
102
111
|
- lib/telegram/bot/types/base.rb
|
112
|
+
- lib/telegram/bot/types/birthdate.rb
|
103
113
|
- lib/telegram/bot/types/bot_command.rb
|
114
|
+
- lib/telegram/bot/types/bot_command_scope.rb
|
104
115
|
- lib/telegram/bot/types/bot_command_scope_all_chat_administrators.rb
|
105
116
|
- lib/telegram/bot/types/bot_command_scope_all_group_chats.rb
|
106
117
|
- lib/telegram/bot/types/bot_command_scope_all_private_chats.rb
|
@@ -111,17 +122,26 @@ files:
|
|
111
122
|
- lib/telegram/bot/types/bot_description.rb
|
112
123
|
- lib/telegram/bot/types/bot_name.rb
|
113
124
|
- lib/telegram/bot/types/bot_short_description.rb
|
125
|
+
- lib/telegram/bot/types/business_connection.rb
|
126
|
+
- lib/telegram/bot/types/business_intro.rb
|
127
|
+
- lib/telegram/bot/types/business_location.rb
|
128
|
+
- lib/telegram/bot/types/business_messages_deleted.rb
|
129
|
+
- lib/telegram/bot/types/business_opening_hours.rb
|
130
|
+
- lib/telegram/bot/types/business_opening_hours_interval.rb
|
114
131
|
- lib/telegram/bot/types/callback_game.rb
|
115
132
|
- lib/telegram/bot/types/callback_query.rb
|
116
133
|
- lib/telegram/bot/types/chat.rb
|
117
134
|
- lib/telegram/bot/types/chat_administrator_rights.rb
|
135
|
+
- lib/telegram/bot/types/chat_background.rb
|
118
136
|
- lib/telegram/bot/types/chat_boost.rb
|
137
|
+
- lib/telegram/bot/types/chat_boost_added.rb
|
119
138
|
- lib/telegram/bot/types/chat_boost_removed.rb
|
120
139
|
- lib/telegram/bot/types/chat_boost_source.rb
|
121
140
|
- lib/telegram/bot/types/chat_boost_source_gift_code.rb
|
122
141
|
- lib/telegram/bot/types/chat_boost_source_giveaway.rb
|
123
142
|
- lib/telegram/bot/types/chat_boost_source_premium.rb
|
124
143
|
- lib/telegram/bot/types/chat_boost_updated.rb
|
144
|
+
- lib/telegram/bot/types/chat_full_info.rb
|
125
145
|
- lib/telegram/bot/types/chat_invite_link.rb
|
126
146
|
- lib/telegram/bot/types/chat_join_request.rb
|
127
147
|
- lib/telegram/bot/types/chat_location.rb
|
@@ -139,10 +159,12 @@ files:
|
|
139
159
|
- lib/telegram/bot/types/chosen_inline_result.rb
|
140
160
|
- lib/telegram/bot/types/compactable.rb
|
141
161
|
- lib/telegram/bot/types/contact.rb
|
162
|
+
- lib/telegram/bot/types/copy_text_button.rb
|
142
163
|
- lib/telegram/bot/types/dice.rb
|
143
164
|
- lib/telegram/bot/types/document.rb
|
144
165
|
- lib/telegram/bot/types/encrypted_credentials.rb
|
145
166
|
- lib/telegram/bot/types/encrypted_passport_element.rb
|
167
|
+
- lib/telegram/bot/types/error.rb
|
146
168
|
- lib/telegram/bot/types/external_reply_info.rb
|
147
169
|
- lib/telegram/bot/types/file.rb
|
148
170
|
- lib/telegram/bot/types/force_reply.rb
|
@@ -155,6 +177,8 @@ files:
|
|
155
177
|
- lib/telegram/bot/types/game_high_score.rb
|
156
178
|
- lib/telegram/bot/types/general_forum_topic_hidden.rb
|
157
179
|
- lib/telegram/bot/types/general_forum_topic_unhidden.rb
|
180
|
+
- lib/telegram/bot/types/gift.rb
|
181
|
+
- lib/telegram/bot/types/gifts.rb
|
158
182
|
- lib/telegram/bot/types/giveaway.rb
|
159
183
|
- lib/telegram/bot/types/giveaway_completed.rb
|
160
184
|
- lib/telegram/bot/types/giveaway_created.rb
|
@@ -163,6 +187,7 @@ files:
|
|
163
187
|
- lib/telegram/bot/types/inline_keyboard_button.rb
|
164
188
|
- lib/telegram/bot/types/inline_keyboard_markup.rb
|
165
189
|
- lib/telegram/bot/types/inline_query.rb
|
190
|
+
- lib/telegram/bot/types/inline_query_result.rb
|
166
191
|
- lib/telegram/bot/types/inline_query_result_article.rb
|
167
192
|
- lib/telegram/bot/types/inline_query_result_audio.rb
|
168
193
|
- lib/telegram/bot/types/inline_query_result_cached_audio.rb
|
@@ -183,15 +208,22 @@ files:
|
|
183
208
|
- lib/telegram/bot/types/inline_query_result_venue.rb
|
184
209
|
- lib/telegram/bot/types/inline_query_result_video.rb
|
185
210
|
- lib/telegram/bot/types/inline_query_result_voice.rb
|
211
|
+
- lib/telegram/bot/types/inline_query_results_button.rb
|
186
212
|
- lib/telegram/bot/types/input_contact_message_content.rb
|
187
213
|
- lib/telegram/bot/types/input_invoice_message_content.rb
|
188
214
|
- lib/telegram/bot/types/input_location_message_content.rb
|
215
|
+
- lib/telegram/bot/types/input_media.rb
|
189
216
|
- lib/telegram/bot/types/input_media_animation.rb
|
190
217
|
- lib/telegram/bot/types/input_media_audio.rb
|
191
218
|
- lib/telegram/bot/types/input_media_document.rb
|
192
219
|
- lib/telegram/bot/types/input_media_photo.rb
|
193
220
|
- lib/telegram/bot/types/input_media_video.rb
|
194
221
|
- lib/telegram/bot/types/input_message_content.rb
|
222
|
+
- lib/telegram/bot/types/input_paid_media.rb
|
223
|
+
- lib/telegram/bot/types/input_paid_media_photo.rb
|
224
|
+
- lib/telegram/bot/types/input_paid_media_video.rb
|
225
|
+
- lib/telegram/bot/types/input_poll_option.rb
|
226
|
+
- lib/telegram/bot/types/input_sticker.rb
|
195
227
|
- lib/telegram/bot/types/input_text_message_content.rb
|
196
228
|
- lib/telegram/bot/types/input_venue_message_content.rb
|
197
229
|
- lib/telegram/bot/types/invoice.rb
|
@@ -205,6 +237,7 @@ files:
|
|
205
237
|
- lib/telegram/bot/types/login_url.rb
|
206
238
|
- lib/telegram/bot/types/mask_position.rb
|
207
239
|
- lib/telegram/bot/types/maybe_inaccessible_message.rb
|
240
|
+
- lib/telegram/bot/types/menu_button.rb
|
208
241
|
- lib/telegram/bot/types/menu_button_commands.rb
|
209
242
|
- lib/telegram/bot/types/menu_button_default.rb
|
210
243
|
- lib/telegram/bot/types/menu_button_web_app.rb
|
@@ -220,7 +253,14 @@ files:
|
|
220
253
|
- lib/telegram/bot/types/message_reaction_count_updated.rb
|
221
254
|
- lib/telegram/bot/types/message_reaction_updated.rb
|
222
255
|
- lib/telegram/bot/types/order_info.rb
|
256
|
+
- lib/telegram/bot/types/paid_media.rb
|
257
|
+
- lib/telegram/bot/types/paid_media_info.rb
|
258
|
+
- lib/telegram/bot/types/paid_media_photo.rb
|
259
|
+
- lib/telegram/bot/types/paid_media_preview.rb
|
260
|
+
- lib/telegram/bot/types/paid_media_purchased.rb
|
261
|
+
- lib/telegram/bot/types/paid_media_video.rb
|
223
262
|
- lib/telegram/bot/types/passport_data.rb
|
263
|
+
- lib/telegram/bot/types/passport_element_error.rb
|
224
264
|
- lib/telegram/bot/types/passport_element_error_data_field.rb
|
225
265
|
- lib/telegram/bot/types/passport_element_error_file.rb
|
226
266
|
- lib/telegram/bot/types/passport_element_error_files.rb
|
@@ -237,24 +277,41 @@ files:
|
|
237
277
|
- lib/telegram/bot/types/poll_answer.rb
|
238
278
|
- lib/telegram/bot/types/poll_option.rb
|
239
279
|
- lib/telegram/bot/types/pre_checkout_query.rb
|
280
|
+
- lib/telegram/bot/types/prepared_inline_message.rb
|
240
281
|
- lib/telegram/bot/types/proximity_alert_triggered.rb
|
241
282
|
- lib/telegram/bot/types/reaction_count.rb
|
242
283
|
- lib/telegram/bot/types/reaction_type.rb
|
243
284
|
- lib/telegram/bot/types/reaction_type_custom_emoji.rb
|
244
285
|
- lib/telegram/bot/types/reaction_type_emoji.rb
|
286
|
+
- lib/telegram/bot/types/reaction_type_paid.rb
|
287
|
+
- lib/telegram/bot/types/refunded_payment.rb
|
245
288
|
- lib/telegram/bot/types/reply_keyboard_markup.rb
|
246
289
|
- lib/telegram/bot/types/reply_keyboard_remove.rb
|
247
290
|
- lib/telegram/bot/types/reply_parameters.rb
|
291
|
+
- lib/telegram/bot/types/response_parameters.rb
|
292
|
+
- lib/telegram/bot/types/revenue_withdrawal_state.rb
|
293
|
+
- lib/telegram/bot/types/revenue_withdrawal_state_failed.rb
|
294
|
+
- lib/telegram/bot/types/revenue_withdrawal_state_pending.rb
|
295
|
+
- lib/telegram/bot/types/revenue_withdrawal_state_succeeded.rb
|
248
296
|
- lib/telegram/bot/types/sent_web_app_message.rb
|
297
|
+
- lib/telegram/bot/types/shared_user.rb
|
249
298
|
- lib/telegram/bot/types/shipping_address.rb
|
250
299
|
- lib/telegram/bot/types/shipping_option.rb
|
251
300
|
- lib/telegram/bot/types/shipping_query.rb
|
301
|
+
- lib/telegram/bot/types/star_transaction.rb
|
302
|
+
- lib/telegram/bot/types/star_transactions.rb
|
252
303
|
- lib/telegram/bot/types/sticker.rb
|
253
304
|
- lib/telegram/bot/types/sticker_set.rb
|
254
305
|
- lib/telegram/bot/types/story.rb
|
255
306
|
- lib/telegram/bot/types/successful_payment.rb
|
256
307
|
- lib/telegram/bot/types/switch_inline_query_chosen_chat.rb
|
257
308
|
- lib/telegram/bot/types/text_quote.rb
|
309
|
+
- lib/telegram/bot/types/transaction_partner.rb
|
310
|
+
- lib/telegram/bot/types/transaction_partner_fragment.rb
|
311
|
+
- lib/telegram/bot/types/transaction_partner_other.rb
|
312
|
+
- lib/telegram/bot/types/transaction_partner_telegram_ads.rb
|
313
|
+
- lib/telegram/bot/types/transaction_partner_telegram_api.rb
|
314
|
+
- lib/telegram/bot/types/transaction_partner_user.rb
|
258
315
|
- lib/telegram/bot/types/update.rb
|
259
316
|
- lib/telegram/bot/types/user.rb
|
260
317
|
- lib/telegram/bot/types/user_chat_boosts.rb
|
@@ -273,7 +330,12 @@ files:
|
|
273
330
|
- lib/telegram/bot/types/webhook_info.rb
|
274
331
|
- lib/telegram/bot/types/write_access_allowed.rb
|
275
332
|
- lib/telegram/bot/version.rb
|
333
|
+
- rakelib/parse_schema.rake
|
334
|
+
- rakelib/rebuild_types.rake
|
276
335
|
- telegram-bot-ruby.gemspec
|
336
|
+
- utility/empty_type.erb
|
337
|
+
- utility/type.erb
|
338
|
+
- utility/type_attributes.json
|
277
339
|
homepage: https://github.com/atipugin/telegram-bot
|
278
340
|
licenses: []
|
279
341
|
metadata:
|
@@ -293,7 +355,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
293
355
|
- !ruby/object:Gem::Version
|
294
356
|
version: '0'
|
295
357
|
requirements: []
|
296
|
-
rubygems_version: 3.5.
|
358
|
+
rubygems_version: 3.5.16
|
297
359
|
signing_key:
|
298
360
|
specification_version: 4
|
299
361
|
summary: Ruby wrapper for Telegram's Bot API
|