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,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 ReplyParameters < Base
|
|
6
|
+
def self.new: (message_id: Integer, ?chat_id: (Integer | String), ?allow_sending_without_reply: bool, ?quote: String, ?quote_parse_mode: String, ?quote_entities: Array[MessageEntity], ?quote_position: Integer, ?checklist_task_id: Integer, ?poll_option_id: String) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader message_id: Integer
|
|
9
|
+
attr_reader chat_id: ((Integer | String))?
|
|
10
|
+
attr_reader allow_sending_without_reply: bool?
|
|
11
|
+
attr_reader quote: String?
|
|
12
|
+
attr_reader quote_parse_mode: String?
|
|
13
|
+
attr_reader quote_entities: Array[MessageEntity]?
|
|
14
|
+
attr_reader quote_position: Integer?
|
|
15
|
+
attr_reader checklist_task_id: Integer?
|
|
16
|
+
attr_reader poll_option_id: String?
|
|
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 ResponseParameters < Base
|
|
6
|
+
def self.new: (?migrate_to_chat_id: Integer, ?retry_after: Integer) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader migrate_to_chat_id: Integer?
|
|
9
|
+
attr_reader retry_after: Integer?
|
|
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 RevenueWithdrawalStateFailed < 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 RevenueWithdrawalStatePending < 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,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 RevenueWithdrawalStateSucceeded < Base
|
|
6
|
+
def self.new: (?type: String, date: Integer, url: String) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
attr_reader date: Integer
|
|
10
|
+
attr_reader url: String
|
|
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 SentWebAppMessage < Base
|
|
6
|
+
def self.new: (?inline_message_id: String) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader inline_message_id: String?
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
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 SharedUser < Base
|
|
6
|
+
def self.new: (user_id: Integer, ?first_name: String, ?last_name: String, ?username: String, ?photo: Array[PhotoSize]) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader user_id: Integer
|
|
9
|
+
attr_reader first_name: String?
|
|
10
|
+
attr_reader last_name: String?
|
|
11
|
+
attr_reader username: String?
|
|
12
|
+
attr_reader photo: Array[PhotoSize]?
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
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 ShippingAddress < Base
|
|
6
|
+
def self.new: (country_code: String, state: String, city: String, street_line1: String, street_line2: String, post_code: String) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader country_code: String
|
|
9
|
+
attr_reader state: String
|
|
10
|
+
attr_reader city: String
|
|
11
|
+
attr_reader street_line1: String
|
|
12
|
+
attr_reader street_line2: String
|
|
13
|
+
attr_reader post_code: String
|
|
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 ShippingOption < Base
|
|
6
|
+
def self.new: (id: String, title: String, prices: Array[LabeledPrice]) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader id: String
|
|
9
|
+
attr_reader title: String
|
|
10
|
+
attr_reader prices: Array[LabeledPrice]
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
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 ShippingQuery < Base
|
|
6
|
+
def self.new: (id: String, from: User, invoice_payload: String, shipping_address: ShippingAddress) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader id: String
|
|
9
|
+
attr_reader from: User
|
|
10
|
+
attr_reader invoice_payload: String
|
|
11
|
+
attr_reader shipping_address: ShippingAddress
|
|
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 StarAmount < Base
|
|
6
|
+
def self.new: (amount: Integer, ?nanostar_amount: Integer) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader amount: Integer
|
|
9
|
+
attr_reader nanostar_amount: Integer?
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
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 StarTransaction < Base
|
|
6
|
+
def self.new: (id: String, amount: Integer, ?nanostar_amount: Integer, date: Integer, ?source: transaction_partner, ?receiver: transaction_partner) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader id: String
|
|
9
|
+
attr_reader amount: Integer
|
|
10
|
+
attr_reader nanostar_amount: Integer?
|
|
11
|
+
attr_reader date: Integer
|
|
12
|
+
attr_reader source: transaction_partner?
|
|
13
|
+
attr_reader receiver: transaction_partner?
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
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 StarTransactions < Base
|
|
6
|
+
def self.new: (transactions: Array[StarTransaction]) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader transactions: Array[StarTransaction]
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
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 Sticker < Base
|
|
6
|
+
def self.new: (file_id: String, file_unique_id: String, type: String, width: Integer, height: Integer, is_animated: bool, is_video: bool, ?thumbnail: PhotoSize, ?emoji: String, ?set_name: String, ?premium_animation: File, ?mask_position: MaskPosition, ?custom_emoji_id: String, ?needs_repainting: true, ?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 type: String
|
|
11
|
+
attr_reader width: Integer
|
|
12
|
+
attr_reader height: Integer
|
|
13
|
+
attr_reader is_animated: bool
|
|
14
|
+
attr_reader is_video: bool
|
|
15
|
+
attr_reader thumbnail: PhotoSize?
|
|
16
|
+
attr_reader emoji: String?
|
|
17
|
+
attr_reader set_name: String?
|
|
18
|
+
attr_reader premium_animation: File?
|
|
19
|
+
attr_reader mask_position: MaskPosition?
|
|
20
|
+
attr_reader custom_emoji_id: String?
|
|
21
|
+
attr_reader needs_repainting: true?
|
|
22
|
+
attr_reader file_size: Integer?
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
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 StickerSet < Base
|
|
6
|
+
def self.new: (name: String, title: String, sticker_type: String, stickers: Array[Sticker], ?thumbnail: PhotoSize) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader name: String
|
|
9
|
+
attr_reader title: String
|
|
10
|
+
attr_reader sticker_type: String
|
|
11
|
+
attr_reader stickers: Array[Sticker]
|
|
12
|
+
attr_reader thumbnail: PhotoSize?
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
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 Story < Base
|
|
6
|
+
def self.new: (chat: Chat, id: Integer) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader chat: Chat
|
|
9
|
+
attr_reader id: 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 StoryArea < Base
|
|
6
|
+
def self.new: (position: StoryAreaPosition, type: story_area_type) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader position: StoryAreaPosition
|
|
9
|
+
attr_reader type: story_area_type
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
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 StoryAreaPosition < Base
|
|
6
|
+
def self.new: (x_percentage: Float, y_percentage: Float, width_percentage: Float, height_percentage: Float, rotation_angle: Float, corner_radius_percentage: Float) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader x_percentage: Float
|
|
9
|
+
attr_reader y_percentage: Float
|
|
10
|
+
attr_reader width_percentage: Float
|
|
11
|
+
attr_reader height_percentage: Float
|
|
12
|
+
attr_reader rotation_angle: Float
|
|
13
|
+
attr_reader corner_radius_percentage: Float
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
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 StoryAreaTypeLink < Base
|
|
6
|
+
def self.new: (?type: String, url: String) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
attr_reader url: String
|
|
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 StoryAreaTypeLocation < Base
|
|
6
|
+
def self.new: (?type: String, latitude: Float, longitude: Float, ?address: LocationAddress) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
attr_reader latitude: Float
|
|
10
|
+
attr_reader longitude: Float
|
|
11
|
+
attr_reader address: LocationAddress?
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
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 StoryAreaTypeSuggestedReaction < Base
|
|
6
|
+
def self.new: (?type: String, reaction_type: reaction_type, ?is_dark: bool, ?is_flipped: bool) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
attr_reader reaction_type: reaction_type
|
|
10
|
+
attr_reader is_dark: bool?
|
|
11
|
+
attr_reader is_flipped: bool?
|
|
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 StoryAreaTypeUniqueGift < Base
|
|
6
|
+
def self.new: (?type: String, name: String) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
attr_reader name: String
|
|
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 StoryAreaTypeWeather < Base
|
|
6
|
+
def self.new: (?type: String, temperature: Float, emoji: String, background_color: Integer) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
attr_reader temperature: Float
|
|
10
|
+
attr_reader emoji: String
|
|
11
|
+
attr_reader background_color: Integer
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
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 SuccessfulPayment < Base
|
|
6
|
+
def self.new: (currency: String, total_amount: Integer, invoice_payload: String, ?subscription_expiration_date: Integer, ?is_recurring: true, ?is_first_recurring: true, ?shipping_option_id: String, ?order_info: OrderInfo, telegram_payment_charge_id: String, provider_payment_charge_id: String) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader currency: String
|
|
9
|
+
attr_reader total_amount: Integer
|
|
10
|
+
attr_reader invoice_payload: String
|
|
11
|
+
attr_reader subscription_expiration_date: Integer?
|
|
12
|
+
attr_reader is_recurring: true?
|
|
13
|
+
attr_reader is_first_recurring: true?
|
|
14
|
+
attr_reader shipping_option_id: String?
|
|
15
|
+
attr_reader order_info: OrderInfo?
|
|
16
|
+
attr_reader telegram_payment_charge_id: String
|
|
17
|
+
attr_reader provider_payment_charge_id: String
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
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 SuggestedPostApprovalFailed < Base
|
|
6
|
+
def self.new: (?suggested_post_message: Message, price: SuggestedPostPrice) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader suggested_post_message: Message?
|
|
9
|
+
attr_reader price: SuggestedPostPrice
|
|
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 SuggestedPostApproved < Base
|
|
6
|
+
def self.new: (?suggested_post_message: Message, ?price: SuggestedPostPrice, send_date: Integer) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader suggested_post_message: Message?
|
|
9
|
+
attr_reader price: SuggestedPostPrice?
|
|
10
|
+
attr_reader send_date: 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 SuggestedPostDeclined < Base
|
|
6
|
+
def self.new: (?suggested_post_message: Message, ?comment: String) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader suggested_post_message: Message?
|
|
9
|
+
attr_reader comment: 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 SuggestedPostInfo < Base
|
|
6
|
+
def self.new: (state: String, ?price: SuggestedPostPrice, ?send_date: Integer) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader state: String
|
|
9
|
+
attr_reader price: SuggestedPostPrice?
|
|
10
|
+
attr_reader send_date: Integer?
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
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 SuggestedPostPaid < Base
|
|
6
|
+
def self.new: (?suggested_post_message: Message, currency: String, ?amount: Integer, ?star_amount: StarAmount) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader suggested_post_message: Message?
|
|
9
|
+
attr_reader currency: String
|
|
10
|
+
attr_reader amount: Integer?
|
|
11
|
+
attr_reader star_amount: StarAmount?
|
|
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 SuggestedPostParameters < Base
|
|
6
|
+
def self.new: (?price: SuggestedPostPrice, ?send_date: Integer) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader price: SuggestedPostPrice?
|
|
9
|
+
attr_reader send_date: 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 SuggestedPostPrice < Base
|
|
6
|
+
def self.new: (currency: String, amount: Integer) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader currency: String
|
|
9
|
+
attr_reader amount: 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 SuggestedPostRefunded < Base
|
|
6
|
+
def self.new: (?suggested_post_message: Message, reason: String) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader suggested_post_message: Message?
|
|
9
|
+
attr_reader reason: String
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
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 SwitchInlineQueryChosenChat < Base
|
|
6
|
+
def self.new: (?query: String, ?allow_user_chats: bool, ?allow_bot_chats: bool, ?allow_group_chats: bool, ?allow_channel_chats: bool) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader query: String?
|
|
9
|
+
attr_reader allow_user_chats: bool?
|
|
10
|
+
attr_reader allow_bot_chats: bool?
|
|
11
|
+
attr_reader allow_group_chats: bool?
|
|
12
|
+
attr_reader allow_channel_chats: bool?
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
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 TextQuote < Base
|
|
6
|
+
def self.new: (text: String, ?entities: Array[MessageEntity], position: Integer, ?is_manual: true) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader text: String
|
|
9
|
+
attr_reader entities: Array[MessageEntity]?
|
|
10
|
+
attr_reader position: Integer
|
|
11
|
+
attr_reader is_manual: true?
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
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 TransactionPartnerAffiliateProgram < Base
|
|
6
|
+
def self.new: (?type: String, ?sponsor_user: User, commission_per_mille: Integer) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
attr_reader sponsor_user: User?
|
|
10
|
+
attr_reader commission_per_mille: Integer
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
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 TransactionPartnerChat < Base
|
|
6
|
+
def self.new: (?type: String, chat: Chat, ?gift: Gift) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
attr_reader chat: Chat
|
|
10
|
+
attr_reader gift: Gift?
|
|
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 TransactionPartnerFragment < Base
|
|
6
|
+
def self.new: (?type: String, ?withdrawal_state: revenue_withdrawal_state) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
attr_reader withdrawal_state: revenue_withdrawal_state?
|
|
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 TransactionPartnerOther < 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 TransactionPartnerTelegramAds < 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 TransactionPartnerTelegramApi < Base
|
|
6
|
+
def self.new: (?type: String, request_count: Integer) -> instance
|
|
7
|
+
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
|
8
|
+
attr_reader type: String
|
|
9
|
+
attr_reader request_count: Integer
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|