telegram-bot-ruby 1.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/.editorconfig +10 -0
- data/.github/workflows/ci.yml +0 -3
- data/.github/workflows/stale.yml +19 -0
- data/.gitignore +1 -0
- data/.rspec +1 -0
- data/.rubocop.yml +12 -7
- data/CHANGELOG.md +16 -0
- data/Gemfile +11 -3
- data/LICENSE +0 -1
- data/README.md +64 -20
- data/Rakefile +0 -43
- data/bin/console +4 -1
- data/lib/telegram/bot/api/endpoints.rb +124 -0
- data/lib/telegram/bot/api.rb +20 -44
- data/lib/telegram/bot/client.rb +9 -10
- data/lib/telegram/bot/exceptions/response_error.rb +2 -8
- data/lib/telegram/bot/types/animation.rb +1 -1
- data/lib/telegram/bot/types/audio.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/bot_command_scope_all_chat_administrators.rb +1 -1
- data/lib/telegram/bot/types/bot_command_scope_all_group_chats.rb +1 -1
- data/lib/telegram/bot/types/bot_command_scope_all_private_chats.rb +1 -1
- data/lib/telegram/bot/types/bot_command_scope_chat.rb +2 -2
- data/lib/telegram/bot/types/bot_command_scope_chat_administrators.rb +2 -2
- data/lib/telegram/bot/types/bot_command_scope_chat_member.rb +2 -2
- data/lib/telegram/bot/types/bot_command_scope_default.rb +1 -1
- data/lib/telegram/bot/types/bot_description.rb +11 -0
- data/lib/telegram/bot/types/bot_name.rb +11 -0
- data/lib/telegram/bot/types/bot_short_description.rb +11 -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/callback_query.rb +1 -1
- data/lib/telegram/bot/types/chat.rb +1 -22
- data/lib/telegram/bot/types/chat_administrator_rights.rb +3 -0
- data/lib/telegram/bot/types/chat_background.rb +11 -0
- data/lib/telegram/bot/types/chat_boost.rb +14 -0
- data/lib/telegram/bot/types/chat_boost_added.rb +11 -0
- data/lib/telegram/bot/types/chat_boost_removed.rb +14 -0
- data/lib/telegram/bot/types/chat_boost_source.rb +16 -0
- data/lib/telegram/bot/types/chat_boost_source_gift_code.rb +12 -0
- data/lib/telegram/bot/types/chat_boost_source_giveaway.rb +15 -0
- data/lib/telegram/bot/types/chat_boost_source_premium.rb +12 -0
- data/lib/telegram/bot/types/chat_boost_updated.rb +12 -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 +11 -2
- data/lib/telegram/bot/types/chat_member_administrator.rb +8 -5
- data/lib/telegram/bot/types/chat_member_banned.rb +2 -2
- data/lib/telegram/bot/types/chat_member_left.rb +2 -2
- data/lib/telegram/bot/types/chat_member_member.rb +3 -2
- data/lib/telegram/bot/types/chat_member_owner.rb +2 -2
- data/lib/telegram/bot/types/chat_member_restricted.rb +2 -2
- data/lib/telegram/bot/types/chat_member_updated.rb +2 -0
- data/lib/telegram/bot/types/chat_shared.rb +3 -0
- data/lib/telegram/bot/types/compactable.rb +2 -7
- data/lib/telegram/bot/types/copy_text_button.rb +11 -0
- data/lib/telegram/bot/types/document.rb +1 -1
- data/lib/telegram/bot/types/error.rb +14 -0
- data/lib/telegram/bot/types/external_reply_info.rb +34 -0
- data/lib/telegram/bot/types/force_reply.rb +3 -3
- 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 +19 -0
- data/lib/telegram/bot/types/giveaway_completed.rb +14 -0
- data/lib/telegram/bot/types/giveaway_created.rb +11 -0
- data/lib/telegram/bot/types/giveaway_winners.rb +22 -0
- data/lib/telegram/bot/types/inaccessible_message.rb +13 -0
- data/lib/telegram/bot/types/inline_keyboard_button.rb +2 -0
- data/lib/telegram/bot/types/inline_query_result.rb +33 -0
- data/lib/telegram/bot/types/inline_query_result_article.rb +4 -4
- data/lib/telegram/bot/types/inline_query_result_audio.rb +1 -1
- data/lib/telegram/bot/types/inline_query_result_cached_audio.rb +1 -1
- data/lib/telegram/bot/types/inline_query_result_cached_document.rb +1 -1
- data/lib/telegram/bot/types/inline_query_result_cached_gif.rb +2 -1
- data/lib/telegram/bot/types/inline_query_result_cached_mpeg4_gif.rb +2 -1
- data/lib/telegram/bot/types/inline_query_result_cached_photo.rb +2 -1
- data/lib/telegram/bot/types/inline_query_result_cached_sticker.rb +1 -1
- data/lib/telegram/bot/types/inline_query_result_cached_video.rb +2 -1
- data/lib/telegram/bot/types/inline_query_result_cached_voice.rb +1 -1
- data/lib/telegram/bot/types/inline_query_result_contact.rb +4 -4
- data/lib/telegram/bot/types/inline_query_result_document.rb +4 -4
- data/lib/telegram/bot/types/inline_query_result_game.rb +1 -1
- data/lib/telegram/bot/types/inline_query_result_gif.rb +4 -3
- data/lib/telegram/bot/types/inline_query_result_location.rb +4 -4
- data/lib/telegram/bot/types/inline_query_result_mpeg4_gif.rb +4 -3
- data/lib/telegram/bot/types/inline_query_result_photo.rb +3 -2
- data/lib/telegram/bot/types/inline_query_result_venue.rb +4 -4
- data/lib/telegram/bot/types/inline_query_result_video.rb +3 -2
- data/lib/telegram/bot/types/inline_query_result_voice.rb +1 -1
- 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 +3 -2
- data/lib/telegram/bot/types/input_media_audio.rb +2 -2
- data/lib/telegram/bot/types/input_media_document.rb +2 -2
- data/lib/telegram/bot/types/input_media_photo.rb +2 -1
- data/lib/telegram/bot/types/input_media_video.rb +3 -2
- 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 +3 -3
- data/lib/telegram/bot/types/input_venue_message_content.rb +1 -1
- data/lib/telegram/bot/types/keyboard_button.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 +17 -0
- data/lib/telegram/bot/types/link_preview_options.rb +15 -0
- data/lib/telegram/bot/types/location.rb +1 -1
- data/lib/telegram/bot/types/maybe_inaccessible_message.rb +15 -0
- data/lib/telegram/bot/types/menu_button.rb +16 -0
- data/lib/telegram/bot/types/menu_button_commands.rb +1 -1
- data/lib/telegram/bot/types/menu_button_default.rb +1 -1
- data/lib/telegram/bot/types/menu_button_web_app.rb +1 -1
- data/lib/telegram/bot/types/message.rb +30 -16
- data/lib/telegram/bot/types/message_id.rb +11 -0
- data/lib/telegram/bot/types/message_origin.rb +17 -0
- data/lib/telegram/bot/types/message_origin_channel.rb +15 -0
- data/lib/telegram/bot/types/message_origin_chat.rb +14 -0
- data/lib/telegram/bot/types/message_origin_hidden_user.rb +13 -0
- data/lib/telegram/bot/types/message_origin_user.rb +13 -0
- data/lib/telegram/bot/types/message_reaction_count_updated.rb +14 -0
- data/lib/telegram/bot/types/message_reaction_updated.rb +17 -0
- 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/passport_element_error_data_field.rb +1 -1
- data/lib/telegram/bot/types/passport_element_error_file.rb +1 -1
- data/lib/telegram/bot/types/passport_element_error_files.rb +2 -2
- data/lib/telegram/bot/types/passport_element_error_front_side.rb +1 -1
- data/lib/telegram/bot/types/passport_element_error_reverse_side.rb +1 -1
- data/lib/telegram/bot/types/passport_element_error_selfie.rb +1 -1
- data/lib/telegram/bot/types/passport_element_error_translation_file.rb +1 -1
- data/lib/telegram/bot/types/passport_element_error_translation_files.rb +2 -2
- data/lib/telegram/bot/types/passport_element_error_unspecified.rb +1 -1
- data/lib/telegram/bot/types/poll.rb +2 -1
- data/lib/telegram/bot/types/poll_answer.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_count.rb +12 -0
- data/lib/telegram/bot/types/reaction_type.rb +16 -0
- data/lib/telegram/bot/types/reaction_type_custom_emoji.rb +12 -0
- data/lib/telegram/bot/types/reaction_type_emoji.rb +12 -0
- 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 +2 -2
- data/lib/telegram/bot/types/reply_parameters.rb +17 -0
- 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.rb +2 -1
- data/lib/telegram/bot/types/sticker_set.rb +1 -3
- data/lib/telegram/bot/types/story.rb +12 -0
- data/lib/telegram/bot/types/successful_payment.rb +3 -0
- data/lib/telegram/bot/types/switch_inline_query_chosen_chat.rb +15 -0
- data/lib/telegram/bot/types/text_quote.rb +14 -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 +9 -0
- data/lib/telegram/bot/types/user.rb +4 -2
- data/lib/telegram/bot/types/user_chat_boosts.rb +11 -0
- data/lib/telegram/bot/types/{user_shared.rb → users_shared.rb} +2 -2
- data/lib/telegram/bot/types/video.rb +1 -1
- data/lib/telegram/bot/types/video_note.rb +1 -1
- data/lib/telegram/bot/types/webhook_info.rb +1 -1
- data/lib/telegram/bot/types/write_access_allowed.rb +3 -0
- data/lib/telegram/bot/version.rb +1 -1
- data/lib/telegram/bot.rb +1 -0
- data/rakelib/parse_schema.rake +73 -0
- data/rakelib/rebuild_types.rake +90 -0
- data/telegram-bot-ruby.gemspec +1 -4
- data/utility/empty_type.erb +14 -0
- data/utility/type.erb +13 -0
- data/utility/type_attributes.json +5138 -0
- metadata +105 -5
- data/lib/telegram/bot/types/keyboard_button_request_user.rb +0 -13
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: 1.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:
|
11
|
+
date: 2024-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|
@@ -73,8 +73,10 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
+
- ".editorconfig"
|
76
77
|
- ".env.sample"
|
77
78
|
- ".github/workflows/ci.yml"
|
79
|
+
- ".github/workflows/stale.yml"
|
78
80
|
- ".gitignore"
|
79
81
|
- ".rspec"
|
80
82
|
- ".rubocop.yml"
|
@@ -88,6 +90,7 @@ files:
|
|
88
90
|
- examples/bot.rb
|
89
91
|
- lib/telegram/bot.rb
|
90
92
|
- lib/telegram/bot/api.rb
|
93
|
+
- lib/telegram/bot/api/endpoints.rb
|
91
94
|
- lib/telegram/bot/client.rb
|
92
95
|
- lib/telegram/bot/configuration.rb
|
93
96
|
- lib/telegram/bot/exceptions/base.rb
|
@@ -96,8 +99,19 @@ files:
|
|
96
99
|
- lib/telegram/bot/types.rb
|
97
100
|
- lib/telegram/bot/types/animation.rb
|
98
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
|
99
111
|
- lib/telegram/bot/types/base.rb
|
112
|
+
- lib/telegram/bot/types/birthdate.rb
|
100
113
|
- lib/telegram/bot/types/bot_command.rb
|
114
|
+
- lib/telegram/bot/types/bot_command_scope.rb
|
101
115
|
- lib/telegram/bot/types/bot_command_scope_all_chat_administrators.rb
|
102
116
|
- lib/telegram/bot/types/bot_command_scope_all_group_chats.rb
|
103
117
|
- lib/telegram/bot/types/bot_command_scope_all_private_chats.rb
|
@@ -105,10 +119,29 @@ files:
|
|
105
119
|
- lib/telegram/bot/types/bot_command_scope_chat_administrators.rb
|
106
120
|
- lib/telegram/bot/types/bot_command_scope_chat_member.rb
|
107
121
|
- lib/telegram/bot/types/bot_command_scope_default.rb
|
122
|
+
- lib/telegram/bot/types/bot_description.rb
|
123
|
+
- lib/telegram/bot/types/bot_name.rb
|
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
|
108
131
|
- lib/telegram/bot/types/callback_game.rb
|
109
132
|
- lib/telegram/bot/types/callback_query.rb
|
110
133
|
- lib/telegram/bot/types/chat.rb
|
111
134
|
- lib/telegram/bot/types/chat_administrator_rights.rb
|
135
|
+
- lib/telegram/bot/types/chat_background.rb
|
136
|
+
- lib/telegram/bot/types/chat_boost.rb
|
137
|
+
- lib/telegram/bot/types/chat_boost_added.rb
|
138
|
+
- lib/telegram/bot/types/chat_boost_removed.rb
|
139
|
+
- lib/telegram/bot/types/chat_boost_source.rb
|
140
|
+
- lib/telegram/bot/types/chat_boost_source_gift_code.rb
|
141
|
+
- lib/telegram/bot/types/chat_boost_source_giveaway.rb
|
142
|
+
- lib/telegram/bot/types/chat_boost_source_premium.rb
|
143
|
+
- lib/telegram/bot/types/chat_boost_updated.rb
|
144
|
+
- lib/telegram/bot/types/chat_full_info.rb
|
112
145
|
- lib/telegram/bot/types/chat_invite_link.rb
|
113
146
|
- lib/telegram/bot/types/chat_join_request.rb
|
114
147
|
- lib/telegram/bot/types/chat_location.rb
|
@@ -126,10 +159,13 @@ files:
|
|
126
159
|
- lib/telegram/bot/types/chosen_inline_result.rb
|
127
160
|
- lib/telegram/bot/types/compactable.rb
|
128
161
|
- lib/telegram/bot/types/contact.rb
|
162
|
+
- lib/telegram/bot/types/copy_text_button.rb
|
129
163
|
- lib/telegram/bot/types/dice.rb
|
130
164
|
- lib/telegram/bot/types/document.rb
|
131
165
|
- lib/telegram/bot/types/encrypted_credentials.rb
|
132
166
|
- lib/telegram/bot/types/encrypted_passport_element.rb
|
167
|
+
- lib/telegram/bot/types/error.rb
|
168
|
+
- lib/telegram/bot/types/external_reply_info.rb
|
133
169
|
- lib/telegram/bot/types/file.rb
|
134
170
|
- lib/telegram/bot/types/force_reply.rb
|
135
171
|
- lib/telegram/bot/types/forum_topic.rb
|
@@ -141,9 +177,17 @@ files:
|
|
141
177
|
- lib/telegram/bot/types/game_high_score.rb
|
142
178
|
- lib/telegram/bot/types/general_forum_topic_hidden.rb
|
143
179
|
- lib/telegram/bot/types/general_forum_topic_unhidden.rb
|
180
|
+
- lib/telegram/bot/types/gift.rb
|
181
|
+
- lib/telegram/bot/types/gifts.rb
|
182
|
+
- lib/telegram/bot/types/giveaway.rb
|
183
|
+
- lib/telegram/bot/types/giveaway_completed.rb
|
184
|
+
- lib/telegram/bot/types/giveaway_created.rb
|
185
|
+
- lib/telegram/bot/types/giveaway_winners.rb
|
186
|
+
- lib/telegram/bot/types/inaccessible_message.rb
|
144
187
|
- lib/telegram/bot/types/inline_keyboard_button.rb
|
145
188
|
- lib/telegram/bot/types/inline_keyboard_markup.rb
|
146
189
|
- lib/telegram/bot/types/inline_query.rb
|
190
|
+
- lib/telegram/bot/types/inline_query_result.rb
|
147
191
|
- lib/telegram/bot/types/inline_query_result_article.rb
|
148
192
|
- lib/telegram/bot/types/inline_query_result_audio.rb
|
149
193
|
- lib/telegram/bot/types/inline_query_result_cached_audio.rb
|
@@ -164,34 +208,59 @@ files:
|
|
164
208
|
- lib/telegram/bot/types/inline_query_result_venue.rb
|
165
209
|
- lib/telegram/bot/types/inline_query_result_video.rb
|
166
210
|
- lib/telegram/bot/types/inline_query_result_voice.rb
|
211
|
+
- lib/telegram/bot/types/inline_query_results_button.rb
|
167
212
|
- lib/telegram/bot/types/input_contact_message_content.rb
|
168
213
|
- lib/telegram/bot/types/input_invoice_message_content.rb
|
169
214
|
- lib/telegram/bot/types/input_location_message_content.rb
|
215
|
+
- lib/telegram/bot/types/input_media.rb
|
170
216
|
- lib/telegram/bot/types/input_media_animation.rb
|
171
217
|
- lib/telegram/bot/types/input_media_audio.rb
|
172
218
|
- lib/telegram/bot/types/input_media_document.rb
|
173
219
|
- lib/telegram/bot/types/input_media_photo.rb
|
174
220
|
- lib/telegram/bot/types/input_media_video.rb
|
175
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
|
176
227
|
- lib/telegram/bot/types/input_text_message_content.rb
|
177
228
|
- lib/telegram/bot/types/input_venue_message_content.rb
|
178
229
|
- lib/telegram/bot/types/invoice.rb
|
179
230
|
- lib/telegram/bot/types/keyboard_button.rb
|
180
231
|
- lib/telegram/bot/types/keyboard_button_poll_type.rb
|
181
232
|
- lib/telegram/bot/types/keyboard_button_request_chat.rb
|
182
|
-
- lib/telegram/bot/types/
|
233
|
+
- lib/telegram/bot/types/keyboard_button_request_users.rb
|
183
234
|
- lib/telegram/bot/types/labeled_price.rb
|
235
|
+
- lib/telegram/bot/types/link_preview_options.rb
|
184
236
|
- lib/telegram/bot/types/location.rb
|
185
237
|
- lib/telegram/bot/types/login_url.rb
|
186
238
|
- lib/telegram/bot/types/mask_position.rb
|
239
|
+
- lib/telegram/bot/types/maybe_inaccessible_message.rb
|
240
|
+
- lib/telegram/bot/types/menu_button.rb
|
187
241
|
- lib/telegram/bot/types/menu_button_commands.rb
|
188
242
|
- lib/telegram/bot/types/menu_button_default.rb
|
189
243
|
- lib/telegram/bot/types/menu_button_web_app.rb
|
190
244
|
- lib/telegram/bot/types/message.rb
|
191
245
|
- lib/telegram/bot/types/message_auto_delete_timer_changed.rb
|
192
246
|
- lib/telegram/bot/types/message_entity.rb
|
247
|
+
- lib/telegram/bot/types/message_id.rb
|
248
|
+
- lib/telegram/bot/types/message_origin.rb
|
249
|
+
- lib/telegram/bot/types/message_origin_channel.rb
|
250
|
+
- lib/telegram/bot/types/message_origin_chat.rb
|
251
|
+
- lib/telegram/bot/types/message_origin_hidden_user.rb
|
252
|
+
- lib/telegram/bot/types/message_origin_user.rb
|
253
|
+
- lib/telegram/bot/types/message_reaction_count_updated.rb
|
254
|
+
- lib/telegram/bot/types/message_reaction_updated.rb
|
193
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
|
194
262
|
- lib/telegram/bot/types/passport_data.rb
|
263
|
+
- lib/telegram/bot/types/passport_element_error.rb
|
195
264
|
- lib/telegram/bot/types/passport_element_error_data_field.rb
|
196
265
|
- lib/telegram/bot/types/passport_element_error_file.rb
|
197
266
|
- lib/telegram/bot/types/passport_element_error_files.rb
|
@@ -208,20 +277,46 @@ files:
|
|
208
277
|
- lib/telegram/bot/types/poll_answer.rb
|
209
278
|
- lib/telegram/bot/types/poll_option.rb
|
210
279
|
- lib/telegram/bot/types/pre_checkout_query.rb
|
280
|
+
- lib/telegram/bot/types/prepared_inline_message.rb
|
211
281
|
- lib/telegram/bot/types/proximity_alert_triggered.rb
|
282
|
+
- lib/telegram/bot/types/reaction_count.rb
|
283
|
+
- lib/telegram/bot/types/reaction_type.rb
|
284
|
+
- lib/telegram/bot/types/reaction_type_custom_emoji.rb
|
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
|
212
288
|
- lib/telegram/bot/types/reply_keyboard_markup.rb
|
213
289
|
- lib/telegram/bot/types/reply_keyboard_remove.rb
|
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
|
214
296
|
- lib/telegram/bot/types/sent_web_app_message.rb
|
297
|
+
- lib/telegram/bot/types/shared_user.rb
|
215
298
|
- lib/telegram/bot/types/shipping_address.rb
|
216
299
|
- lib/telegram/bot/types/shipping_option.rb
|
217
300
|
- lib/telegram/bot/types/shipping_query.rb
|
301
|
+
- lib/telegram/bot/types/star_transaction.rb
|
302
|
+
- lib/telegram/bot/types/star_transactions.rb
|
218
303
|
- lib/telegram/bot/types/sticker.rb
|
219
304
|
- lib/telegram/bot/types/sticker_set.rb
|
305
|
+
- lib/telegram/bot/types/story.rb
|
220
306
|
- lib/telegram/bot/types/successful_payment.rb
|
307
|
+
- lib/telegram/bot/types/switch_inline_query_chosen_chat.rb
|
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
|
221
315
|
- lib/telegram/bot/types/update.rb
|
222
316
|
- lib/telegram/bot/types/user.rb
|
317
|
+
- lib/telegram/bot/types/user_chat_boosts.rb
|
223
318
|
- lib/telegram/bot/types/user_profile_photos.rb
|
224
|
-
- lib/telegram/bot/types/
|
319
|
+
- lib/telegram/bot/types/users_shared.rb
|
225
320
|
- lib/telegram/bot/types/venue.rb
|
226
321
|
- lib/telegram/bot/types/video.rb
|
227
322
|
- lib/telegram/bot/types/video_chat_ended.rb
|
@@ -235,7 +330,12 @@ files:
|
|
235
330
|
- lib/telegram/bot/types/webhook_info.rb
|
236
331
|
- lib/telegram/bot/types/write_access_allowed.rb
|
237
332
|
- lib/telegram/bot/version.rb
|
333
|
+
- rakelib/parse_schema.rake
|
334
|
+
- rakelib/rebuild_types.rake
|
238
335
|
- telegram-bot-ruby.gemspec
|
336
|
+
- utility/empty_type.erb
|
337
|
+
- utility/type.erb
|
338
|
+
- utility/type_attributes.json
|
239
339
|
homepage: https://github.com/atipugin/telegram-bot
|
240
340
|
licenses: []
|
241
341
|
metadata:
|
@@ -255,7 +355,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
255
355
|
- !ruby/object:Gem::Version
|
256
356
|
version: '0'
|
257
357
|
requirements: []
|
258
|
-
rubygems_version: 3.
|
358
|
+
rubygems_version: 3.5.16
|
259
359
|
signing_key:
|
260
360
|
specification_version: 4
|
261
361
|
summary: Ruby wrapper for Telegram's Bot API
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Telegram
|
4
|
-
module Bot
|
5
|
-
module Types
|
6
|
-
class KeyboardButtonRequestUser < Base
|
7
|
-
attribute :request_id, Types::Integer
|
8
|
-
attribute? :user_is_bot, Types::Bool
|
9
|
-
attribute? :user_is_premium, Types::Bool
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|