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.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/Gemfile +6 -2
  4. data/Rakefile +0 -45
  5. data/lib/telegram/bot/api/endpoints.rb +12 -2
  6. data/lib/telegram/bot/client.rb +1 -1
  7. data/lib/telegram/bot/exceptions/response_error.rb +1 -1
  8. data/lib/telegram/bot/types/background_fill.rb +16 -0
  9. data/lib/telegram/bot/types/background_fill_freeform_gradient.rb +12 -0
  10. data/lib/telegram/bot/types/background_fill_gradient.rb +14 -0
  11. data/lib/telegram/bot/types/background_fill_solid.rb +12 -0
  12. data/lib/telegram/bot/types/background_type.rb +17 -0
  13. data/lib/telegram/bot/types/background_type_chat_theme.rb +12 -0
  14. data/lib/telegram/bot/types/background_type_fill.rb +13 -0
  15. data/lib/telegram/bot/types/background_type_pattern.rb +16 -0
  16. data/lib/telegram/bot/types/background_type_wallpaper.rb +15 -0
  17. data/lib/telegram/bot/types/birthdate.rb +13 -0
  18. data/lib/telegram/bot/types/bot_command.rb +2 -2
  19. data/lib/telegram/bot/types/bot_command_scope.rb +20 -0
  20. data/lib/telegram/bot/types/business_connection.rb +16 -0
  21. data/lib/telegram/bot/types/business_intro.rb +13 -0
  22. data/lib/telegram/bot/types/business_location.rb +12 -0
  23. data/lib/telegram/bot/types/business_messages_deleted.rb +13 -0
  24. data/lib/telegram/bot/types/business_opening_hours.rb +12 -0
  25. data/lib/telegram/bot/types/business_opening_hours_interval.rb +12 -0
  26. data/lib/telegram/bot/types/chat.rb +0 -28
  27. data/lib/telegram/bot/types/chat_administrator_rights.rb +3 -3
  28. data/lib/telegram/bot/types/chat_background.rb +11 -0
  29. data/lib/telegram/bot/types/chat_boost_added.rb +11 -0
  30. data/lib/telegram/bot/types/chat_boost_source.rb +4 -1
  31. data/lib/telegram/bot/types/chat_boost_source_giveaway.rb +1 -0
  32. data/lib/telegram/bot/types/chat_full_info.rb +54 -0
  33. data/lib/telegram/bot/types/chat_invite_link.rb +2 -0
  34. data/lib/telegram/bot/types/chat_location.rb +1 -1
  35. data/lib/telegram/bot/types/chat_member.rb +4 -4
  36. data/lib/telegram/bot/types/chat_member_administrator.rb +3 -3
  37. data/lib/telegram/bot/types/chat_member_member.rb +1 -0
  38. data/lib/telegram/bot/types/chat_member_updated.rb +1 -0
  39. data/lib/telegram/bot/types/chat_shared.rb +3 -0
  40. data/lib/telegram/bot/types/copy_text_button.rb +11 -0
  41. data/lib/telegram/bot/types/error.rb +14 -0
  42. data/lib/telegram/bot/types/external_reply_info.rb +1 -0
  43. data/lib/telegram/bot/types/force_reply.rb +2 -2
  44. data/lib/telegram/bot/types/gift.rb +15 -0
  45. data/lib/telegram/bot/types/gifts.rb +11 -0
  46. data/lib/telegram/bot/types/giveaway.rb +1 -0
  47. data/lib/telegram/bot/types/giveaway_completed.rb +1 -0
  48. data/lib/telegram/bot/types/giveaway_created.rb +1 -0
  49. data/lib/telegram/bot/types/giveaway_winners.rb +1 -0
  50. data/lib/telegram/bot/types/inline_keyboard_button.rb +2 -1
  51. data/lib/telegram/bot/types/inline_query_result.rb +33 -0
  52. data/lib/telegram/bot/types/inline_query_result_cached_gif.rb +1 -0
  53. data/lib/telegram/bot/types/inline_query_result_cached_mpeg4_gif.rb +1 -0
  54. data/lib/telegram/bot/types/inline_query_result_cached_photo.rb +1 -0
  55. data/lib/telegram/bot/types/inline_query_result_cached_video.rb +1 -0
  56. data/lib/telegram/bot/types/inline_query_result_gif.rb +2 -1
  57. data/lib/telegram/bot/types/inline_query_result_mpeg4_gif.rb +2 -1
  58. data/lib/telegram/bot/types/inline_query_result_photo.rb +1 -0
  59. data/lib/telegram/bot/types/inline_query_result_video.rb +1 -0
  60. data/lib/telegram/bot/types/inline_query_results_button.rb +13 -0
  61. data/lib/telegram/bot/types/input_contact_message_content.rb +1 -1
  62. data/lib/telegram/bot/types/input_invoice_message_content.rb +5 -5
  63. data/lib/telegram/bot/types/input_location_message_content.rb +1 -1
  64. data/lib/telegram/bot/types/input_media.rb +18 -0
  65. data/lib/telegram/bot/types/input_media_animation.rb +1 -0
  66. data/lib/telegram/bot/types/input_media_photo.rb +1 -0
  67. data/lib/telegram/bot/types/input_media_video.rb +1 -0
  68. data/lib/telegram/bot/types/input_message_content.rb +10 -2
  69. data/lib/telegram/bot/types/input_paid_media.rb +15 -0
  70. data/lib/telegram/bot/types/input_paid_media_photo.rb +12 -0
  71. data/lib/telegram/bot/types/input_paid_media_video.rb +17 -0
  72. data/lib/telegram/bot/types/input_poll_option.rb +13 -0
  73. data/lib/telegram/bot/types/input_sticker.rb +15 -0
  74. data/lib/telegram/bot/types/input_text_message_content.rb +2 -2
  75. data/lib/telegram/bot/types/input_venue_message_content.rb +1 -1
  76. data/lib/telegram/bot/types/keyboard_button_request_chat.rb +3 -0
  77. data/lib/telegram/bot/types/keyboard_button_request_users.rb +3 -0
  78. data/lib/telegram/bot/types/location.rb +1 -1
  79. data/lib/telegram/bot/types/maybe_inaccessible_message.rb +4 -1
  80. data/lib/telegram/bot/types/menu_button.rb +16 -0
  81. data/lib/telegram/bot/types/message.rb +11 -0
  82. data/lib/telegram/bot/types/message_origin.rb +4 -1
  83. data/lib/telegram/bot/types/paid_media.rb +16 -0
  84. data/lib/telegram/bot/types/paid_media_info.rb +12 -0
  85. data/lib/telegram/bot/types/paid_media_photo.rb +12 -0
  86. data/lib/telegram/bot/types/paid_media_preview.rb +14 -0
  87. data/lib/telegram/bot/types/paid_media_purchased.rb +12 -0
  88. data/lib/telegram/bot/types/paid_media_video.rb +12 -0
  89. data/lib/telegram/bot/types/passport_element_error.rb +22 -0
  90. data/lib/telegram/bot/types/poll.rb +2 -1
  91. data/lib/telegram/bot/types/poll_option.rb +2 -1
  92. data/lib/telegram/bot/types/prepared_inline_message.rb +12 -0
  93. data/lib/telegram/bot/types/reaction_type.rb +6 -2
  94. data/lib/telegram/bot/types/reaction_type_paid.rb +11 -0
  95. data/lib/telegram/bot/types/refunded_payment.rb +15 -0
  96. data/lib/telegram/bot/types/reply_keyboard_markup.rb +2 -2
  97. data/lib/telegram/bot/types/reply_keyboard_remove.rb +1 -1
  98. data/lib/telegram/bot/types/response_parameters.rb +12 -0
  99. data/lib/telegram/bot/types/revenue_withdrawal_state.rb +16 -0
  100. data/lib/telegram/bot/types/revenue_withdrawal_state_failed.rb +11 -0
  101. data/lib/telegram/bot/types/revenue_withdrawal_state_pending.rb +11 -0
  102. data/lib/telegram/bot/types/revenue_withdrawal_state_succeeded.rb +13 -0
  103. data/lib/telegram/bot/types/shared_user.rb +15 -0
  104. data/lib/telegram/bot/types/star_transaction.rb +15 -0
  105. data/lib/telegram/bot/types/star_transactions.rb +11 -0
  106. data/lib/telegram/bot/types/sticker_set.rb +0 -2
  107. data/lib/telegram/bot/types/story.rb +4 -1
  108. data/lib/telegram/bot/types/successful_payment.rb +3 -0
  109. data/lib/telegram/bot/types/transaction_partner.rb +18 -0
  110. data/lib/telegram/bot/types/transaction_partner_fragment.rb +12 -0
  111. data/lib/telegram/bot/types/transaction_partner_other.rb +11 -0
  112. data/lib/telegram/bot/types/transaction_partner_telegram_ads.rb +11 -0
  113. data/lib/telegram/bot/types/transaction_partner_telegram_api.rb +12 -0
  114. data/lib/telegram/bot/types/transaction_partner_user.rb +17 -0
  115. data/lib/telegram/bot/types/update.rb +5 -0
  116. data/lib/telegram/bot/types/user.rb +2 -0
  117. data/lib/telegram/bot/types/users_shared.rb +1 -1
  118. data/lib/telegram/bot/version.rb +1 -1
  119. data/rakelib/parse_schema.rake +73 -0
  120. data/rakelib/rebuild_types.rake +90 -0
  121. data/utility/empty_type.erb +14 -0
  122. data/utility/type.erb +13 -0
  123. data/utility/type_attributes.json +5138 -0
  124. 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.0.0
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-01-25 00:00:00.000000000 Z
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.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