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
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
VERSION: String
|
|
5
|
+
|
|
6
|
+
def self.configuration: () -> Configuration
|
|
7
|
+
def self.configuration=: (Configuration) -> Configuration
|
|
8
|
+
def self.configure: () { (Configuration) -> void } -> void
|
|
9
|
+
|
|
10
|
+
class Configuration
|
|
11
|
+
attr_accessor adapter: Symbol
|
|
12
|
+
attr_accessor adapter_options: Hash[Symbol, untyped]?
|
|
13
|
+
attr_accessor connection_open_timeout: Numeric
|
|
14
|
+
attr_accessor connection_timeout: Numeric
|
|
15
|
+
|
|
16
|
+
def initialize: () -> void
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
class Client
|
|
20
|
+
attr_reader api: Api
|
|
21
|
+
attr_reader options: Hash[Symbol, untyped]
|
|
22
|
+
attr_accessor logger: Logger
|
|
23
|
+
|
|
24
|
+
def self.run: [T] (String token, ?Hash[Symbol, untyped] options) { (Client) -> T } -> T
|
|
25
|
+
def initialize: (String token, ?Hash[Symbol, untyped] options) -> void
|
|
26
|
+
def run: [T] () { (Client) -> T } -> T
|
|
27
|
+
def listen: () { (Types::Base?) -> void } -> nil
|
|
28
|
+
def stop: () -> false
|
|
29
|
+
def fetch_updates: () { (Types::Base?) -> void } -> void
|
|
30
|
+
def handle_update: (Types::Update update) -> Types::Base?
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
class NullLogger < Logger
|
|
34
|
+
def initialize: (*untyped) -> void
|
|
35
|
+
def add: (*untyped) -> nil
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
module Exceptions
|
|
39
|
+
class Base < StandardError
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
class ResponseError < Base
|
|
43
|
+
attr_reader response: untyped
|
|
44
|
+
def initialize: (response: untyped) -> void
|
|
45
|
+
def error_code: () -> Integer?
|
|
46
|
+
def data: () -> Hash[Symbol | String, untyped]
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class AcceptedGiftTypes < Base
|
|
6
|
+
def self.new: (unlimited_gifts: bool, limited_gifts: bool, unique_gifts: bool, premium_subscription: bool, gifts_from_channels: bool) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader unlimited_gifts: bool
|
|
9
|
+
attr_reader limited_gifts: bool
|
|
10
|
+
attr_reader unique_gifts: bool
|
|
11
|
+
attr_reader premium_subscription: bool
|
|
12
|
+
attr_reader gifts_from_channels: bool
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class AffiliateInfo < Base
|
|
6
|
+
def self.new: (?affiliate_user: User, ?affiliate_chat: Chat, commission_per_mille: Integer, amount: Integer, ?nanostar_amount: Integer) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader affiliate_user: User?
|
|
9
|
+
attr_reader affiliate_chat: Chat?
|
|
10
|
+
attr_reader commission_per_mille: Integer
|
|
11
|
+
attr_reader amount: Integer
|
|
12
|
+
attr_reader nanostar_amount: Integer?
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class Animation < Base
|
|
6
|
+
def self.new: (file_id: String, file_unique_id: String, width: Integer, height: Integer, duration: Integer, ?thumbnail: PhotoSize, ?file_name: String, ?mime_type: String, ?file_size: Integer) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader file_id: String
|
|
9
|
+
attr_reader file_unique_id: String
|
|
10
|
+
attr_reader width: Integer
|
|
11
|
+
attr_reader height: Integer
|
|
12
|
+
attr_reader duration: Integer
|
|
13
|
+
attr_reader thumbnail: PhotoSize?
|
|
14
|
+
attr_reader file_name: String?
|
|
15
|
+
attr_reader mime_type: String?
|
|
16
|
+
attr_reader file_size: Integer?
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class Audio < Base
|
|
6
|
+
def self.new: (file_id: String, file_unique_id: String, duration: Integer, ?performer: String, ?title: String, ?file_name: String, ?mime_type: String, ?file_size: Integer, ?thumbnail: PhotoSize) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader file_id: String
|
|
9
|
+
attr_reader file_unique_id: String
|
|
10
|
+
attr_reader duration: Integer
|
|
11
|
+
attr_reader performer: String?
|
|
12
|
+
attr_reader title: String?
|
|
13
|
+
attr_reader file_name: String?
|
|
14
|
+
attr_reader mime_type: String?
|
|
15
|
+
attr_reader file_size: Integer?
|
|
16
|
+
attr_reader thumbnail: PhotoSize?
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BackgroundFillFreeformGradient < Base
|
|
6
|
+
def self.new: (?type: String, colors: Array[Integer]) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
attr_reader colors: Array[Integer]
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BackgroundFillGradient < Base
|
|
6
|
+
def self.new: (?type: String, top_color: Integer, bottom_color: Integer, rotation_angle: Integer) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
attr_reader top_color: Integer
|
|
10
|
+
attr_reader bottom_color: Integer
|
|
11
|
+
attr_reader rotation_angle: Integer
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BackgroundFillSolid < Base
|
|
6
|
+
def self.new: (?type: String, color: Integer) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
attr_reader color: Integer
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BackgroundTypeChatTheme < Base
|
|
6
|
+
def self.new: (?type: String, theme_name: String) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
attr_reader theme_name: String
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BackgroundTypeFill < Base
|
|
6
|
+
def self.new: (?type: String, fill: background_fill, dark_theme_dimming: Integer) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
attr_reader fill: background_fill
|
|
10
|
+
attr_reader dark_theme_dimming: Integer
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BackgroundTypePattern < Base
|
|
6
|
+
def self.new: (?type: String, document: Document, fill: background_fill, intensity: Integer, ?is_inverted: true, ?is_moving: true) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
attr_reader document: Document
|
|
10
|
+
attr_reader fill: background_fill
|
|
11
|
+
attr_reader intensity: Integer
|
|
12
|
+
attr_reader is_inverted: true?
|
|
13
|
+
attr_reader is_moving: true?
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BackgroundTypeWallpaper < Base
|
|
6
|
+
def self.new: (?type: String, document: Document, dark_theme_dimming: Integer, ?is_blurred: true, ?is_moving: true) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
attr_reader document: Document
|
|
10
|
+
attr_reader dark_theme_dimming: Integer
|
|
11
|
+
attr_reader is_blurred: true?
|
|
12
|
+
attr_reader is_moving: true?
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
module Compactable
|
|
6
|
+
def to_compact_hash: () -> Hash[Symbol, untyped]
|
|
7
|
+
def to_json: (*untyped args) -> String
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
module PatternMatching
|
|
11
|
+
def deconstruct_keys: (Array[Symbol]? keys) -> Hash[Symbol, untyped]
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
class Base
|
|
15
|
+
include Compactable
|
|
16
|
+
include PatternMatching
|
|
17
|
+
|
|
18
|
+
attr_reader attributes: Hash[Symbol, untyped]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class Birthdate < Base
|
|
6
|
+
def self.new: (day: Integer, month: Integer, ?year: Integer) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader day: Integer
|
|
9
|
+
attr_reader month: Integer
|
|
10
|
+
attr_reader year: Integer?
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BotCommand < Base
|
|
6
|
+
def self.new: (command: String, description: String) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader command: String
|
|
9
|
+
attr_reader description: String
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BotCommandScopeAllChatAdministrators < Base
|
|
6
|
+
def self.new: (?type: String) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BotCommandScopeAllGroupChats < Base
|
|
6
|
+
def self.new: (?type: String) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BotCommandScopeAllPrivateChats < Base
|
|
6
|
+
def self.new: (?type: String) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BotCommandScopeChat < Base
|
|
6
|
+
def self.new: (?type: String, chat_id: (Integer | String)) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
attr_reader chat_id: (Integer | String)
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BotCommandScopeChatAdministrators < Base
|
|
6
|
+
def self.new: (?type: String, chat_id: (Integer | String)) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
attr_reader chat_id: (Integer | String)
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BotCommandScopeChatMember < Base
|
|
6
|
+
def self.new: (?type: String, chat_id: (Integer | String), user_id: Integer) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
attr_reader chat_id: (Integer | String)
|
|
10
|
+
attr_reader user_id: Integer
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BotCommandScopeDefault < Base
|
|
6
|
+
def self.new: (?type: String) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BotDescription < Base
|
|
6
|
+
def self.new: (description: String) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader description: String
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BotName < Base
|
|
6
|
+
def self.new: (name: String) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader name: String
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BotShortDescription < Base
|
|
6
|
+
def self.new: (short_description: String) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader short_description: String
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BusinessBotRights < Base
|
|
6
|
+
def self.new: (?can_reply: true, ?can_read_messages: true, ?can_delete_sent_messages: true, ?can_delete_all_messages: true, ?can_edit_name: true, ?can_edit_bio: true, ?can_edit_profile_photo: true, ?can_edit_username: true, ?can_change_gift_settings: true, ?can_view_gifts_and_stars: true, ?can_convert_gifts_to_stars: true, ?can_transfer_and_upgrade_gifts: true, ?can_transfer_stars: true, ?can_manage_stories: true) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader can_reply: true?
|
|
9
|
+
attr_reader can_read_messages: true?
|
|
10
|
+
attr_reader can_delete_sent_messages: true?
|
|
11
|
+
attr_reader can_delete_all_messages: true?
|
|
12
|
+
attr_reader can_edit_name: true?
|
|
13
|
+
attr_reader can_edit_bio: true?
|
|
14
|
+
attr_reader can_edit_profile_photo: true?
|
|
15
|
+
attr_reader can_edit_username: true?
|
|
16
|
+
attr_reader can_change_gift_settings: true?
|
|
17
|
+
attr_reader can_view_gifts_and_stars: true?
|
|
18
|
+
attr_reader can_convert_gifts_to_stars: true?
|
|
19
|
+
attr_reader can_transfer_and_upgrade_gifts: true?
|
|
20
|
+
attr_reader can_transfer_stars: true?
|
|
21
|
+
attr_reader can_manage_stories: true?
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BusinessConnection < Base
|
|
6
|
+
def self.new: (id: String, user: User, user_chat_id: Integer, date: Integer, ?rights: BusinessBotRights, is_enabled: bool) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader id: String
|
|
9
|
+
attr_reader user: User
|
|
10
|
+
attr_reader user_chat_id: Integer
|
|
11
|
+
attr_reader date: Integer
|
|
12
|
+
attr_reader rights: BusinessBotRights?
|
|
13
|
+
attr_reader is_enabled: bool
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BusinessIntro < Base
|
|
6
|
+
def self.new: (?title: String, ?message: String, ?sticker: Sticker) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader title: String?
|
|
9
|
+
attr_reader message: String?
|
|
10
|
+
attr_reader sticker: Sticker?
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BusinessLocation < Base
|
|
6
|
+
def self.new: (address: String, ?location: Location) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader address: String
|
|
9
|
+
attr_reader location: Location?
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BusinessMessagesDeleted < Base
|
|
6
|
+
def self.new: (business_connection_id: String, chat: Chat, message_ids: Array[Integer]) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader business_connection_id: String
|
|
9
|
+
attr_reader chat: Chat
|
|
10
|
+
attr_reader message_ids: Array[Integer]
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BusinessOpeningHours < Base
|
|
6
|
+
def self.new: (time_zone_name: String, opening_hours: Array[BusinessOpeningHoursInterval]) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader time_zone_name: String
|
|
9
|
+
attr_reader opening_hours: Array[BusinessOpeningHoursInterval]
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class BusinessOpeningHoursInterval < Base
|
|
6
|
+
def self.new: (opening_minute: Integer, closing_minute: Integer) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader opening_minute: Integer
|
|
9
|
+
attr_reader closing_minute: Integer
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class CallbackQuery < Base
|
|
6
|
+
def self.new: (id: String, from: User, ?message: maybe_inaccessible_message, ?inline_message_id: String, chat_instance: String, ?data: String, ?game_short_name: String) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader id: String
|
|
9
|
+
attr_reader from: User
|
|
10
|
+
attr_reader message: maybe_inaccessible_message?
|
|
11
|
+
attr_reader inline_message_id: String?
|
|
12
|
+
attr_reader chat_instance: String
|
|
13
|
+
attr_reader data: String?
|
|
14
|
+
attr_reader game_short_name: String?
|
|
15
|
+
def to_s: () -> String
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class Chat < Base
|
|
6
|
+
def self.new: (id: Integer, type: String, ?title: String, ?username: String, ?first_name: String, ?last_name: String, ?is_forum: true, ?is_direct_messages: true) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader id: Integer
|
|
9
|
+
attr_reader type: String
|
|
10
|
+
attr_reader title: String?
|
|
11
|
+
attr_reader username: String?
|
|
12
|
+
attr_reader first_name: String?
|
|
13
|
+
attr_reader last_name: String?
|
|
14
|
+
attr_reader is_forum: true?
|
|
15
|
+
attr_reader is_direct_messages: true?
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class ChatAdministratorRights < Base
|
|
6
|
+
def self.new: (is_anonymous: bool, can_manage_chat: bool, can_delete_messages: bool, can_manage_video_chats: bool, can_restrict_members: bool, can_promote_members: bool, can_change_info: bool, can_invite_users: bool, can_post_stories: bool, can_edit_stories: bool, can_delete_stories: bool, ?can_post_messages: bool, ?can_edit_messages: bool, ?can_pin_messages: bool, ?can_manage_topics: bool, ?can_manage_direct_messages: bool, ?can_manage_tags: bool) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader is_anonymous: bool
|
|
9
|
+
attr_reader can_manage_chat: bool
|
|
10
|
+
attr_reader can_delete_messages: bool
|
|
11
|
+
attr_reader can_manage_video_chats: bool
|
|
12
|
+
attr_reader can_restrict_members: bool
|
|
13
|
+
attr_reader can_promote_members: bool
|
|
14
|
+
attr_reader can_change_info: bool
|
|
15
|
+
attr_reader can_invite_users: bool
|
|
16
|
+
attr_reader can_post_stories: bool
|
|
17
|
+
attr_reader can_edit_stories: bool
|
|
18
|
+
attr_reader can_delete_stories: bool
|
|
19
|
+
attr_reader can_post_messages: bool?
|
|
20
|
+
attr_reader can_edit_messages: bool?
|
|
21
|
+
attr_reader can_pin_messages: bool?
|
|
22
|
+
attr_reader can_manage_topics: bool?
|
|
23
|
+
attr_reader can_manage_direct_messages: bool?
|
|
24
|
+
attr_reader can_manage_tags: bool?
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Generated for telegram-bot-ruby 2.7.0. Do not edit by hand.
|
|
2
|
+
module Telegram
|
|
3
|
+
module Bot
|
|
4
|
+
module Types
|
|
5
|
+
class ChatBackground < Base
|
|
6
|
+
def self.new: (type: background_type) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: background_type
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|