telegram-bot-ruby-rbs 0.1.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.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +42 -0
- data/sig/telegram/bot/api.rbs +690 -0
- data/sig/telegram/bot/core.rbs +50 -0
- data/sig/telegram/bot/types/accepted_gift_types.rbs +16 -0
- data/sig/telegram/bot/types/affiliate_info.rbs +16 -0
- data/sig/telegram/bot/types/animation.rbs +20 -0
- data/sig/telegram/bot/types/audio.rbs +20 -0
- data/sig/telegram/bot/types/background_fill_freeform_gradient.rbs +13 -0
- data/sig/telegram/bot/types/background_fill_gradient.rbs +15 -0
- data/sig/telegram/bot/types/background_fill_solid.rbs +13 -0
- data/sig/telegram/bot/types/background_type_chat_theme.rbs +13 -0
- data/sig/telegram/bot/types/background_type_fill.rbs +14 -0
- data/sig/telegram/bot/types/background_type_pattern.rbs +17 -0
- data/sig/telegram/bot/types/background_type_wallpaper.rbs +16 -0
- data/sig/telegram/bot/types/base.rbs +22 -0
- data/sig/telegram/bot/types/birthdate.rbs +14 -0
- data/sig/telegram/bot/types/bot_command.rbs +13 -0
- data/sig/telegram/bot/types/bot_command_scope_all_chat_administrators.rbs +12 -0
- data/sig/telegram/bot/types/bot_command_scope_all_group_chats.rbs +12 -0
- data/sig/telegram/bot/types/bot_command_scope_all_private_chats.rbs +12 -0
- data/sig/telegram/bot/types/bot_command_scope_chat.rbs +13 -0
- data/sig/telegram/bot/types/bot_command_scope_chat_administrators.rbs +13 -0
- data/sig/telegram/bot/types/bot_command_scope_chat_member.rbs +14 -0
- data/sig/telegram/bot/types/bot_command_scope_default.rbs +12 -0
- data/sig/telegram/bot/types/bot_description.rbs +12 -0
- data/sig/telegram/bot/types/bot_name.rbs +12 -0
- data/sig/telegram/bot/types/bot_short_description.rbs +12 -0
- data/sig/telegram/bot/types/business_bot_rights.rbs +25 -0
- data/sig/telegram/bot/types/business_connection.rbs +17 -0
- data/sig/telegram/bot/types/business_intro.rbs +14 -0
- data/sig/telegram/bot/types/business_location.rbs +13 -0
- data/sig/telegram/bot/types/business_messages_deleted.rbs +14 -0
- data/sig/telegram/bot/types/business_opening_hours.rbs +13 -0
- data/sig/telegram/bot/types/business_opening_hours_interval.rbs +13 -0
- data/sig/telegram/bot/types/callback_game.rbs +11 -0
- data/sig/telegram/bot/types/callback_query.rbs +19 -0
- data/sig/telegram/bot/types/chat.rbs +19 -0
- data/sig/telegram/bot/types/chat_administrator_rights.rbs +28 -0
- data/sig/telegram/bot/types/chat_background.rbs +12 -0
- data/sig/telegram/bot/types/chat_boost.rbs +15 -0
- data/sig/telegram/bot/types/chat_boost_added.rbs +12 -0
- data/sig/telegram/bot/types/chat_boost_removed.rbs +15 -0
- data/sig/telegram/bot/types/chat_boost_source_gift_code.rbs +13 -0
- data/sig/telegram/bot/types/chat_boost_source_giveaway.rbs +16 -0
- data/sig/telegram/bot/types/chat_boost_source_premium.rbs +13 -0
- data/sig/telegram/bot/types/chat_boost_updated.rbs +13 -0
- data/sig/telegram/bot/types/chat_full_info.rbs +62 -0
- data/sig/telegram/bot/types/chat_invite_link.rbs +22 -0
- data/sig/telegram/bot/types/chat_join_request.rbs +17 -0
- data/sig/telegram/bot/types/chat_location.rbs +13 -0
- data/sig/telegram/bot/types/chat_member_administrator.rbs +32 -0
- data/sig/telegram/bot/types/chat_member_banned.rbs +14 -0
- data/sig/telegram/bot/types/chat_member_left.rbs +13 -0
- data/sig/telegram/bot/types/chat_member_member.rbs +15 -0
- data/sig/telegram/bot/types/chat_member_owner.rbs +15 -0
- data/sig/telegram/bot/types/chat_member_restricted.rbs +31 -0
- data/sig/telegram/bot/types/chat_member_updated.rbs +19 -0
- data/sig/telegram/bot/types/chat_owner_changed.rbs +12 -0
- data/sig/telegram/bot/types/chat_owner_left.rbs +12 -0
- data/sig/telegram/bot/types/chat_permissions.rbs +26 -0
- data/sig/telegram/bot/types/chat_photo.rbs +15 -0
- data/sig/telegram/bot/types/chat_shared.rbs +16 -0
- data/sig/telegram/bot/types/checklist.rbs +16 -0
- data/sig/telegram/bot/types/checklist_task.rbs +17 -0
- data/sig/telegram/bot/types/checklist_tasks_added.rbs +13 -0
- data/sig/telegram/bot/types/checklist_tasks_done.rbs +14 -0
- data/sig/telegram/bot/types/chosen_inline_result.rbs +16 -0
- data/sig/telegram/bot/types/contact.rbs +16 -0
- data/sig/telegram/bot/types/copy_text_button.rbs +12 -0
- data/sig/telegram/bot/types/dice.rbs +13 -0
- data/sig/telegram/bot/types/direct_message_price_changed.rbs +13 -0
- data/sig/telegram/bot/types/direct_messages_topic.rbs +13 -0
- data/sig/telegram/bot/types/document.rbs +17 -0
- data/sig/telegram/bot/types/encrypted_credentials.rbs +14 -0
- data/sig/telegram/bot/types/encrypted_passport_element.rbs +21 -0
- data/sig/telegram/bot/types/error.rbs +15 -0
- data/sig/telegram/bot/types/external_reply_info.rbs +36 -0
- data/sig/telegram/bot/types/file.rbs +15 -0
- data/sig/telegram/bot/types/force_reply.rbs +14 -0
- data/sig/telegram/bot/types/forum_topic.rbs +16 -0
- data/sig/telegram/bot/types/forum_topic_closed.rbs +11 -0
- data/sig/telegram/bot/types/forum_topic_created.rbs +15 -0
- data/sig/telegram/bot/types/forum_topic_edited.rbs +13 -0
- data/sig/telegram/bot/types/forum_topic_reopened.rbs +11 -0
- data/sig/telegram/bot/types/game.rbs +17 -0
- data/sig/telegram/bot/types/game_high_score.rbs +14 -0
- data/sig/telegram/bot/types/general_forum_topic_hidden.rbs +11 -0
- data/sig/telegram/bot/types/general_forum_topic_unhidden.rbs +11 -0
- data/sig/telegram/bot/types/gift.rbs +24 -0
- data/sig/telegram/bot/types/gift_background.rbs +14 -0
- data/sig/telegram/bot/types/gift_info.rbs +21 -0
- data/sig/telegram/bot/types/gifts.rbs +12 -0
- data/sig/telegram/bot/types/giveaway.rbs +20 -0
- data/sig/telegram/bot/types/giveaway_completed.rbs +15 -0
- data/sig/telegram/bot/types/giveaway_created.rbs +12 -0
- data/sig/telegram/bot/types/giveaway_winners.rbs +23 -0
- data/sig/telegram/bot/types/inaccessible_message.rbs +14 -0
- data/sig/telegram/bot/types/inline_keyboard_button.rbs +24 -0
- data/sig/telegram/bot/types/inline_keyboard_markup.rbs +12 -0
- data/sig/telegram/bot/types/inline_query.rbs +17 -0
- data/sig/telegram/bot/types/inline_query_result_article.rbs +21 -0
- data/sig/telegram/bot/types/inline_query_result_audio.rbs +22 -0
- data/sig/telegram/bot/types/inline_query_result_cached_audio.rbs +19 -0
- data/sig/telegram/bot/types/inline_query_result_cached_document.rbs +21 -0
- data/sig/telegram/bot/types/inline_query_result_cached_gif.rbs +21 -0
- data/sig/telegram/bot/types/inline_query_result_cached_mpeg4_gif.rbs +21 -0
- data/sig/telegram/bot/types/inline_query_result_cached_photo.rbs +22 -0
- data/sig/telegram/bot/types/inline_query_result_cached_sticker.rbs +16 -0
- data/sig/telegram/bot/types/inline_query_result_cached_video.rbs +22 -0
- data/sig/telegram/bot/types/inline_query_result_cached_voice.rbs +20 -0
- data/sig/telegram/bot/types/inline_query_result_contact.rbs +22 -0
- data/sig/telegram/bot/types/inline_query_result_document.rbs +25 -0
- data/sig/telegram/bot/types/inline_query_result_game.rbs +15 -0
- data/sig/telegram/bot/types/inline_query_result_gif.rbs +26 -0
- data/sig/telegram/bot/types/inline_query_result_location.rbs +25 -0
- data/sig/telegram/bot/types/inline_query_result_mpeg4_gif.rbs +26 -0
- data/sig/telegram/bot/types/inline_query_result_photo.rbs +25 -0
- data/sig/telegram/bot/types/inline_query_result_venue.rbs +26 -0
- data/sig/telegram/bot/types/inline_query_result_video.rbs +27 -0
- data/sig/telegram/bot/types/inline_query_result_voice.rbs +21 -0
- data/sig/telegram/bot/types/inline_query_results_button.rbs +14 -0
- data/sig/telegram/bot/types/input_checklist.rbs +17 -0
- data/sig/telegram/bot/types/input_checklist_task.rbs +15 -0
- data/sig/telegram/bot/types/input_contact_message_content.rbs +15 -0
- data/sig/telegram/bot/types/input_file.rbs +11 -0
- data/sig/telegram/bot/types/input_invoice_message_content.rbs +31 -0
- data/sig/telegram/bot/types/input_location_message_content.rbs +17 -0
- data/sig/telegram/bot/types/input_media_animation.rbs +22 -0
- data/sig/telegram/bot/types/input_media_audio.rbs +20 -0
- data/sig/telegram/bot/types/input_media_document.rbs +18 -0
- data/sig/telegram/bot/types/input_media_photo.rbs +18 -0
- data/sig/telegram/bot/types/input_media_video.rbs +25 -0
- data/sig/telegram/bot/types/input_paid_media_photo.rbs +13 -0
- data/sig/telegram/bot/types/input_paid_media_video.rbs +20 -0
- data/sig/telegram/bot/types/input_poll_option.rbs +14 -0
- data/sig/telegram/bot/types/input_profile_photo_animated.rbs +14 -0
- data/sig/telegram/bot/types/input_profile_photo_static.rbs +13 -0
- data/sig/telegram/bot/types/input_sticker.rbs +16 -0
- data/sig/telegram/bot/types/input_story_content_photo.rbs +13 -0
- data/sig/telegram/bot/types/input_story_content_video.rbs +16 -0
- data/sig/telegram/bot/types/input_text_message_content.rbs +15 -0
- data/sig/telegram/bot/types/input_venue_message_content.rbs +19 -0
- data/sig/telegram/bot/types/invoice.rbs +16 -0
- data/sig/telegram/bot/types/keyboard_button.rbs +21 -0
- data/sig/telegram/bot/types/keyboard_button_poll_type.rbs +12 -0
- data/sig/telegram/bot/types/keyboard_button_request_chat.rbs +22 -0
- data/sig/telegram/bot/types/keyboard_button_request_managed_bot.rbs +14 -0
- data/sig/telegram/bot/types/keyboard_button_request_users.rbs +18 -0
- data/sig/telegram/bot/types/labeled_price.rbs +13 -0
- data/sig/telegram/bot/types/link_preview_options.rbs +16 -0
- data/sig/telegram/bot/types/location.rbs +17 -0
- data/sig/telegram/bot/types/location_address.rbs +15 -0
- data/sig/telegram/bot/types/login_url.rbs +15 -0
- data/sig/telegram/bot/types/managed_bot_created.rbs +12 -0
- data/sig/telegram/bot/types/managed_bot_updated.rbs +13 -0
- data/sig/telegram/bot/types/mask_position.rbs +15 -0
- data/sig/telegram/bot/types/menu_button_commands.rbs +12 -0
- data/sig/telegram/bot/types/menu_button_default.rbs +12 -0
- data/sig/telegram/bot/types/menu_button_web_app.rbs +14 -0
- data/sig/telegram/bot/types/message.rbs +122 -0
- data/sig/telegram/bot/types/message_auto_delete_timer_changed.rbs +12 -0
- data/sig/telegram/bot/types/message_entity.rbs +20 -0
- data/sig/telegram/bot/types/message_id.rbs +12 -0
- data/sig/telegram/bot/types/message_origin_channel.rbs +16 -0
- data/sig/telegram/bot/types/message_origin_chat.rbs +15 -0
- data/sig/telegram/bot/types/message_origin_hidden_user.rbs +14 -0
- data/sig/telegram/bot/types/message_origin_user.rbs +14 -0
- data/sig/telegram/bot/types/message_reaction_count_updated.rbs +15 -0
- data/sig/telegram/bot/types/message_reaction_updated.rbs +18 -0
- data/sig/telegram/bot/types/order_info.rbs +15 -0
- data/sig/telegram/bot/types/owned_gift_regular.rbs +26 -0
- data/sig/telegram/bot/types/owned_gift_unique.rbs +20 -0
- data/sig/telegram/bot/types/owned_gifts.rbs +14 -0
- data/sig/telegram/bot/types/paid_media_info.rbs +13 -0
- data/sig/telegram/bot/types/paid_media_photo.rbs +13 -0
- data/sig/telegram/bot/types/paid_media_preview.rbs +15 -0
- data/sig/telegram/bot/types/paid_media_purchased.rbs +13 -0
- data/sig/telegram/bot/types/paid_media_video.rbs +13 -0
- data/sig/telegram/bot/types/paid_message_price_changed.rbs +12 -0
- data/sig/telegram/bot/types/passport_data.rbs +13 -0
- data/sig/telegram/bot/types/passport_element_error_data_field.rbs +16 -0
- data/sig/telegram/bot/types/passport_element_error_file.rbs +15 -0
- data/sig/telegram/bot/types/passport_element_error_files.rbs +15 -0
- data/sig/telegram/bot/types/passport_element_error_front_side.rbs +15 -0
- data/sig/telegram/bot/types/passport_element_error_reverse_side.rbs +15 -0
- data/sig/telegram/bot/types/passport_element_error_selfie.rbs +15 -0
- data/sig/telegram/bot/types/passport_element_error_translation_file.rbs +15 -0
- data/sig/telegram/bot/types/passport_element_error_translation_files.rbs +15 -0
- data/sig/telegram/bot/types/passport_element_error_unspecified.rbs +15 -0
- data/sig/telegram/bot/types/passport_file.rbs +15 -0
- data/sig/telegram/bot/types/photo_size.rbs +16 -0
- data/sig/telegram/bot/types/poll.rbs +28 -0
- data/sig/telegram/bot/types/poll_answer.rbs +16 -0
- data/sig/telegram/bot/types/poll_option.rbs +18 -0
- data/sig/telegram/bot/types/poll_option_added.rbs +15 -0
- data/sig/telegram/bot/types/poll_option_deleted.rbs +15 -0
- data/sig/telegram/bot/types/pre_checkout_query.rbs +18 -0
- data/sig/telegram/bot/types/prepared_inline_message.rbs +13 -0
- data/sig/telegram/bot/types/prepared_keyboard_button.rbs +12 -0
- data/sig/telegram/bot/types/proximity_alert_triggered.rbs +14 -0
- data/sig/telegram/bot/types/reaction_count.rbs +13 -0
- data/sig/telegram/bot/types/reaction_type_custom_emoji.rbs +13 -0
- data/sig/telegram/bot/types/reaction_type_emoji.rbs +13 -0
- data/sig/telegram/bot/types/reaction_type_paid.rbs +12 -0
- data/sig/telegram/bot/types/refunded_payment.rbs +16 -0
- data/sig/telegram/bot/types/reply_keyboard_markup.rbs +17 -0
- data/sig/telegram/bot/types/reply_keyboard_remove.rbs +13 -0
- data/sig/telegram/bot/types/reply_parameters.rbs +20 -0
- data/sig/telegram/bot/types/response_parameters.rbs +13 -0
- data/sig/telegram/bot/types/revenue_withdrawal_state_failed.rbs +12 -0
- data/sig/telegram/bot/types/revenue_withdrawal_state_pending.rbs +12 -0
- data/sig/telegram/bot/types/revenue_withdrawal_state_succeeded.rbs +14 -0
- data/sig/telegram/bot/types/sent_web_app_message.rbs +12 -0
- data/sig/telegram/bot/types/shared_user.rbs +16 -0
- data/sig/telegram/bot/types/shipping_address.rbs +17 -0
- data/sig/telegram/bot/types/shipping_option.rbs +14 -0
- data/sig/telegram/bot/types/shipping_query.rbs +15 -0
- data/sig/telegram/bot/types/star_amount.rbs +13 -0
- data/sig/telegram/bot/types/star_transaction.rbs +17 -0
- data/sig/telegram/bot/types/star_transactions.rbs +12 -0
- data/sig/telegram/bot/types/sticker.rbs +26 -0
- data/sig/telegram/bot/types/sticker_set.rbs +16 -0
- data/sig/telegram/bot/types/story.rbs +13 -0
- data/sig/telegram/bot/types/story_area.rbs +13 -0
- data/sig/telegram/bot/types/story_area_position.rbs +17 -0
- data/sig/telegram/bot/types/story_area_type_link.rbs +13 -0
- data/sig/telegram/bot/types/story_area_type_location.rbs +15 -0
- data/sig/telegram/bot/types/story_area_type_suggested_reaction.rbs +15 -0
- data/sig/telegram/bot/types/story_area_type_unique_gift.rbs +13 -0
- data/sig/telegram/bot/types/story_area_type_weather.rbs +15 -0
- data/sig/telegram/bot/types/successful_payment.rbs +21 -0
- data/sig/telegram/bot/types/suggested_post_approval_failed.rbs +13 -0
- data/sig/telegram/bot/types/suggested_post_approved.rbs +14 -0
- data/sig/telegram/bot/types/suggested_post_declined.rbs +13 -0
- data/sig/telegram/bot/types/suggested_post_info.rbs +14 -0
- data/sig/telegram/bot/types/suggested_post_paid.rbs +15 -0
- data/sig/telegram/bot/types/suggested_post_parameters.rbs +13 -0
- data/sig/telegram/bot/types/suggested_post_price.rbs +13 -0
- data/sig/telegram/bot/types/suggested_post_refunded.rbs +13 -0
- data/sig/telegram/bot/types/switch_inline_query_chosen_chat.rbs +16 -0
- data/sig/telegram/bot/types/text_quote.rbs +15 -0
- data/sig/telegram/bot/types/transaction_partner_affiliate_program.rbs +14 -0
- data/sig/telegram/bot/types/transaction_partner_chat.rbs +14 -0
- data/sig/telegram/bot/types/transaction_partner_fragment.rbs +13 -0
- data/sig/telegram/bot/types/transaction_partner_other.rbs +12 -0
- data/sig/telegram/bot/types/transaction_partner_telegram_ads.rbs +12 -0
- data/sig/telegram/bot/types/transaction_partner_telegram_api.rbs +13 -0
- data/sig/telegram/bot/types/transaction_partner_user.rbs +21 -0
- data/sig/telegram/bot/types/unions.rbs +69 -0
- data/sig/telegram/bot/types/unique_gift.rbs +23 -0
- data/sig/telegram/bot/types/unique_gift_backdrop.rbs +14 -0
- data/sig/telegram/bot/types/unique_gift_backdrop_colors.rbs +15 -0
- data/sig/telegram/bot/types/unique_gift_colors.rbs +17 -0
- data/sig/telegram/bot/types/unique_gift_info.rbs +18 -0
- data/sig/telegram/bot/types/unique_gift_model.rbs +15 -0
- data/sig/telegram/bot/types/unique_gift_symbol.rbs +14 -0
- data/sig/telegram/bot/types/update.rbs +37 -0
- data/sig/telegram/bot/types/user.rbs +27 -0
- data/sig/telegram/bot/types/user_chat_boosts.rbs +12 -0
- data/sig/telegram/bot/types/user_profile_audios.rbs +13 -0
- data/sig/telegram/bot/types/user_profile_photos.rbs +13 -0
- data/sig/telegram/bot/types/user_rating.rbs +15 -0
- data/sig/telegram/bot/types/users_shared.rbs +13 -0
- data/sig/telegram/bot/types/venue.rbs +18 -0
- data/sig/telegram/bot/types/video.rbs +23 -0
- data/sig/telegram/bot/types/video_chat_ended.rbs +12 -0
- data/sig/telegram/bot/types/video_chat_participants_invited.rbs +12 -0
- data/sig/telegram/bot/types/video_chat_scheduled.rbs +12 -0
- data/sig/telegram/bot/types/video_chat_started.rbs +11 -0
- data/sig/telegram/bot/types/video_note.rbs +17 -0
- data/sig/telegram/bot/types/video_quality.rbs +17 -0
- data/sig/telegram/bot/types/voice.rbs +16 -0
- data/sig/telegram/bot/types/web_app_data.rbs +13 -0
- data/sig/telegram/bot/types/web_app_info.rbs +12 -0
- data/sig/telegram/bot/types/webhook_info.rbs +20 -0
- data/sig/telegram/bot/types/write_access_allowed.rbs +14 -0
- metadata +340 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: a2b5abba0048a59d00fa36de18c1b0c17ce530f3f56796642bd3114ce4edf2a4
|
|
4
|
+
data.tar.gz: 83e0e5918dcf00aa5cda3b7365ca661fed37df22c4162d66db0d1727f9397351
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: d716a4e5b10435efb5a71ccc148c225194d0e737b8d1114968afd3f6b6cacfb1e445dd465eb0ecf506eccdc0fc46ac71aa15aea0f3c82323fa64a24e48293885
|
|
7
|
+
data.tar.gz: 15d648384226a12c5b0640f338a19ce2852de51ce9f4bbbdac295f002c856d1544e71aa85cef7ff8d44872d8a22f854b1ad7ca38156d29bc4e5f8dd0c7e7fd9c
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ldebortoli
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# telegram-bot-ruby-rbs
|
|
2
|
+
|
|
3
|
+
RBS signatures for [`telegram-bot-ruby`](https://github.com/atipugin/telegram-bot-ruby), generated from the wrapper's real Ruby surface and checked against the [official Telegram Bot API](https://core.telegram.org/bots/api).
|
|
4
|
+
|
|
5
|
+
Version `0.1.x` targets `telegram-bot-ruby >= 2.7.0, < 2.8`. The current normalized documentation snapshot is Telegram Bot API 10.2.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Add both gems to your bundle:
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
gem "telegram-bot-ruby", "~> 2.7.0"
|
|
13
|
+
gem "telegram-bot-ruby-rbs", "~> 0.1.0", require: false
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
RBS, Steep and compatible editors discover the `.rbs` files from the installed gem's `sig/` directory. This gem adds no runtime behavior.
|
|
17
|
+
|
|
18
|
+
## What is covered
|
|
19
|
+
|
|
20
|
+
- every concrete `Telegram::Bot::Types` class and every Dry::Struct-generated reader;
|
|
21
|
+
- typed constructors, including required and optional attributes;
|
|
22
|
+
- every endpoint accepted by `Telegram::Bot::Api#method_missing`, in snake_case and Telegram camelCase forms;
|
|
23
|
+
- `Client`, `Api`, configuration, exceptions and helper modules;
|
|
24
|
+
- union constants represented as RBS type aliases.
|
|
25
|
+
|
|
26
|
+
Telegram's official API can move ahead of the wrapper. `data/compatibility.yml` records methods, types and fields present in the official documentation but not yet implemented by `telegram-bot-ruby`; signatures deliberately do not promise missing runtime constants or response conversions.
|
|
27
|
+
|
|
28
|
+
## Development
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
bundle install
|
|
32
|
+
bundle exec rake update_api # fetch and normalize the official documentation
|
|
33
|
+
bundle exec rake generate # regenerate sig/ and the compatibility report
|
|
34
|
+
bundle exec rake # tests plus rbs validate
|
|
35
|
+
bundle exec rake build
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The generated files are committed so consumers never need network access or generator dependencies.
|
|
39
|
+
|
|
40
|
+
## License
|
|
41
|
+
|
|
42
|
+
MIT. Telegram Bot API names and facts are sourced from Telegram's official documentation; `telegram-bot-ruby` remains under its own license.
|