telegram-bot-ruby 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/Gemfile +6 -2
  4. data/README.md +1 -1
  5. data/Rakefile +0 -45
  6. data/lib/telegram/bot/api/endpoints.rb +12 -2
  7. data/lib/telegram/bot/client.rb +1 -1
  8. data/lib/telegram/bot/exceptions/response_error.rb +1 -1
  9. data/lib/telegram/bot/types/affiliate_info.rb +15 -0
  10. data/lib/telegram/bot/types/background_fill.rb +16 -0
  11. data/lib/telegram/bot/types/background_fill_freeform_gradient.rb +12 -0
  12. data/lib/telegram/bot/types/background_fill_gradient.rb +14 -0
  13. data/lib/telegram/bot/types/background_fill_solid.rb +12 -0
  14. data/lib/telegram/bot/types/background_type.rb +17 -0
  15. data/lib/telegram/bot/types/background_type_chat_theme.rb +12 -0
  16. data/lib/telegram/bot/types/background_type_fill.rb +13 -0
  17. data/lib/telegram/bot/types/background_type_pattern.rb +16 -0
  18. data/lib/telegram/bot/types/background_type_wallpaper.rb +15 -0
  19. data/lib/telegram/bot/types/birthdate.rb +13 -0
  20. data/lib/telegram/bot/types/bot_command.rb +2 -2
  21. data/lib/telegram/bot/types/bot_command_scope.rb +20 -0
  22. data/lib/telegram/bot/types/business_connection.rb +16 -0
  23. data/lib/telegram/bot/types/business_intro.rb +13 -0
  24. data/lib/telegram/bot/types/business_location.rb +12 -0
  25. data/lib/telegram/bot/types/business_messages_deleted.rb +13 -0
  26. data/lib/telegram/bot/types/business_opening_hours.rb +12 -0
  27. data/lib/telegram/bot/types/business_opening_hours_interval.rb +12 -0
  28. data/lib/telegram/bot/types/chat.rb +0 -28
  29. data/lib/telegram/bot/types/chat_administrator_rights.rb +3 -3
  30. data/lib/telegram/bot/types/chat_background.rb +11 -0
  31. data/lib/telegram/bot/types/chat_boost_added.rb +11 -0
  32. data/lib/telegram/bot/types/chat_boost_source.rb +4 -1
  33. data/lib/telegram/bot/types/chat_boost_source_giveaway.rb +1 -0
  34. data/lib/telegram/bot/types/chat_full_info.rb +54 -0
  35. data/lib/telegram/bot/types/chat_invite_link.rb +2 -0
  36. data/lib/telegram/bot/types/chat_location.rb +1 -1
  37. data/lib/telegram/bot/types/chat_member.rb +4 -4
  38. data/lib/telegram/bot/types/chat_member_administrator.rb +3 -3
  39. data/lib/telegram/bot/types/chat_member_member.rb +1 -0
  40. data/lib/telegram/bot/types/chat_member_updated.rb +1 -0
  41. data/lib/telegram/bot/types/chat_shared.rb +3 -0
  42. data/lib/telegram/bot/types/copy_text_button.rb +11 -0
  43. data/lib/telegram/bot/types/error.rb +14 -0
  44. data/lib/telegram/bot/types/external_reply_info.rb +1 -0
  45. data/lib/telegram/bot/types/force_reply.rb +2 -2
  46. data/lib/telegram/bot/types/gift.rb +15 -0
  47. data/lib/telegram/bot/types/gifts.rb +11 -0
  48. data/lib/telegram/bot/types/giveaway.rb +1 -0
  49. data/lib/telegram/bot/types/giveaway_completed.rb +1 -0
  50. data/lib/telegram/bot/types/giveaway_created.rb +1 -0
  51. data/lib/telegram/bot/types/giveaway_winners.rb +1 -0
  52. data/lib/telegram/bot/types/inline_keyboard_button.rb +2 -1
  53. data/lib/telegram/bot/types/inline_query_result.rb +33 -0
  54. data/lib/telegram/bot/types/inline_query_result_cached_gif.rb +1 -0
  55. data/lib/telegram/bot/types/inline_query_result_cached_mpeg4_gif.rb +1 -0
  56. data/lib/telegram/bot/types/inline_query_result_cached_photo.rb +1 -0
  57. data/lib/telegram/bot/types/inline_query_result_cached_video.rb +1 -0
  58. data/lib/telegram/bot/types/inline_query_result_gif.rb +2 -1
  59. data/lib/telegram/bot/types/inline_query_result_mpeg4_gif.rb +2 -1
  60. data/lib/telegram/bot/types/inline_query_result_photo.rb +1 -0
  61. data/lib/telegram/bot/types/inline_query_result_video.rb +1 -0
  62. data/lib/telegram/bot/types/inline_query_results_button.rb +13 -0
  63. data/lib/telegram/bot/types/input_contact_message_content.rb +1 -1
  64. data/lib/telegram/bot/types/input_invoice_message_content.rb +5 -5
  65. data/lib/telegram/bot/types/input_location_message_content.rb +1 -1
  66. data/lib/telegram/bot/types/input_media.rb +18 -0
  67. data/lib/telegram/bot/types/input_media_animation.rb +1 -0
  68. data/lib/telegram/bot/types/input_media_photo.rb +1 -0
  69. data/lib/telegram/bot/types/input_media_video.rb +1 -0
  70. data/lib/telegram/bot/types/input_message_content.rb +10 -2
  71. data/lib/telegram/bot/types/input_paid_media.rb +15 -0
  72. data/lib/telegram/bot/types/input_paid_media_photo.rb +12 -0
  73. data/lib/telegram/bot/types/input_paid_media_video.rb +17 -0
  74. data/lib/telegram/bot/types/input_poll_option.rb +13 -0
  75. data/lib/telegram/bot/types/input_sticker.rb +15 -0
  76. data/lib/telegram/bot/types/input_text_message_content.rb +2 -2
  77. data/lib/telegram/bot/types/input_venue_message_content.rb +1 -1
  78. data/lib/telegram/bot/types/keyboard_button_request_chat.rb +3 -0
  79. data/lib/telegram/bot/types/keyboard_button_request_users.rb +3 -0
  80. data/lib/telegram/bot/types/location.rb +1 -1
  81. data/lib/telegram/bot/types/maybe_inaccessible_message.rb +4 -1
  82. data/lib/telegram/bot/types/menu_button.rb +16 -0
  83. data/lib/telegram/bot/types/message.rb +11 -0
  84. data/lib/telegram/bot/types/message_origin.rb +4 -1
  85. data/lib/telegram/bot/types/paid_media.rb +16 -0
  86. data/lib/telegram/bot/types/paid_media_info.rb +12 -0
  87. data/lib/telegram/bot/types/paid_media_photo.rb +12 -0
  88. data/lib/telegram/bot/types/paid_media_preview.rb +14 -0
  89. data/lib/telegram/bot/types/paid_media_purchased.rb +12 -0
  90. data/lib/telegram/bot/types/paid_media_video.rb +12 -0
  91. data/lib/telegram/bot/types/passport_element_error.rb +22 -0
  92. data/lib/telegram/bot/types/poll.rb +2 -1
  93. data/lib/telegram/bot/types/poll_option.rb +2 -1
  94. data/lib/telegram/bot/types/prepared_inline_message.rb +12 -0
  95. data/lib/telegram/bot/types/reaction_type.rb +6 -2
  96. data/lib/telegram/bot/types/reaction_type_paid.rb +11 -0
  97. data/lib/telegram/bot/types/refunded_payment.rb +15 -0
  98. data/lib/telegram/bot/types/reply_keyboard_markup.rb +2 -2
  99. data/lib/telegram/bot/types/reply_keyboard_remove.rb +1 -1
  100. data/lib/telegram/bot/types/response_parameters.rb +12 -0
  101. data/lib/telegram/bot/types/revenue_withdrawal_state.rb +16 -0
  102. data/lib/telegram/bot/types/revenue_withdrawal_state_failed.rb +11 -0
  103. data/lib/telegram/bot/types/revenue_withdrawal_state_pending.rb +11 -0
  104. data/lib/telegram/bot/types/revenue_withdrawal_state_succeeded.rb +13 -0
  105. data/lib/telegram/bot/types/shared_user.rb +15 -0
  106. data/lib/telegram/bot/types/star_transaction.rb +16 -0
  107. data/lib/telegram/bot/types/star_transactions.rb +11 -0
  108. data/lib/telegram/bot/types/sticker_set.rb +0 -2
  109. data/lib/telegram/bot/types/story.rb +4 -1
  110. data/lib/telegram/bot/types/successful_payment.rb +3 -0
  111. data/lib/telegram/bot/types/transaction_partner.rb +19 -0
  112. data/lib/telegram/bot/types/transaction_partner_affiliate_program.rb +13 -0
  113. data/lib/telegram/bot/types/transaction_partner_fragment.rb +12 -0
  114. data/lib/telegram/bot/types/transaction_partner_other.rb +11 -0
  115. data/lib/telegram/bot/types/transaction_partner_telegram_ads.rb +11 -0
  116. data/lib/telegram/bot/types/transaction_partner_telegram_api.rb +12 -0
  117. data/lib/telegram/bot/types/transaction_partner_user.rb +18 -0
  118. data/lib/telegram/bot/types/update.rb +5 -0
  119. data/lib/telegram/bot/types/user.rb +2 -0
  120. data/lib/telegram/bot/types/users_shared.rb +1 -1
  121. data/lib/telegram/bot/version.rb +1 -1
  122. data/rakelib/parse_schema.rake +73 -0
  123. data/rakelib/rebuild_types.rake +90 -0
  124. data/rakelib/templates/empty_type.erb +14 -0
  125. data/rakelib/templates/type.erb +13 -0
  126. data/telegram-bot-ruby.gemspec +1 -1
  127. metadata +66 -3
@@ -0,0 +1,90 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'json'
4
+ require 'erb'
5
+ DRY_TYPES = %w[string integer float decimal array hash symbol boolean date date_time time range].freeze
6
+
7
+ desc 'Rebuild types'
8
+ task :rebuild_types do
9
+ types = JSON.parse(File.read("#{__dir__}/../data/type_attributes.json"), symbolize_names: true)
10
+
11
+ types.each_pair do |name, attributes|
12
+ next build_empty_type(name, attributes) if attributes[:type].instance_of?(Array)
13
+
14
+ attributes.each_pair do |attr_name, properties|
15
+ attributes[attr_name][:type] = add_module_types(properties[:type]) unless properties[:type].is_a?(Array)
16
+ if properties[:type].is_a?(Array)
17
+ attributes[attr_name][:type] = properties[:type].map do |type|
18
+ add_module_types(type)
19
+ end.join(' | ')
20
+ end
21
+
22
+ if properties[:items].instance_of?(String)
23
+ attributes[attr_name][:type] += ".of(#{add_module_types(properties[:items])})"
24
+ elsif properties[:items] && properties[:items][:type] == 'array'
25
+ attributes[attr_name][:type] += ".of(Types::Array.of(#{properties[:items][:items]}))"
26
+ end
27
+ original_type = properties[:type]
28
+
29
+ attributes = apply_required(attributes, attr_name, properties, original_type)
30
+ attributes = apply_min_max(attributes, attr_name, properties)
31
+ attributes = apply_default(attributes, attr_name, properties, original_type)
32
+
33
+ attributes[attr_name][:type] = 'Types::True' if attributes[attr_name][:type] == 'Types::Boolean.default(true)'
34
+ attributes[attr_name][:type] = attributes[attr_name][:type].gsub('Types::Boolean', 'Types::Bool')
35
+ end
36
+
37
+ File.write "#{__dir__}/../lib/telegram/bot/types/#{underscore(name)}.rb",
38
+ ERB.new(File.read("#{__dir__}/templates/type.erb")).result(binding).gsub(" \n", '')
39
+ end
40
+ end
41
+
42
+ def build_empty_type(name, attributes)
43
+ attributes = attributes[:type].join(" |\n ")
44
+ File.write "#{__dir__}/../lib/telegram/bot/types/#{underscore(name)}.rb",
45
+ ERB.new(File.read("#{__dir__}/templates/empty_type.erb")).result(binding).gsub(" \n", '')
46
+ end
47
+
48
+ def apply_default(attributes, attr_name, properties, original_type)
49
+ return attributes if properties[:default].nil?
50
+
51
+ attributes[attr_name][:type] += ".default(#{typecast(original_type,
52
+ properties[:default])})"
53
+ attributes
54
+ end
55
+
56
+ def apply_required(attributes, attr_name, properties, original_type)
57
+ return attributes unless properties[:required_value]
58
+
59
+ attributes[attr_name][:type] += ".constrained(eql: #{typecast(original_type,
60
+ properties[:required_value])})"
61
+ attributes
62
+ end
63
+
64
+ def apply_min_max(attributes, attr_name, properties)
65
+ return attributes unless properties[:min_size] || properties[:max_size]
66
+
67
+ constrain = '.constrained(minmax)'
68
+ constrain = properties[:min_size] ? constrain.gsub('min', "min_size: #{properties[:min_size]}, ") : ''
69
+ constrain = constrain.gsub('max', "max_size: #{properties[:max_size]}") if properties[:max_size]
70
+ attributes[attr_name][:type] += constrain
71
+ attributes
72
+ end
73
+
74
+ def add_module_types(type)
75
+ return 'Types::Float' if type == 'number'
76
+
77
+ DRY_TYPES.include?(type) ? "Types::#{type.capitalize}" : type
78
+ end
79
+
80
+ def underscore(camel_cased_word)
81
+ camel_cased_word.to_s.gsub('::', '/')
82
+ .gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2')
83
+ .gsub(/([a-z\d])([A-Z])/, '\1_\2')
84
+ .tr('-', '_')
85
+ .downcase
86
+ end
87
+
88
+ def typecast(type, obj)
89
+ type == 'Types::String' ? "'#{obj}'" : obj
90
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telegram
4
+ module Bot
5
+ module Types
6
+ ## Just for classes consistency
7
+ # rubocop:disable Naming/ConstantName
8
+ <%= name %> = (
9
+ <%= attributes %>
10
+ )
11
+ # rubocop:enable Naming/ConstantName
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telegram
4
+ module Bot
5
+ module Types
6
+ class <%= name %> < Base
7
+ <% attributes.each_pair do |name, properties| %>
8
+ <%= "#{properties[:required] ? 'attribute' : 'attribute?'} :#{name}, #{properties[:type]}" %>
9
+ <% end %>
10
+ end
11
+ end
12
+ end
13
+ end
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.summary = "Ruby wrapper for Telegram's Bot API"
12
12
  spec.homepage = 'https://github.com/atipugin/telegram-bot'
13
13
 
14
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
14
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|data)/}) }
15
15
  spec.bindir = 'exe'
16
16
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
17
17
  spec.require_paths = ['lib']
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.2.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-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct
@@ -97,10 +97,22 @@ files:
97
97
  - lib/telegram/bot/exceptions/response_error.rb
98
98
  - lib/telegram/bot/null_logger.rb
99
99
  - lib/telegram/bot/types.rb
100
+ - lib/telegram/bot/types/affiliate_info.rb
100
101
  - lib/telegram/bot/types/animation.rb
101
102
  - lib/telegram/bot/types/audio.rb
103
+ - lib/telegram/bot/types/background_fill.rb
104
+ - lib/telegram/bot/types/background_fill_freeform_gradient.rb
105
+ - lib/telegram/bot/types/background_fill_gradient.rb
106
+ - lib/telegram/bot/types/background_fill_solid.rb
107
+ - lib/telegram/bot/types/background_type.rb
108
+ - lib/telegram/bot/types/background_type_chat_theme.rb
109
+ - lib/telegram/bot/types/background_type_fill.rb
110
+ - lib/telegram/bot/types/background_type_pattern.rb
111
+ - lib/telegram/bot/types/background_type_wallpaper.rb
102
112
  - lib/telegram/bot/types/base.rb
113
+ - lib/telegram/bot/types/birthdate.rb
103
114
  - lib/telegram/bot/types/bot_command.rb
115
+ - lib/telegram/bot/types/bot_command_scope.rb
104
116
  - lib/telegram/bot/types/bot_command_scope_all_chat_administrators.rb
105
117
  - lib/telegram/bot/types/bot_command_scope_all_group_chats.rb
106
118
  - lib/telegram/bot/types/bot_command_scope_all_private_chats.rb
@@ -111,17 +123,26 @@ files:
111
123
  - lib/telegram/bot/types/bot_description.rb
112
124
  - lib/telegram/bot/types/bot_name.rb
113
125
  - lib/telegram/bot/types/bot_short_description.rb
126
+ - lib/telegram/bot/types/business_connection.rb
127
+ - lib/telegram/bot/types/business_intro.rb
128
+ - lib/telegram/bot/types/business_location.rb
129
+ - lib/telegram/bot/types/business_messages_deleted.rb
130
+ - lib/telegram/bot/types/business_opening_hours.rb
131
+ - lib/telegram/bot/types/business_opening_hours_interval.rb
114
132
  - lib/telegram/bot/types/callback_game.rb
115
133
  - lib/telegram/bot/types/callback_query.rb
116
134
  - lib/telegram/bot/types/chat.rb
117
135
  - lib/telegram/bot/types/chat_administrator_rights.rb
136
+ - lib/telegram/bot/types/chat_background.rb
118
137
  - lib/telegram/bot/types/chat_boost.rb
138
+ - lib/telegram/bot/types/chat_boost_added.rb
119
139
  - lib/telegram/bot/types/chat_boost_removed.rb
120
140
  - lib/telegram/bot/types/chat_boost_source.rb
121
141
  - lib/telegram/bot/types/chat_boost_source_gift_code.rb
122
142
  - lib/telegram/bot/types/chat_boost_source_giveaway.rb
123
143
  - lib/telegram/bot/types/chat_boost_source_premium.rb
124
144
  - lib/telegram/bot/types/chat_boost_updated.rb
145
+ - lib/telegram/bot/types/chat_full_info.rb
125
146
  - lib/telegram/bot/types/chat_invite_link.rb
126
147
  - lib/telegram/bot/types/chat_join_request.rb
127
148
  - lib/telegram/bot/types/chat_location.rb
@@ -139,10 +160,12 @@ files:
139
160
  - lib/telegram/bot/types/chosen_inline_result.rb
140
161
  - lib/telegram/bot/types/compactable.rb
141
162
  - lib/telegram/bot/types/contact.rb
163
+ - lib/telegram/bot/types/copy_text_button.rb
142
164
  - lib/telegram/bot/types/dice.rb
143
165
  - lib/telegram/bot/types/document.rb
144
166
  - lib/telegram/bot/types/encrypted_credentials.rb
145
167
  - lib/telegram/bot/types/encrypted_passport_element.rb
168
+ - lib/telegram/bot/types/error.rb
146
169
  - lib/telegram/bot/types/external_reply_info.rb
147
170
  - lib/telegram/bot/types/file.rb
148
171
  - lib/telegram/bot/types/force_reply.rb
@@ -155,6 +178,8 @@ files:
155
178
  - lib/telegram/bot/types/game_high_score.rb
156
179
  - lib/telegram/bot/types/general_forum_topic_hidden.rb
157
180
  - lib/telegram/bot/types/general_forum_topic_unhidden.rb
181
+ - lib/telegram/bot/types/gift.rb
182
+ - lib/telegram/bot/types/gifts.rb
158
183
  - lib/telegram/bot/types/giveaway.rb
159
184
  - lib/telegram/bot/types/giveaway_completed.rb
160
185
  - lib/telegram/bot/types/giveaway_created.rb
@@ -163,6 +188,7 @@ files:
163
188
  - lib/telegram/bot/types/inline_keyboard_button.rb
164
189
  - lib/telegram/bot/types/inline_keyboard_markup.rb
165
190
  - lib/telegram/bot/types/inline_query.rb
191
+ - lib/telegram/bot/types/inline_query_result.rb
166
192
  - lib/telegram/bot/types/inline_query_result_article.rb
167
193
  - lib/telegram/bot/types/inline_query_result_audio.rb
168
194
  - lib/telegram/bot/types/inline_query_result_cached_audio.rb
@@ -183,15 +209,22 @@ files:
183
209
  - lib/telegram/bot/types/inline_query_result_venue.rb
184
210
  - lib/telegram/bot/types/inline_query_result_video.rb
185
211
  - lib/telegram/bot/types/inline_query_result_voice.rb
212
+ - lib/telegram/bot/types/inline_query_results_button.rb
186
213
  - lib/telegram/bot/types/input_contact_message_content.rb
187
214
  - lib/telegram/bot/types/input_invoice_message_content.rb
188
215
  - lib/telegram/bot/types/input_location_message_content.rb
216
+ - lib/telegram/bot/types/input_media.rb
189
217
  - lib/telegram/bot/types/input_media_animation.rb
190
218
  - lib/telegram/bot/types/input_media_audio.rb
191
219
  - lib/telegram/bot/types/input_media_document.rb
192
220
  - lib/telegram/bot/types/input_media_photo.rb
193
221
  - lib/telegram/bot/types/input_media_video.rb
194
222
  - lib/telegram/bot/types/input_message_content.rb
223
+ - lib/telegram/bot/types/input_paid_media.rb
224
+ - lib/telegram/bot/types/input_paid_media_photo.rb
225
+ - lib/telegram/bot/types/input_paid_media_video.rb
226
+ - lib/telegram/bot/types/input_poll_option.rb
227
+ - lib/telegram/bot/types/input_sticker.rb
195
228
  - lib/telegram/bot/types/input_text_message_content.rb
196
229
  - lib/telegram/bot/types/input_venue_message_content.rb
197
230
  - lib/telegram/bot/types/invoice.rb
@@ -205,6 +238,7 @@ files:
205
238
  - lib/telegram/bot/types/login_url.rb
206
239
  - lib/telegram/bot/types/mask_position.rb
207
240
  - lib/telegram/bot/types/maybe_inaccessible_message.rb
241
+ - lib/telegram/bot/types/menu_button.rb
208
242
  - lib/telegram/bot/types/menu_button_commands.rb
209
243
  - lib/telegram/bot/types/menu_button_default.rb
210
244
  - lib/telegram/bot/types/menu_button_web_app.rb
@@ -220,7 +254,14 @@ files:
220
254
  - lib/telegram/bot/types/message_reaction_count_updated.rb
221
255
  - lib/telegram/bot/types/message_reaction_updated.rb
222
256
  - lib/telegram/bot/types/order_info.rb
257
+ - lib/telegram/bot/types/paid_media.rb
258
+ - lib/telegram/bot/types/paid_media_info.rb
259
+ - lib/telegram/bot/types/paid_media_photo.rb
260
+ - lib/telegram/bot/types/paid_media_preview.rb
261
+ - lib/telegram/bot/types/paid_media_purchased.rb
262
+ - lib/telegram/bot/types/paid_media_video.rb
223
263
  - lib/telegram/bot/types/passport_data.rb
264
+ - lib/telegram/bot/types/passport_element_error.rb
224
265
  - lib/telegram/bot/types/passport_element_error_data_field.rb
225
266
  - lib/telegram/bot/types/passport_element_error_file.rb
226
267
  - lib/telegram/bot/types/passport_element_error_files.rb
@@ -237,24 +278,42 @@ files:
237
278
  - lib/telegram/bot/types/poll_answer.rb
238
279
  - lib/telegram/bot/types/poll_option.rb
239
280
  - lib/telegram/bot/types/pre_checkout_query.rb
281
+ - lib/telegram/bot/types/prepared_inline_message.rb
240
282
  - lib/telegram/bot/types/proximity_alert_triggered.rb
241
283
  - lib/telegram/bot/types/reaction_count.rb
242
284
  - lib/telegram/bot/types/reaction_type.rb
243
285
  - lib/telegram/bot/types/reaction_type_custom_emoji.rb
244
286
  - lib/telegram/bot/types/reaction_type_emoji.rb
287
+ - lib/telegram/bot/types/reaction_type_paid.rb
288
+ - lib/telegram/bot/types/refunded_payment.rb
245
289
  - lib/telegram/bot/types/reply_keyboard_markup.rb
246
290
  - lib/telegram/bot/types/reply_keyboard_remove.rb
247
291
  - lib/telegram/bot/types/reply_parameters.rb
292
+ - lib/telegram/bot/types/response_parameters.rb
293
+ - lib/telegram/bot/types/revenue_withdrawal_state.rb
294
+ - lib/telegram/bot/types/revenue_withdrawal_state_failed.rb
295
+ - lib/telegram/bot/types/revenue_withdrawal_state_pending.rb
296
+ - lib/telegram/bot/types/revenue_withdrawal_state_succeeded.rb
248
297
  - lib/telegram/bot/types/sent_web_app_message.rb
298
+ - lib/telegram/bot/types/shared_user.rb
249
299
  - lib/telegram/bot/types/shipping_address.rb
250
300
  - lib/telegram/bot/types/shipping_option.rb
251
301
  - lib/telegram/bot/types/shipping_query.rb
302
+ - lib/telegram/bot/types/star_transaction.rb
303
+ - lib/telegram/bot/types/star_transactions.rb
252
304
  - lib/telegram/bot/types/sticker.rb
253
305
  - lib/telegram/bot/types/sticker_set.rb
254
306
  - lib/telegram/bot/types/story.rb
255
307
  - lib/telegram/bot/types/successful_payment.rb
256
308
  - lib/telegram/bot/types/switch_inline_query_chosen_chat.rb
257
309
  - lib/telegram/bot/types/text_quote.rb
310
+ - lib/telegram/bot/types/transaction_partner.rb
311
+ - lib/telegram/bot/types/transaction_partner_affiliate_program.rb
312
+ - lib/telegram/bot/types/transaction_partner_fragment.rb
313
+ - lib/telegram/bot/types/transaction_partner_other.rb
314
+ - lib/telegram/bot/types/transaction_partner_telegram_ads.rb
315
+ - lib/telegram/bot/types/transaction_partner_telegram_api.rb
316
+ - lib/telegram/bot/types/transaction_partner_user.rb
258
317
  - lib/telegram/bot/types/update.rb
259
318
  - lib/telegram/bot/types/user.rb
260
319
  - lib/telegram/bot/types/user_chat_boosts.rb
@@ -273,6 +332,10 @@ files:
273
332
  - lib/telegram/bot/types/webhook_info.rb
274
333
  - lib/telegram/bot/types/write_access_allowed.rb
275
334
  - lib/telegram/bot/version.rb
335
+ - rakelib/parse_schema.rake
336
+ - rakelib/rebuild_types.rake
337
+ - rakelib/templates/empty_type.erb
338
+ - rakelib/templates/type.erb
276
339
  - telegram-bot-ruby.gemspec
277
340
  homepage: https://github.com/atipugin/telegram-bot
278
341
  licenses: []
@@ -293,7 +356,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
293
356
  - !ruby/object:Gem::Version
294
357
  version: '0'
295
358
  requirements: []
296
- rubygems_version: 3.5.5
359
+ rubygems_version: 3.5.16
297
360
  signing_key:
298
361
  specification_version: 4
299
362
  summary: Ruby wrapper for Telegram's Bot API