tdlib-schema 1.7.0.3 → 1.7.0.4
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 +4 -4
- data/bin/parser +18 -10
- data/lib/tdlib/client_methods.rb +5741 -1037
- data/lib/tdlib/types/accent_color.rb +21 -0
- data/lib/tdlib/types/account_ttl.rb +1 -2
- data/lib/tdlib/types/added_reaction.rb +14 -0
- data/lib/tdlib/types/added_reactions.rb +13 -0
- data/lib/tdlib/types/animated_emoji.rb +18 -0
- data/lib/tdlib/types/archive_chat_list_settings.rb +17 -0
- data/lib/tdlib/types/attachment_menu_bot.rb +67 -0
- data/lib/tdlib/types/attachment_menu_bot_color.rb +10 -0
- data/lib/tdlib/types/audio.rb +5 -1
- data/lib/tdlib/types/authentication_code_info.rb +4 -4
- data/lib/tdlib/types/authentication_code_type/call.rb +1 -1
- data/lib/tdlib/types/authentication_code_type/firebase_android.rb +11 -0
- data/lib/tdlib/types/authentication_code_type/firebase_ios.rb +14 -0
- data/lib/tdlib/types/authentication_code_type/flash_call.rb +2 -2
- data/lib/tdlib/types/authentication_code_type/fragment.rb +11 -0
- data/lib/tdlib/types/authentication_code_type/missed_call.rb +11 -0
- data/lib/tdlib/types/authentication_code_type/sms.rb +2 -1
- data/lib/tdlib/types/authentication_code_type/sms_phrase.rb +9 -0
- data/lib/tdlib/types/authentication_code_type/sms_word.rb +9 -0
- data/lib/tdlib/types/authentication_code_type/telegram_message.rb +2 -2
- data/lib/tdlib/types/authentication_code_type.rb +6 -0
- data/lib/tdlib/types/authorization_state/closed.rb +1 -1
- data/lib/tdlib/types/authorization_state/ready.rb +1 -1
- data/lib/tdlib/types/authorization_state/wait_code.rb +1 -0
- data/lib/tdlib/types/authorization_state/wait_email_address.rb +12 -0
- data/lib/tdlib/types/authorization_state/wait_email_code.rb +16 -0
- data/lib/tdlib/types/authorization_state/wait_password.rb +5 -1
- data/lib/tdlib/types/authorization_state/wait_phone_number.rb +2 -2
- data/lib/tdlib/types/authorization_state/wait_registration.rb +1 -0
- data/lib/tdlib/types/authorization_state/wait_tdlib_parameters.rb +2 -1
- data/lib/tdlib/types/authorization_state.rb +2 -1
- data/lib/tdlib/types/auto_download_settings.rb +6 -4
- data/lib/tdlib/types/auto_download_settings_presets.rb +1 -1
- data/lib/tdlib/types/autosave_settings.rb +15 -0
- data/lib/tdlib/types/autosave_settings_exception.rb +10 -0
- data/lib/tdlib/types/autosave_settings_scope/channel_chats.rb +5 -0
- data/lib/tdlib/types/autosave_settings_scope/chat.rb +8 -0
- data/lib/tdlib/types/autosave_settings_scope/group_chats.rb +5 -0
- data/lib/tdlib/types/autosave_settings_scope/private_chats.rb +5 -0
- data/lib/tdlib/types/autosave_settings_scope.rb +13 -0
- data/lib/tdlib/types/available_reaction.rb +10 -0
- data/lib/tdlib/types/available_reactions.rb +19 -0
- data/lib/tdlib/types/background.rb +1 -1
- data/lib/tdlib/types/background_fill/freeform_gradient.rb +8 -0
- data/lib/tdlib/types/background_fill/gradient.rb +1 -1
- data/lib/tdlib/types/background_fill.rb +1 -0
- data/lib/tdlib/types/background_type/chat_theme.rb +8 -0
- data/lib/tdlib/types/background_type/fill.rb +1 -1
- data/lib/tdlib/types/background_type/pattern.rb +5 -1
- data/lib/tdlib/types/background_type.rb +2 -1
- data/lib/tdlib/types/basic_group_full_info.rb +10 -1
- data/lib/tdlib/types/birthdate.rb +12 -0
- data/lib/tdlib/types/block_list/main.rb +6 -0
- data/lib/tdlib/types/block_list/stories.rb +5 -0
- data/lib/tdlib/types/block_list.rb +11 -0
- data/lib/tdlib/types/bot_command_scope/all_chat_administrators.rb +5 -0
- data/lib/tdlib/types/bot_command_scope/all_group_chats.rb +5 -0
- data/lib/tdlib/types/bot_command_scope/all_private_chats.rb +5 -0
- data/lib/tdlib/types/bot_command_scope/chat.rb +8 -0
- data/lib/tdlib/types/bot_command_scope/chat_administrators.rb +8 -0
- data/lib/tdlib/types/bot_command_scope/chat_member.rb +10 -0
- data/lib/tdlib/types/bot_command_scope/default.rb +5 -0
- data/lib/tdlib/types/bot_command_scope.rb +16 -0
- data/lib/tdlib/types/bot_commands.rb +10 -0
- data/lib/tdlib/types/bot_info.rb +38 -3
- data/lib/tdlib/types/bot_media_preview.rb +10 -0
- data/lib/tdlib/types/bot_media_preview_info.rb +11 -0
- data/lib/tdlib/types/bot_media_previews.rb +8 -0
- data/lib/tdlib/types/bot_menu_button.rb +12 -0
- data/lib/tdlib/types/bot_transaction_purpose/invoice_payment.rb +11 -0
- data/lib/tdlib/types/bot_transaction_purpose/paid_media.rb +8 -0
- data/lib/tdlib/types/bot_transaction_purpose.rb +11 -0
- data/lib/tdlib/types/bot_write_access_allow_reason/accepted_request.rb +5 -0
- data/lib/tdlib/types/bot_write_access_allow_reason/added_to_attachment_menu.rb +5 -0
- data/lib/tdlib/types/bot_write_access_allow_reason/connected_website.rb +8 -0
- data/lib/tdlib/types/bot_write_access_allow_reason/launched_web_app.rb +8 -0
- data/lib/tdlib/types/bot_write_access_allow_reason.rb +13 -0
- data/lib/tdlib/types/business_away_message_schedule/always.rb +5 -0
- data/lib/tdlib/types/business_away_message_schedule/custom.rb +10 -0
- data/lib/tdlib/types/business_away_message_schedule/outside_of_opening_hours.rb +5 -0
- data/lib/tdlib/types/business_away_message_schedule.rb +12 -0
- data/lib/tdlib/types/business_away_message_settings.rb +15 -0
- data/lib/tdlib/types/business_bot_manage_bar.rb +15 -0
- data/lib/tdlib/types/business_chat_link.rb +14 -0
- data/lib/tdlib/types/business_chat_link_info.rb +10 -0
- data/lib/tdlib/types/business_chat_links.rb +8 -0
- data/lib/tdlib/types/business_connected_bot.rb +12 -0
- data/lib/tdlib/types/business_connection.rb +18 -0
- data/lib/tdlib/types/business_feature/account_links.rb +5 -0
- data/lib/tdlib/types/business_feature/away_message.rb +5 -0
- data/lib/tdlib/types/business_feature/bots.rb +5 -0
- data/lib/tdlib/types/business_feature/chat_folder_tags.rb +5 -0
- data/lib/tdlib/types/business_feature/emoji_status.rb +5 -0
- data/lib/tdlib/types/business_feature/greeting_message.rb +5 -0
- data/lib/tdlib/types/business_feature/location.rb +5 -0
- data/lib/tdlib/types/business_feature/opening_hours.rb +5 -0
- data/lib/tdlib/types/business_feature/quick_replies.rb +5 -0
- data/lib/tdlib/types/business_feature/start_page.rb +5 -0
- data/lib/tdlib/types/business_feature/upgraded_stories.rb +5 -0
- data/lib/tdlib/types/business_feature.rb +20 -0
- data/lib/tdlib/types/business_feature_promotion_animation.rb +10 -0
- data/lib/tdlib/types/business_features.rb +8 -0
- data/lib/tdlib/types/business_greeting_message_settings.rb +14 -0
- data/lib/tdlib/types/business_info.rb +32 -0
- data/lib/tdlib/types/business_location.rb +10 -0
- data/lib/tdlib/types/business_message.rb +11 -0
- data/lib/tdlib/types/business_messages.rb +8 -0
- data/lib/tdlib/types/business_opening_hours.rb +11 -0
- data/lib/tdlib/types/business_opening_hours_interval.rb +12 -0
- data/lib/tdlib/types/business_recipients.rb +22 -0
- data/lib/tdlib/types/business_start_page.rb +12 -0
- data/lib/tdlib/types/call.rb +1 -1
- data/lib/tdlib/types/call_discard_reason/missed.rb +1 -1
- data/lib/tdlib/types/call_problem.rb +1 -1
- data/lib/tdlib/types/call_protocol.rb +1 -1
- data/lib/tdlib/types/call_server_type/telegram_reflector.rb +2 -0
- data/lib/tdlib/types/call_server_type.rb +1 -1
- data/lib/tdlib/types/call_state/discarded.rb +5 -3
- data/lib/tdlib/types/call_state/ready.rb +4 -2
- data/lib/tdlib/types/callback_query_answer.rb +1 -1
- data/lib/tdlib/types/callback_query_payload/data_with_password.rb +1 -1
- data/lib/tdlib/types/can_send_message_to_user_result/ok.rb +5 -0
- data/lib/tdlib/types/can_send_message_to_user_result/user_is_deleted.rb +5 -0
- data/lib/tdlib/types/can_send_message_to_user_result/user_restricts_new_chats.rb +5 -0
- data/lib/tdlib/types/can_send_message_to_user_result.rb +12 -0
- data/lib/tdlib/types/can_send_story_result/active_story_limit_exceeded.rb +6 -0
- data/lib/tdlib/types/can_send_story_result/boost_needed.rb +6 -0
- data/lib/tdlib/types/can_send_story_result/monthly_limit_exceeded.rb +9 -0
- data/lib/tdlib/types/can_send_story_result/ok.rb +5 -0
- data/lib/tdlib/types/can_send_story_result/premium_needed.rb +5 -0
- data/lib/tdlib/types/can_send_story_result/weekly_limit_exceeded.rb +9 -0
- data/lib/tdlib/types/can_send_story_result.rb +15 -0
- data/lib/tdlib/types/channel_transaction_purpose/join.rb +8 -0
- data/lib/tdlib/types/channel_transaction_purpose/paid_media.rb +11 -0
- data/lib/tdlib/types/channel_transaction_purpose/reaction.rb +8 -0
- data/lib/tdlib/types/channel_transaction_purpose.rb +12 -0
- data/lib/tdlib/types/chat.rb +56 -16
- data/lib/tdlib/types/chat_action/cancel.rb +1 -1
- data/lib/tdlib/types/chat_action/choosing_sticker.rb +5 -0
- data/lib/tdlib/types/chat_action/watching_animations.rb +8 -0
- data/lib/tdlib/types/chat_action.rb +2 -0
- data/lib/tdlib/types/chat_action_bar/invite_members.rb +1 -1
- data/lib/tdlib/types/chat_action_bar/join_request.rb +12 -0
- data/lib/tdlib/types/chat_action_bar/report_add_block.rb +6 -3
- data/lib/tdlib/types/chat_action_bar/report_spam.rb +3 -1
- data/lib/tdlib/types/chat_action_bar/report_unrelated_location.rb +1 -1
- data/lib/tdlib/types/chat_action_bar.rb +2 -1
- data/lib/tdlib/types/chat_active_stories.rb +21 -0
- data/lib/tdlib/types/chat_administrator_rights.rb +48 -0
- data/lib/tdlib/types/chat_available_reactions/all.rb +8 -0
- data/lib/tdlib/types/chat_available_reactions/some.rb +10 -0
- data/lib/tdlib/types/chat_available_reactions.rb +11 -0
- data/lib/tdlib/types/chat_background.rb +11 -0
- data/lib/tdlib/types/chat_boost.rb +16 -0
- data/lib/tdlib/types/chat_boost_features.rb +30 -0
- data/lib/tdlib/types/chat_boost_level_features.rb +38 -0
- data/lib/tdlib/types/chat_boost_link.rb +10 -0
- data/lib/tdlib/types/chat_boost_link_info.rb +10 -0
- data/lib/tdlib/types/chat_boost_slot.rb +17 -0
- data/lib/tdlib/types/chat_boost_slots.rb +8 -0
- data/lib/tdlib/types/chat_boost_source/gift_code.rb +11 -0
- data/lib/tdlib/types/chat_boost_source/giveaway.rb +17 -0
- data/lib/tdlib/types/chat_boost_source/premium.rb +8 -0
- data/lib/tdlib/types/chat_boost_source.rb +12 -0
- data/lib/tdlib/types/chat_boost_status.rb +31 -0
- data/lib/tdlib/types/chat_event.rb +3 -3
- data/lib/tdlib/types/chat_event_action/accent_color_changed.rb +14 -0
- data/lib/tdlib/types/chat_event_action/active_usernames_changed.rb +10 -0
- data/lib/tdlib/types/chat_event_action/available_reactions_changed.rb +10 -0
- data/lib/tdlib/types/chat_event_action/background_changed.rb +10 -0
- data/lib/tdlib/types/chat_event_action/custom_emoji_sticker_set_changed.rb +10 -0
- data/lib/tdlib/types/chat_event_action/emoji_status_changed.rb +10 -0
- data/lib/tdlib/types/chat_event_action/forum_topic_created.rb +8 -0
- data/lib/tdlib/types/chat_event_action/forum_topic_deleted.rb +8 -0
- data/lib/tdlib/types/chat_event_action/forum_topic_edited.rb +10 -0
- data/lib/tdlib/types/chat_event_action/forum_topic_pinned.rb +10 -0
- data/lib/tdlib/types/chat_event_action/forum_topic_toggle_is_closed.rb +8 -0
- data/lib/tdlib/types/chat_event_action/forum_topic_toggle_is_hidden.rb +8 -0
- data/lib/tdlib/types/chat_event_action/has_aggressive_anti_spam_enabled_toggled.rb +8 -0
- data/lib/tdlib/types/chat_event_action/has_protected_content_toggled.rb +8 -0
- data/lib/tdlib/types/chat_event_action/is_forum_toggled.rb +8 -0
- data/lib/tdlib/types/chat_event_action/member_joined_by_invite_link.rb +4 -1
- data/lib/tdlib/types/chat_event_action/member_joined_by_request.rb +10 -0
- data/lib/tdlib/types/chat_event_action/message_auto_delete_time_changed.rb +10 -0
- data/lib/tdlib/types/chat_event_action/message_deleted.rb +3 -0
- data/lib/tdlib/types/chat_event_action/permissions_changed.rb +1 -1
- data/lib/tdlib/types/chat_event_action/profile_accent_color_changed.rb +14 -0
- data/lib/tdlib/types/chat_event_action/show_message_sender_toggled.rb +8 -0
- data/lib/tdlib/types/chat_event_action/slow_mode_delay_changed.rb +2 -2
- data/lib/tdlib/types/chat_event_action/username_changed.rb +1 -1
- data/lib/tdlib/types/chat_event_action/video_chat_created.rb +9 -0
- data/lib/tdlib/types/chat_event_action/video_chat_ended.rb +9 -0
- data/lib/tdlib/types/chat_event_action/{voice_chat_mute_new_participants_toggled.rb → video_chat_mute_new_participants_toggled.rb} +2 -2
- data/lib/tdlib/types/chat_event_action/{voice_chat_participant_is_muted_toggled.rb → video_chat_participant_is_muted_toggled.rb} +2 -2
- data/lib/tdlib/types/chat_event_action/{voice_chat_participant_volume_level_changed.rb → video_chat_participant_volume_level_changed.rb} +2 -2
- data/lib/tdlib/types/chat_event_action.rb +33 -15
- data/lib/tdlib/types/chat_event_log_filters.rb +15 -13
- data/lib/tdlib/types/chat_folder.rb +45 -0
- data/lib/tdlib/types/chat_folder_icon.rb +11 -0
- data/lib/tdlib/types/chat_folder_info.rb +19 -0
- data/lib/tdlib/types/chat_folder_invite_link.rb +12 -0
- data/lib/tdlib/types/chat_folder_invite_link_info.rb +15 -0
- data/lib/tdlib/types/chat_folder_invite_links.rb +8 -0
- data/lib/tdlib/types/chat_invite_link.rb +17 -3
- data/lib/tdlib/types/chat_invite_link_counts.rb +1 -1
- data/lib/tdlib/types/chat_invite_link_info.rb +17 -2
- data/lib/tdlib/types/chat_invite_link_member.rb +6 -1
- data/lib/tdlib/types/chat_invite_link_members.rb +3 -3
- data/lib/tdlib/types/chat_invite_link_subscription_info.rb +15 -0
- data/lib/tdlib/types/chat_invite_links.rb +1 -1
- data/lib/tdlib/types/chat_join_request.rb +12 -0
- data/lib/tdlib/types/chat_join_requests.rb +10 -0
- data/lib/tdlib/types/chat_join_requests_info.rb +10 -0
- data/lib/tdlib/types/chat_list/folder.rb +8 -0
- data/lib/tdlib/types/chat_list.rb +1 -1
- data/lib/tdlib/types/chat_member.rb +3 -5
- data/lib/tdlib/types/chat_member_status/administrator.rb +5 -31
- data/lib/tdlib/types/chat_member_status/banned.rb +1 -1
- data/lib/tdlib/types/chat_member_status/creator.rb +2 -2
- data/lib/tdlib/types/chat_member_status/member.rb +6 -1
- data/lib/tdlib/types/chat_members.rb +1 -1
- data/lib/tdlib/types/chat_message_sender.rb +10 -0
- data/lib/tdlib/types/chat_message_senders.rb +8 -0
- data/lib/tdlib/types/chat_notification_settings.rb +30 -15
- data/lib/tdlib/types/chat_permissions.rb +19 -11
- data/lib/tdlib/types/chat_photo.rb +7 -1
- data/lib/tdlib/types/chat_photo_info.rb +2 -0
- data/lib/tdlib/types/chat_photo_sticker.rb +12 -0
- data/lib/tdlib/types/chat_photo_sticker_type/custom_emoji.rb +8 -0
- data/lib/tdlib/types/chat_photo_sticker_type/regular_or_mask.rb +10 -0
- data/lib/tdlib/types/chat_photo_sticker_type.rb +11 -0
- data/lib/tdlib/types/chat_revenue_amount.rb +17 -0
- data/lib/tdlib/types/chat_revenue_statistics.rb +14 -0
- data/lib/tdlib/types/chat_revenue_transaction.rb +12 -0
- data/lib/tdlib/types/chat_revenue_transaction_type/earnings.rb +10 -0
- data/lib/tdlib/types/chat_revenue_transaction_type/refund.rb +10 -0
- data/lib/tdlib/types/chat_revenue_transaction_type/withdrawal.rb +12 -0
- data/lib/tdlib/types/chat_revenue_transaction_type.rb +12 -0
- data/lib/tdlib/types/chat_revenue_transactions.rb +10 -0
- data/lib/tdlib/types/chat_statistics/channel.rb +29 -8
- data/lib/tdlib/types/chat_statistics_interaction_info.rb +14 -0
- data/lib/tdlib/types/chat_statistics_message_sender_info.rb +1 -1
- data/lib/tdlib/types/chat_statistics_object_type/message.rb +8 -0
- data/lib/tdlib/types/chat_statistics_object_type/story.rb +8 -0
- data/lib/tdlib/types/chat_statistics_object_type.rb +11 -0
- data/lib/tdlib/types/chat_theme.rb +12 -0
- data/lib/tdlib/types/chat_type/basic_group.rb +1 -1
- data/lib/tdlib/types/chat_type/secret.rb +1 -1
- data/lib/tdlib/types/chat_type/supergroup.rb +1 -2
- data/lib/tdlib/types/chat_type.rb +1 -1
- data/lib/tdlib/types/chats.rb +1 -1
- data/lib/tdlib/types/check_chat_username_result/public_chats_too_many.rb +5 -0
- data/lib/tdlib/types/check_chat_username_result/username_purchasable.rb +6 -0
- data/lib/tdlib/types/check_chat_username_result.rb +2 -1
- data/lib/tdlib/types/check_sticker_set_name_result/name_invalid.rb +5 -0
- data/lib/tdlib/types/check_sticker_set_name_result/name_occupied.rb +5 -0
- data/lib/tdlib/types/check_sticker_set_name_result/ok.rb +5 -0
- data/lib/tdlib/types/check_sticker_set_name_result.rb +12 -0
- data/lib/tdlib/types/close_birthday_user.rb +10 -0
- data/lib/tdlib/types/collectible_item_info.rb +18 -0
- data/lib/tdlib/types/collectible_item_type/phone_number.rb +8 -0
- data/lib/tdlib/types/collectible_item_type/username.rb +8 -0
- data/lib/tdlib/types/collectible_item_type.rb +11 -0
- data/lib/tdlib/types/connected_website.rb +3 -3
- data/lib/tdlib/types/connection_state/connecting.rb +1 -1
- data/lib/tdlib/types/connection_state/connecting_to_proxy.rb +1 -1
- data/lib/tdlib/types/connection_state/updating.rb +1 -1
- data/lib/tdlib/types/connection_state/waiting_for_network.rb +1 -1
- data/lib/tdlib/types/contact.rb +1 -1
- data/lib/tdlib/types/country_info.rb +1 -1
- data/lib/tdlib/types/created_basic_group_chat.rb +10 -0
- data/lib/tdlib/types/current_weather.rb +10 -0
- data/lib/tdlib/types/deep_link_info.rb +2 -2
- data/lib/tdlib/types/device_token/apple_push.rb +1 -1
- data/lib/tdlib/types/device_token/apple_push_vo_ip.rb +2 -2
- data/lib/tdlib/types/device_token/black_berry_push.rb +1 -1
- data/lib/tdlib/types/device_token/firebase_cloud_messaging.rb +2 -2
- data/lib/tdlib/types/device_token/huawei_push.rb +10 -0
- data/lib/tdlib/types/device_token/microsoft_push.rb +1 -1
- data/lib/tdlib/types/device_token/microsoft_push_vo_ip.rb +1 -1
- data/lib/tdlib/types/device_token/simple_push.rb +1 -1
- data/lib/tdlib/types/device_token/tizen_push.rb +1 -1
- data/lib/tdlib/types/device_token/ubuntu_push.rb +1 -1
- data/lib/tdlib/types/device_token/web_push.rb +1 -1
- data/lib/tdlib/types/device_token/windows_push.rb +1 -1
- data/lib/tdlib/types/device_token.rb +1 -0
- data/lib/tdlib/types/dice_stickers.rb +1 -1
- data/lib/tdlib/types/downloaded_file_counts.rb +12 -0
- data/lib/tdlib/types/draft_message.rb +7 -4
- data/lib/tdlib/types/email_address_authentication/apple_id.rb +8 -0
- data/lib/tdlib/types/email_address_authentication/code.rb +8 -0
- data/lib/tdlib/types/email_address_authentication/google_id.rb +8 -0
- data/lib/tdlib/types/email_address_authentication.rb +12 -0
- data/lib/tdlib/types/email_address_reset_state/available.rb +11 -0
- data/lib/tdlib/types/email_address_reset_state/pending.rb +10 -0
- data/lib/tdlib/types/email_address_reset_state.rb +11 -0
- data/lib/tdlib/types/emoji_categories.rb +8 -0
- data/lib/tdlib/types/emoji_category.rb +14 -0
- data/lib/tdlib/types/emoji_category_source/premium.rb +5 -0
- data/lib/tdlib/types/emoji_category_source/search.rb +9 -0
- data/lib/tdlib/types/emoji_category_source.rb +11 -0
- data/lib/tdlib/types/emoji_category_type/chat_photo.rb +5 -0
- data/lib/tdlib/types/emoji_category_type/default.rb +5 -0
- data/lib/tdlib/types/emoji_category_type/emoji_status.rb +5 -0
- data/lib/tdlib/types/emoji_category_type/regular_stickers.rb +6 -0
- data/lib/tdlib/types/emoji_category_type.rb +13 -0
- data/lib/tdlib/types/emoji_keyword.rb +10 -0
- data/lib/tdlib/types/emoji_keywords.rb +8 -0
- data/lib/tdlib/types/emoji_reaction.rb +26 -0
- data/lib/tdlib/types/emoji_status.rb +10 -0
- data/lib/tdlib/types/emoji_statuses.rb +8 -0
- data/lib/tdlib/types/emojis.rb +1 -1
- data/lib/tdlib/types/fact_check.rb +11 -0
- data/lib/tdlib/types/failed_to_add_member.rb +14 -0
- data/lib/tdlib/types/failed_to_add_members.rb +9 -0
- data/lib/tdlib/types/file.rb +2 -3
- data/lib/tdlib/types/file_download.rb +17 -0
- data/lib/tdlib/types/file_downloaded_prefix_size.rb +8 -0
- data/lib/tdlib/types/file_type/notification_sound.rb +5 -0
- data/lib/tdlib/types/file_type/photo_story.rb +5 -0
- data/lib/tdlib/types/file_type/video_story.rb +5 -0
- data/lib/tdlib/types/file_type.rb +4 -1
- data/lib/tdlib/types/firebase_authentication_settings/android.rb +5 -0
- data/lib/tdlib/types/firebase_authentication_settings/ios.rb +10 -0
- data/lib/tdlib/types/firebase_authentication_settings.rb +11 -0
- data/lib/tdlib/types/firebase_device_verification_parameters/play_integrity.rb +11 -0
- data/lib/tdlib/types/firebase_device_verification_parameters/safety_net.rb +8 -0
- data/lib/tdlib/types/firebase_device_verification_parameters.rb +11 -0
- data/lib/tdlib/types/formatted_text.rb +2 -1
- data/lib/tdlib/types/forum_topic.rb +26 -0
- data/lib/tdlib/types/forum_topic_icon.rb +10 -0
- data/lib/tdlib/types/forum_topic_info.rb +24 -0
- data/lib/tdlib/types/forum_topics.rb +16 -0
- data/lib/tdlib/types/forward_source.rb +21 -0
- data/lib/tdlib/types/found_chat_boosts.rb +13 -0
- data/lib/tdlib/types/found_chat_messages.rb +13 -0
- data/lib/tdlib/types/found_file_downloads.rb +13 -0
- data/lib/tdlib/types/found_messages.rb +2 -2
- data/lib/tdlib/types/found_position.rb +8 -0
- data/lib/tdlib/types/found_positions.rb +10 -0
- data/lib/tdlib/types/found_stories.rb +13 -0
- data/lib/tdlib/types/found_users.rb +11 -0
- data/lib/tdlib/types/found_web_app.rb +15 -0
- data/lib/tdlib/types/game.rb +2 -2
- data/lib/tdlib/types/group_call.rb +19 -5
- data/lib/tdlib/types/group_call_participant.rb +14 -5
- data/lib/tdlib/types/group_call_participant_video_info.rb +14 -0
- data/lib/tdlib/types/group_call_stream.rb +13 -0
- data/lib/tdlib/types/group_call_streams.rb +8 -0
- data/lib/tdlib/types/group_call_video_quality/full.rb +5 -0
- data/lib/tdlib/types/group_call_video_quality/medium.rb +5 -0
- data/lib/tdlib/types/group_call_video_quality/thumbnail.rb +5 -0
- data/lib/tdlib/types/group_call_video_quality.rb +12 -0
- data/lib/tdlib/types/group_call_video_source_group.rb +10 -0
- data/lib/tdlib/types/identity_document.rb +5 -4
- data/lib/tdlib/types/imported_contacts.rb +1 -1
- data/lib/tdlib/types/inline_keyboard_button_type/callback_with_password.rb +2 -1
- data/lib/tdlib/types/inline_keyboard_button_type/login_url.rb +2 -2
- data/lib/tdlib/types/inline_keyboard_button_type/switch_inline.rb +2 -2
- data/lib/tdlib/types/inline_keyboard_button_type/url.rb +1 -0
- data/lib/tdlib/types/inline_keyboard_button_type/user.rb +8 -0
- data/lib/tdlib/types/inline_keyboard_button_type/web_app.rb +8 -0
- data/lib/tdlib/types/inline_keyboard_button_type.rb +3 -1
- data/lib/tdlib/types/inline_query_results.rb +5 -8
- data/lib/tdlib/types/inline_query_results_button.rb +10 -0
- data/lib/tdlib/types/inline_query_results_button_type/start_bot.rb +9 -0
- data/lib/tdlib/types/inline_query_results_button_type/web_app.rb +8 -0
- data/lib/tdlib/types/inline_query_results_button_type.rb +11 -0
- data/lib/tdlib/types/input_background/previous.rb +8 -0
- data/lib/tdlib/types/input_background.rb +1 -0
- data/lib/tdlib/types/input_business_chat_link.rb +10 -0
- data/lib/tdlib/types/input_business_start_page.rb +15 -0
- data/lib/tdlib/types/input_chat_photo/animation.rb +1 -1
- data/lib/tdlib/types/input_chat_photo/sticker.rb +8 -0
- data/lib/tdlib/types/input_chat_photo.rb +1 -0
- data/lib/tdlib/types/input_credentials/new.rb +1 -1
- data/lib/tdlib/types/input_file/generated.rb +2 -2
- data/lib/tdlib/types/input_file/id.rb +1 -1
- data/lib/tdlib/types/input_file/remote.rb +3 -3
- data/lib/tdlib/types/input_identity_document.rb +6 -5
- data/lib/tdlib/types/input_inline_query_result/animation.rb +2 -3
- data/lib/tdlib/types/input_inline_query_result/article.rb +1 -1
- data/lib/tdlib/types/input_inline_query_result/audio.rb +1 -1
- data/lib/tdlib/types/input_inline_query_result/contact.rb +1 -1
- data/lib/tdlib/types/input_inline_query_result/document.rb +1 -1
- data/lib/tdlib/types/input_inline_query_result/game.rb +1 -1
- data/lib/tdlib/types/input_inline_query_result/location.rb +1 -1
- data/lib/tdlib/types/input_inline_query_result/photo.rb +1 -1
- data/lib/tdlib/types/input_inline_query_result/sticker.rb +4 -3
- data/lib/tdlib/types/input_inline_query_result/venue.rb +1 -1
- data/lib/tdlib/types/input_inline_query_result/video.rb +1 -1
- data/lib/tdlib/types/input_inline_query_result/voice_note.rb +1 -1
- data/lib/tdlib/types/input_invoice/message.rb +10 -0
- data/lib/tdlib/types/input_invoice/name.rb +8 -0
- data/lib/tdlib/types/input_invoice/telegram.rb +8 -0
- data/lib/tdlib/types/input_invoice.rb +12 -0
- data/lib/tdlib/types/input_message_content/animation.rb +10 -3
- data/lib/tdlib/types/input_message_content/audio.rb +5 -3
- data/lib/tdlib/types/input_message_content/dice.rb +1 -1
- data/lib/tdlib/types/input_message_content/document.rb +6 -5
- data/lib/tdlib/types/input_message_content/forwarded.rb +4 -3
- data/lib/tdlib/types/input_message_content/invoice.rb +7 -2
- data/lib/tdlib/types/input_message_content/location.rb +2 -2
- data/lib/tdlib/types/input_message_content/paid_media.rb +17 -0
- data/lib/tdlib/types/input_message_content/photo.rb +16 -6
- data/lib/tdlib/types/input_message_content/poll.rb +7 -5
- data/lib/tdlib/types/input_message_content/sticker.rb +2 -2
- data/lib/tdlib/types/input_message_content/story.rb +12 -0
- data/lib/tdlib/types/input_message_content/text.rb +7 -7
- data/lib/tdlib/types/input_message_content/video.rb +14 -7
- data/lib/tdlib/types/input_message_content/video_note.rb +6 -2
- data/lib/tdlib/types/input_message_content/voice_note.rb +9 -3
- data/lib/tdlib/types/input_message_content.rb +2 -0
- data/lib/tdlib/types/input_message_reply_to/external_message.rb +13 -0
- data/lib/tdlib/types/input_message_reply_to/message.rb +12 -0
- data/lib/tdlib/types/input_message_reply_to/story.rb +11 -0
- data/lib/tdlib/types/input_message_reply_to.rb +12 -0
- data/lib/tdlib/types/input_paid_media.rb +18 -0
- data/lib/tdlib/types/input_paid_media_type/photo.rb +8 -0
- data/lib/tdlib/types/input_paid_media_type/video.rb +10 -0
- data/lib/tdlib/types/input_paid_media_type.rb +11 -0
- data/lib/tdlib/types/input_sticker.rb +15 -7
- data/lib/tdlib/types/input_story_area.rb +10 -0
- data/lib/tdlib/types/input_story_area_type/found_venue.rb +10 -0
- data/lib/tdlib/types/input_story_area_type/link.rb +8 -0
- data/lib/tdlib/types/input_story_area_type/location.rb +10 -0
- data/lib/tdlib/types/input_story_area_type/message.rb +12 -0
- data/lib/tdlib/types/input_story_area_type/previous_venue.rb +10 -0
- data/lib/tdlib/types/input_story_area_type/suggested_reaction.rb +12 -0
- data/lib/tdlib/types/input_story_area_type/weather.rb +12 -0
- data/lib/tdlib/types/input_story_area_type.rb +16 -0
- data/lib/tdlib/types/input_story_areas.rb +13 -0
- data/lib/tdlib/types/input_story_content/photo.rb +12 -0
- data/lib/tdlib/types/input_story_content/video.rb +19 -0
- data/lib/tdlib/types/input_story_content.rb +11 -0
- data/lib/tdlib/types/input_text_quote.rb +12 -0
- data/lib/tdlib/types/internal_link_type/active_sessions.rb +6 -0
- data/lib/tdlib/types/internal_link_type/attachment_menu_bot.rb +21 -0
- data/lib/tdlib/types/internal_link_type/authentication_code.rb +9 -0
- data/lib/tdlib/types/internal_link_type/background.rb +10 -0
- data/lib/tdlib/types/internal_link_type/bot_add_to_channel.rb +16 -0
- data/lib/tdlib/types/internal_link_type/bot_start.rb +15 -0
- data/lib/tdlib/types/internal_link_type/bot_start_in_group.rb +23 -0
- data/lib/tdlib/types/internal_link_type/business_chat.rb +10 -0
- data/lib/tdlib/types/internal_link_type/buy_stars.rb +12 -0
- data/lib/tdlib/types/internal_link_type/change_phone_number.rb +5 -0
- data/lib/tdlib/types/internal_link_type/chat_boost.rb +12 -0
- data/lib/tdlib/types/internal_link_type/chat_folder_invite.rb +10 -0
- data/lib/tdlib/types/internal_link_type/chat_folder_settings.rb +5 -0
- data/lib/tdlib/types/internal_link_type/chat_invite.rb +10 -0
- data/lib/tdlib/types/internal_link_type/default_message_auto_delete_timer_settings.rb +5 -0
- data/lib/tdlib/types/internal_link_type/edit_profile_settings.rb +5 -0
- data/lib/tdlib/types/internal_link_type/game.rb +12 -0
- data/lib/tdlib/types/internal_link_type/instant_view.rb +12 -0
- data/lib/tdlib/types/internal_link_type/invoice.rb +9 -0
- data/lib/tdlib/types/internal_link_type/language_pack.rb +11 -0
- data/lib/tdlib/types/internal_link_type/language_settings.rb +5 -0
- data/lib/tdlib/types/internal_link_type/main_web_app.rb +18 -0
- data/lib/tdlib/types/internal_link_type/message.rb +10 -0
- data/lib/tdlib/types/internal_link_type/message_draft.rb +13 -0
- data/lib/tdlib/types/internal_link_type/passport_data_request.rb +22 -0
- data/lib/tdlib/types/internal_link_type/phone_number_confirmation.rb +13 -0
- data/lib/tdlib/types/internal_link_type/premium_features.rb +10 -0
- data/lib/tdlib/types/internal_link_type/premium_gift.rb +9 -0
- data/lib/tdlib/types/internal_link_type/premium_gift_code.rb +10 -0
- data/lib/tdlib/types/internal_link_type/privacy_and_security_settings.rb +5 -0
- data/lib/tdlib/types/internal_link_type/proxy.rb +13 -0
- data/lib/tdlib/types/internal_link_type/public_chat.rb +17 -0
- data/lib/tdlib/types/internal_link_type/qr_code_authentication.rb +8 -0
- data/lib/tdlib/types/internal_link_type/restore_purchases.rb +6 -0
- data/lib/tdlib/types/internal_link_type/settings.rb +5 -0
- data/lib/tdlib/types/internal_link_type/sticker_set.rb +12 -0
- data/lib/tdlib/types/internal_link_type/story.rb +12 -0
- data/lib/tdlib/types/internal_link_type/theme.rb +9 -0
- data/lib/tdlib/types/internal_link_type/theme_settings.rb +5 -0
- data/lib/tdlib/types/internal_link_type/unknown_deep_link.rb +9 -0
- data/lib/tdlib/types/internal_link_type/unsupported_proxy.rb +6 -0
- data/lib/tdlib/types/internal_link_type/user_phone_number.rb +16 -0
- data/lib/tdlib/types/internal_link_type/user_token.rb +10 -0
- data/lib/tdlib/types/internal_link_type/video_chat.rb +16 -0
- data/lib/tdlib/types/internal_link_type/web_app.rb +21 -0
- data/lib/tdlib/types/internal_link_type.rb +54 -0
- data/lib/tdlib/types/invite_link_chat_type/basic_group.rb +5 -0
- data/lib/tdlib/types/invite_link_chat_type/channel.rb +5 -0
- data/lib/tdlib/types/invite_link_chat_type/supergroup.rb +5 -0
- data/lib/tdlib/types/invite_link_chat_type.rb +12 -0
- data/lib/tdlib/types/invoice.rb +8 -0
- data/lib/tdlib/types/keyboard_button_type/request_chat.rb +41 -0
- data/lib/tdlib/types/keyboard_button_type/request_users.rb +28 -0
- data/lib/tdlib/types/keyboard_button_type/text.rb +1 -1
- data/lib/tdlib/types/keyboard_button_type/web_app.rb +8 -0
- data/lib/tdlib/types/keyboard_button_type.rb +3 -0
- data/lib/tdlib/types/language_pack_info.rb +2 -2
- data/lib/tdlib/types/language_pack_string.rb +2 -1
- data/lib/tdlib/types/language_pack_string_value/deleted.rb +1 -1
- data/lib/tdlib/types/language_pack_string_value/pluralized.rb +1 -1
- data/lib/tdlib/types/link_preview.rb +35 -0
- data/lib/tdlib/types/link_preview_album_media/photo.rb +8 -0
- data/lib/tdlib/types/link_preview_album_media/video.rb +8 -0
- data/lib/tdlib/types/link_preview_album_media.rb +11 -0
- data/lib/tdlib/types/link_preview_options.rb +20 -0
- data/lib/tdlib/types/link_preview_type/album.rb +10 -0
- data/lib/tdlib/types/link_preview_type/animation.rb +10 -0
- data/lib/tdlib/types/link_preview_type/app.rb +10 -0
- data/lib/tdlib/types/link_preview_type/article.rb +10 -0
- data/lib/tdlib/types/link_preview_type/audio.rb +16 -0
- data/lib/tdlib/types/link_preview_type/background.rb +11 -0
- data/lib/tdlib/types/link_preview_type/channel_boost.rb +8 -0
- data/lib/tdlib/types/link_preview_type/chat.rb +12 -0
- data/lib/tdlib/types/link_preview_type/document.rb +10 -0
- data/lib/tdlib/types/link_preview_type/embedded_animation_player.rb +18 -0
- data/lib/tdlib/types/link_preview_type/embedded_audio_player.rb +18 -0
- data/lib/tdlib/types/link_preview_type/embedded_video_player.rb +18 -0
- data/lib/tdlib/types/link_preview_type/invoice.rb +5 -0
- data/lib/tdlib/types/link_preview_type/message.rb +5 -0
- data/lib/tdlib/types/link_preview_type/photo.rb +10 -0
- data/lib/tdlib/types/link_preview_type/premium_gift_code.rb +5 -0
- data/lib/tdlib/types/link_preview_type/shareable_chat_folder.rb +5 -0
- data/lib/tdlib/types/link_preview_type/sticker.rb +9 -0
- data/lib/tdlib/types/link_preview_type/sticker_set.rb +8 -0
- data/lib/tdlib/types/link_preview_type/story.rb +11 -0
- data/lib/tdlib/types/link_preview_type/supergroup_boost.rb +8 -0
- data/lib/tdlib/types/link_preview_type/theme.rb +11 -0
- data/lib/tdlib/types/link_preview_type/unsupported.rb +5 -0
- data/lib/tdlib/types/link_preview_type/user.rb +10 -0
- data/lib/tdlib/types/link_preview_type/video.rb +20 -0
- data/lib/tdlib/types/link_preview_type/video_chat.rb +11 -0
- data/lib/tdlib/types/link_preview_type/video_note.rb +8 -0
- data/lib/tdlib/types/link_preview_type/voice_note.rb +8 -0
- data/lib/tdlib/types/link_preview_type/web_app.rb +8 -0
- data/lib/tdlib/types/link_preview_type.rb +38 -0
- data/lib/tdlib/types/local_file.rb +4 -4
- data/lib/tdlib/types/location_address.rb +14 -0
- data/lib/tdlib/types/log_stream/file.rb +1 -1
- data/lib/tdlib/types/login_url_info/open.rb +3 -3
- data/lib/tdlib/types/login_url_info/request_confirmation.rb +2 -2
- data/lib/tdlib/types/main_web_app.rb +11 -0
- data/lib/tdlib/types/mask_point/chin.rb +1 -1
- data/lib/tdlib/types/mask_point/eyes.rb +1 -1
- data/lib/tdlib/types/mask_point/forehead.rb +1 -1
- data/lib/tdlib/types/mask_point/mouth.rb +1 -1
- data/lib/tdlib/types/mask_point.rb +1 -1
- data/lib/tdlib/types/mask_position.rb +2 -2
- data/lib/tdlib/types/message.rb +57 -37
- data/lib/tdlib/types/message_auto_delete_time.rb +9 -0
- data/lib/tdlib/types/message_calendar.rb +10 -0
- data/lib/tdlib/types/message_calendar_day.rb +10 -0
- data/lib/tdlib/types/message_content/animated_emoji.rb +10 -0
- data/lib/tdlib/types/message_content/animation.rb +5 -0
- data/lib/tdlib/types/message_content/bot_write_access_allowed.rb +8 -0
- data/lib/tdlib/types/message_content/chat_boost.rb +8 -0
- data/lib/tdlib/types/message_content/chat_join_by_link.rb +1 -1
- data/lib/tdlib/types/message_content/chat_join_by_request.rb +5 -0
- data/lib/tdlib/types/message_content/chat_set_background.rb +14 -0
- data/lib/tdlib/types/message_content/chat_set_message_auto_delete_time.rb +10 -0
- data/lib/tdlib/types/message_content/chat_set_theme.rb +9 -0
- data/lib/tdlib/types/message_content/chat_shared.rb +10 -0
- data/lib/tdlib/types/message_content/dice.rb +2 -2
- data/lib/tdlib/types/message_content/expired_photo.rb +1 -1
- data/lib/tdlib/types/message_content/expired_video.rb +1 -1
- data/lib/tdlib/types/message_content/expired_video_note.rb +5 -0
- data/lib/tdlib/types/message_content/expired_voice_note.rb +5 -0
- data/lib/tdlib/types/message_content/forum_topic_created.rb +10 -0
- data/lib/tdlib/types/message_content/forum_topic_edited.rb +13 -0
- data/lib/tdlib/types/message_content/forum_topic_is_closed_toggled.rb +8 -0
- data/lib/tdlib/types/message_content/forum_topic_is_hidden_toggled.rb +8 -0
- data/lib/tdlib/types/message_content/gifted_premium.rb +24 -0
- data/lib/tdlib/types/message_content/gifted_stars.rb +26 -0
- data/lib/tdlib/types/message_content/invite_video_chat_participants.rb +11 -0
- data/lib/tdlib/types/message_content/invoice.rb +9 -9
- data/lib/tdlib/types/message_content/location.rb +4 -3
- data/lib/tdlib/types/message_content/paid_media.rb +15 -0
- data/lib/tdlib/types/message_content/passport_data_sent.rb +1 -1
- data/lib/tdlib/types/message_content/payment_refunded.rb +18 -0
- data/lib/tdlib/types/message_content/payment_successful.rb +9 -3
- data/lib/tdlib/types/message_content/payment_successful_bot.rb +4 -0
- data/lib/tdlib/types/message_content/photo.rb +6 -1
- data/lib/tdlib/types/message_content/premium_gift_code.rb +29 -0
- data/lib/tdlib/types/message_content/premium_giveaway.rb +15 -0
- data/lib/tdlib/types/message_content/premium_giveaway_completed.rb +13 -0
- data/lib/tdlib/types/message_content/premium_giveaway_created.rb +6 -0
- data/lib/tdlib/types/message_content/premium_giveaway_winners.rb +31 -0
- data/lib/tdlib/types/message_content/proximity_alert_triggered.rb +5 -4
- data/lib/tdlib/types/message_content/sticker.rb +2 -0
- data/lib/tdlib/types/message_content/story.rb +12 -0
- data/lib/tdlib/types/message_content/suggest_profile_photo.rb +9 -0
- data/lib/tdlib/types/message_content/text.rb +5 -2
- data/lib/tdlib/types/message_content/unsupported.rb +1 -1
- data/lib/tdlib/types/message_content/users_shared.rb +10 -0
- data/lib/tdlib/types/message_content/video.rb +5 -0
- data/lib/tdlib/types/message_content/video_chat_ended.rb +8 -0
- data/lib/tdlib/types/message_content/{voice_chat_scheduled.rb → video_chat_scheduled.rb} +4 -4
- data/lib/tdlib/types/message_content/video_chat_started.rb +9 -0
- data/lib/tdlib/types/message_content/web_app_data_received.rb +11 -0
- data/lib/tdlib/types/message_content/web_app_data_sent.rb +9 -0
- data/lib/tdlib/types/message_content.rb +34 -8
- data/lib/tdlib/types/message_copy_options.rb +11 -6
- data/lib/tdlib/types/message_effect.rb +16 -0
- data/lib/tdlib/types/message_effect_type/emoji_reaction.rb +10 -0
- data/lib/tdlib/types/message_effect_type/premium_sticker.rb +9 -0
- data/lib/tdlib/types/message_effect_type.rb +11 -0
- data/lib/tdlib/types/message_file_type/group.rb +1 -1
- data/lib/tdlib/types/message_file_type/private.rb +1 -1
- data/lib/tdlib/types/message_file_type/unknown.rb +1 -1
- data/lib/tdlib/types/message_forward_info.rb +7 -11
- data/lib/tdlib/types/message_import_info.rb +10 -0
- data/lib/tdlib/types/message_interaction_info.rb +4 -2
- data/lib/tdlib/types/message_link.rb +2 -2
- data/lib/tdlib/types/message_link_info.rb +10 -5
- data/lib/tdlib/types/{message_forward_origin → message_origin}/channel.rb +2 -2
- data/lib/tdlib/types/message_origin/chat.rb +11 -0
- data/lib/tdlib/types/{message_forward_origin → message_origin}/hidden_user.rb +1 -1
- data/lib/tdlib/types/{message_forward_origin → message_origin}/user.rb +1 -1
- data/lib/tdlib/types/message_origin.rb +13 -0
- data/lib/tdlib/types/message_position.rb +12 -0
- data/lib/tdlib/types/message_positions.rb +10 -0
- data/lib/tdlib/types/message_properties.rb +72 -0
- data/lib/tdlib/types/message_reaction.rb +18 -0
- data/lib/tdlib/types/message_reactions.rb +15 -0
- data/lib/tdlib/types/message_read_date/my_privacy_restricted.rb +6 -0
- data/lib/tdlib/types/message_read_date/read.rb +8 -0
- data/lib/tdlib/types/message_read_date/too_old.rb +5 -0
- data/lib/tdlib/types/message_read_date/unread.rb +5 -0
- data/lib/tdlib/types/message_read_date/user_privacy_restricted.rb +5 -0
- data/lib/tdlib/types/message_read_date.rb +14 -0
- data/lib/tdlib/types/message_reply_info.rb +4 -3
- data/lib/tdlib/types/message_reply_to/message.rb +26 -0
- data/lib/tdlib/types/message_reply_to/story.rb +10 -0
- data/lib/tdlib/types/message_reply_to.rb +11 -0
- data/lib/tdlib/types/message_scheduling_state/send_at_date.rb +1 -1
- data/lib/tdlib/types/message_scheduling_state/send_when_online.rb +2 -2
- data/lib/tdlib/types/message_self_destruct_type/immediately.rb +5 -0
- data/lib/tdlib/types/message_self_destruct_type/timer.rb +9 -0
- data/lib/tdlib/types/message_self_destruct_type.rb +11 -0
- data/lib/tdlib/types/message_send_options.rb +17 -1
- data/lib/tdlib/types/message_senders.rb +1 -1
- data/lib/tdlib/types/message_sending_state/failed.rb +12 -5
- data/lib/tdlib/types/message_sending_state/pending.rb +3 -0
- data/lib/tdlib/types/message_source/chat_event_log.rb +5 -0
- data/lib/tdlib/types/message_source/chat_history.rb +5 -0
- data/lib/tdlib/types/message_source/chat_list.rb +5 -0
- data/lib/tdlib/types/message_source/forum_topic_history.rb +5 -0
- data/lib/tdlib/types/message_source/history_preview.rb +5 -0
- data/lib/tdlib/types/message_source/message_thread_history.rb +5 -0
- data/lib/tdlib/types/message_source/notification.rb +5 -0
- data/lib/tdlib/types/message_source/other.rb +5 -0
- data/lib/tdlib/types/message_source/screenshot.rb +6 -0
- data/lib/tdlib/types/message_source/search.rb +6 -0
- data/lib/tdlib/types/message_source.rb +19 -0
- data/lib/tdlib/types/message_sponsor.rb +13 -0
- data/lib/tdlib/types/message_statistics.rb +2 -0
- data/lib/tdlib/types/message_thread_info.rb +7 -4
- data/lib/tdlib/types/message_viewer.rb +10 -0
- data/lib/tdlib/types/message_viewers.rb +8 -0
- data/lib/tdlib/types/messages.rb +1 -1
- data/lib/tdlib/types/network_statistics_entry/file.rb +2 -1
- data/lib/tdlib/types/network_type.rb +1 -1
- data/lib/tdlib/types/new_chat_privacy_settings.rb +10 -0
- data/lib/tdlib/types/notification.rb +1 -1
- data/lib/tdlib/types/notification_settings_scope/channel_chats.rb +1 -1
- data/lib/tdlib/types/notification_settings_scope/group_chats.rb +2 -2
- data/lib/tdlib/types/notification_settings_scope.rb +1 -1
- data/lib/tdlib/types/notification_sound.rb +18 -0
- data/lib/tdlib/types/notification_sounds.rb +8 -0
- data/lib/tdlib/types/notification_type/new_message.rb +2 -0
- data/lib/tdlib/types/notification_type/new_push_message.rb +4 -4
- data/lib/tdlib/types/page_block/animation.rb +1 -1
- data/lib/tdlib/types/page_block/chat_link.rb +3 -1
- data/lib/tdlib/types/page_block/embedded.rb +3 -3
- data/lib/tdlib/types/page_block/embedded_post.rb +1 -1
- data/lib/tdlib/types/page_block/preformatted.rb +1 -1
- data/lib/tdlib/types/page_block/video.rb +2 -2
- data/lib/tdlib/types/page_block.rb +1 -1
- data/lib/tdlib/types/page_block_caption.rb +1 -1
- data/lib/tdlib/types/page_block_horizontal_alignment/center.rb +1 -1
- data/lib/tdlib/types/page_block_horizontal_alignment/left.rb +1 -1
- data/lib/tdlib/types/page_block_horizontal_alignment/right.rb +1 -1
- data/lib/tdlib/types/page_block_table_cell.rb +3 -3
- data/lib/tdlib/types/page_block_vertical_alignment/bottom.rb +1 -1
- data/lib/tdlib/types/page_block_vertical_alignment/middle.rb +1 -1
- data/lib/tdlib/types/page_block_vertical_alignment/top.rb +1 -1
- data/lib/tdlib/types/paid_media/photo.rb +8 -0
- data/lib/tdlib/types/paid_media/preview.rb +14 -0
- data/lib/tdlib/types/paid_media/unsupported.rb +5 -0
- data/lib/tdlib/types/paid_media/video.rb +8 -0
- data/lib/tdlib/types/paid_media.rb +13 -0
- data/lib/tdlib/types/paid_reactor.rb +18 -0
- data/lib/tdlib/types/passport_authorization_form.rb +2 -2
- data/lib/tdlib/types/passport_element_type.rb +1 -1
- data/lib/tdlib/types/password_state.rb +5 -0
- data/lib/tdlib/types/payment_form.rb +4 -19
- data/lib/tdlib/types/payment_form_type/regular.rb +23 -0
- data/lib/tdlib/types/payment_form_type/stars.rb +8 -0
- data/lib/tdlib/types/payment_form_type.rb +11 -0
- data/lib/tdlib/types/payment_option.rb +10 -0
- data/lib/tdlib/types/payment_provider/other.rb +8 -0
- data/lib/tdlib/types/payment_provider/smart_glocal.rb +10 -0
- data/lib/tdlib/types/{payments_provider_stripe.rb → payment_provider/stripe.rb} +1 -1
- data/lib/tdlib/types/payment_provider.rb +12 -0
- data/lib/tdlib/types/payment_receipt.rb +4 -18
- data/lib/tdlib/types/payment_receipt_type/regular.rb +18 -0
- data/lib/tdlib/types/payment_receipt_type/stars.rb +10 -0
- data/lib/tdlib/types/payment_receipt_type.rb +11 -0
- data/lib/tdlib/types/payment_result.rb +2 -2
- data/lib/tdlib/types/phone_number_authentication_settings.rb +14 -1
- data/lib/tdlib/types/phone_number_code_type/change.rb +6 -0
- data/lib/tdlib/types/phone_number_code_type/confirm_ownership.rb +9 -0
- data/lib/tdlib/types/phone_number_code_type/verify.rb +5 -0
- data/lib/tdlib/types/phone_number_code_type.rb +12 -0
- data/lib/tdlib/types/phone_number_info.rb +5 -0
- data/lib/tdlib/types/photo_size.rb +1 -1
- data/lib/tdlib/types/poll.rb +7 -5
- data/lib/tdlib/types/poll_option.rb +3 -2
- data/lib/tdlib/types/poll_type.rb +1 -1
- data/lib/tdlib/types/premium_feature/accent_color.rb +5 -0
- data/lib/tdlib/types/premium_feature/advanced_chat_management.rb +6 -0
- data/lib/tdlib/types/premium_feature/animated_profile_photo.rb +5 -0
- data/lib/tdlib/types/premium_feature/app_icons.rb +5 -0
- data/lib/tdlib/types/premium_feature/background_for_both.rb +5 -0
- data/lib/tdlib/types/premium_feature/business.rb +5 -0
- data/lib/tdlib/types/premium_feature/chat_boost.rb +5 -0
- data/lib/tdlib/types/premium_feature/custom_emoji.rb +5 -0
- data/lib/tdlib/types/premium_feature/disabled_ads.rb +5 -0
- data/lib/tdlib/types/premium_feature/emoji_status.rb +5 -0
- data/lib/tdlib/types/premium_feature/forum_topic_icon.rb +5 -0
- data/lib/tdlib/types/premium_feature/improved_download_speed.rb +5 -0
- data/lib/tdlib/types/premium_feature/increased_limits.rb +5 -0
- data/lib/tdlib/types/premium_feature/increased_upload_file_size.rb +5 -0
- data/lib/tdlib/types/premium_feature/last_seen_times.rb +6 -0
- data/lib/tdlib/types/premium_feature/message_effects.rb +5 -0
- data/lib/tdlib/types/premium_feature/message_privacy.rb +7 -0
- data/lib/tdlib/types/premium_feature/profile_badge.rb +5 -0
- data/lib/tdlib/types/premium_feature/real_time_chat_translation.rb +5 -0
- data/lib/tdlib/types/premium_feature/saved_messages_tags.rb +5 -0
- data/lib/tdlib/types/premium_feature/unique_reactions.rb +5 -0
- data/lib/tdlib/types/premium_feature/unique_stickers.rb +5 -0
- data/lib/tdlib/types/premium_feature/upgraded_stories.rb +5 -0
- data/lib/tdlib/types/premium_feature/voice_recognition.rb +5 -0
- data/lib/tdlib/types/premium_feature.rb +33 -0
- data/lib/tdlib/types/premium_feature_promotion_animation.rb +10 -0
- data/lib/tdlib/types/premium_features.rb +13 -0
- data/lib/tdlib/types/premium_gift_code_info.rb +25 -0
- data/lib/tdlib/types/premium_gift_code_payment_option.rb +20 -0
- data/lib/tdlib/types/premium_gift_code_payment_options.rb +8 -0
- data/lib/tdlib/types/premium_giveaway_info/completed.rb +20 -0
- data/lib/tdlib/types/premium_giveaway_info/ongoing.rb +12 -0
- data/lib/tdlib/types/premium_giveaway_info.rb +11 -0
- data/lib/tdlib/types/premium_giveaway_parameters.rb +31 -0
- data/lib/tdlib/types/premium_giveaway_participant_status/administrator.rb +9 -0
- data/lib/tdlib/types/premium_giveaway_participant_status/already_was_member.rb +8 -0
- data/lib/tdlib/types/premium_giveaway_participant_status/disallowed_country.rb +8 -0
- data/lib/tdlib/types/premium_giveaway_participant_status/eligible.rb +5 -0
- data/lib/tdlib/types/premium_giveaway_participant_status/participating.rb +5 -0
- data/lib/tdlib/types/premium_giveaway_participant_status.rb +14 -0
- data/lib/tdlib/types/premium_limit.rb +12 -0
- data/lib/tdlib/types/premium_limit_type/active_story_count.rb +5 -0
- data/lib/tdlib/types/premium_limit_type/bio_length.rb +5 -0
- data/lib/tdlib/types/premium_limit_type/caption_length.rb +5 -0
- data/lib/tdlib/types/premium_limit_type/chat_folder_chosen_chat_count.rb +5 -0
- data/lib/tdlib/types/premium_limit_type/chat_folder_count.rb +5 -0
- data/lib/tdlib/types/premium_limit_type/chat_folder_invite_link_count.rb +5 -0
- data/lib/tdlib/types/premium_limit_type/created_public_chat_count.rb +5 -0
- data/lib/tdlib/types/premium_limit_type/favorite_sticker_count.rb +5 -0
- data/lib/tdlib/types/premium_limit_type/monthly_sent_story_count.rb +5 -0
- data/lib/tdlib/types/premium_limit_type/pinned_archived_chat_count.rb +5 -0
- data/lib/tdlib/types/premium_limit_type/pinned_chat_count.rb +5 -0
- data/lib/tdlib/types/premium_limit_type/pinned_saved_messages_topic_count.rb +5 -0
- data/lib/tdlib/types/premium_limit_type/saved_animation_count.rb +5 -0
- data/lib/tdlib/types/premium_limit_type/shareable_chat_folder_count.rb +5 -0
- data/lib/tdlib/types/premium_limit_type/similar_chat_count.rb +5 -0
- data/lib/tdlib/types/premium_limit_type/story_caption_length.rb +5 -0
- data/lib/tdlib/types/premium_limit_type/story_suggested_reaction_area_count.rb +5 -0
- data/lib/tdlib/types/premium_limit_type/supergroup_count.rb +5 -0
- data/lib/tdlib/types/premium_limit_type/weekly_sent_story_count.rb +5 -0
- data/lib/tdlib/types/premium_limit_type.rb +28 -0
- data/lib/tdlib/types/premium_payment_option.rb +19 -0
- data/lib/tdlib/types/premium_source/business_feature.rb +8 -0
- data/lib/tdlib/types/premium_source/feature.rb +8 -0
- data/lib/tdlib/types/premium_source/limit_exceeded.rb +8 -0
- data/lib/tdlib/types/premium_source/link.rb +8 -0
- data/lib/tdlib/types/premium_source/settings.rb +5 -0
- data/lib/tdlib/types/premium_source/story_feature.rb +8 -0
- data/lib/tdlib/types/premium_source.rb +15 -0
- data/lib/tdlib/types/premium_state.rb +18 -0
- data/lib/tdlib/types/premium_state_payment_option.rb +16 -0
- data/lib/tdlib/types/premium_story_feature/custom_expiration_duration.rb +5 -0
- data/lib/tdlib/types/premium_story_feature/links_and_formatting.rb +5 -0
- data/lib/tdlib/types/premium_story_feature/permanent_views_history.rb +5 -0
- data/lib/tdlib/types/premium_story_feature/priority_order.rb +5 -0
- data/lib/tdlib/types/premium_story_feature/save_stories.rb +5 -0
- data/lib/tdlib/types/premium_story_feature/stealth_mode.rb +5 -0
- data/lib/tdlib/types/premium_story_feature/video_quality.rb +5 -0
- data/lib/tdlib/types/premium_story_feature.rb +16 -0
- data/lib/tdlib/types/prepaid_premium_giveaway.rb +15 -0
- data/lib/tdlib/types/product_info.rb +12 -0
- data/lib/tdlib/types/profile_accent_color.rb +18 -0
- data/lib/tdlib/types/profile_accent_colors.rb +15 -0
- data/lib/tdlib/types/profile_photo.rb +2 -0
- data/lib/tdlib/types/proxy.rb +1 -1
- data/lib/tdlib/types/proxy_type.rb +1 -1
- data/lib/tdlib/types/public_chat_type/has_username.rb +1 -1
- data/lib/tdlib/types/public_chat_type.rb +1 -1
- data/lib/tdlib/types/public_forward/message.rb +8 -0
- data/lib/tdlib/types/public_forward/story.rb +8 -0
- data/lib/tdlib/types/public_forward.rb +11 -0
- data/lib/tdlib/types/public_forwards.rb +13 -0
- data/lib/tdlib/types/push_message_content/chat_add_members.rb +1 -1
- data/lib/tdlib/types/push_message_content/chat_delete_member.rb +1 -1
- data/lib/tdlib/types/push_message_content/chat_join_by_link.rb +1 -1
- data/lib/tdlib/types/push_message_content/chat_join_by_request.rb +5 -0
- data/lib/tdlib/types/push_message_content/chat_set_background.rb +8 -0
- data/lib/tdlib/types/push_message_content/chat_set_theme.rb +9 -0
- data/lib/tdlib/types/push_message_content/media_album.rb +1 -1
- data/lib/tdlib/types/push_message_content/paid_media.rb +11 -0
- data/lib/tdlib/types/push_message_content/premium_gift_code.rb +9 -0
- data/lib/tdlib/types/push_message_content/premium_giveaway.rb +14 -0
- data/lib/tdlib/types/push_message_content/recurring_payment.rb +8 -0
- data/lib/tdlib/types/push_message_content/story.rb +8 -0
- data/lib/tdlib/types/push_message_content/suggest_profile_photo.rb +5 -0
- data/lib/tdlib/types/push_message_content.rb +9 -0
- data/lib/tdlib/types/quick_reply_message.rb +25 -0
- data/lib/tdlib/types/quick_reply_messages.rb +8 -0
- data/lib/tdlib/types/quick_reply_shortcut.rb +14 -0
- data/lib/tdlib/types/reaction_notification_settings.rb +16 -0
- data/lib/tdlib/types/reaction_notification_source/all.rb +5 -0
- data/lib/tdlib/types/reaction_notification_source/contacts.rb +5 -0
- data/lib/tdlib/types/reaction_notification_source/none.rb +5 -0
- data/lib/tdlib/types/reaction_notification_source.rb +12 -0
- data/lib/tdlib/types/reaction_type/custom_emoji.rb +8 -0
- data/lib/tdlib/types/reaction_type/emoji.rb +8 -0
- data/lib/tdlib/types/reaction_type/paid.rb +5 -0
- data/lib/tdlib/types/reaction_type.rb +12 -0
- data/lib/tdlib/types/reaction_unavailability_reason/anonymous_administrator.rb +6 -0
- data/lib/tdlib/types/reaction_unavailability_reason/guest.rb +5 -0
- data/lib/tdlib/types/reaction_unavailability_reason.rb +11 -0
- data/lib/tdlib/types/read_date_privacy_settings.rb +11 -0
- data/lib/tdlib/types/recommended_chat_folder.rb +10 -0
- data/lib/tdlib/types/recommended_chat_folders.rb +8 -0
- data/lib/tdlib/types/remote_file.rb +6 -6
- data/lib/tdlib/types/reply_markup/force_reply.rb +3 -0
- data/lib/tdlib/types/reply_markup/remove_keyboard.rb +1 -1
- data/lib/tdlib/types/reply_markup/show_keyboard.rb +6 -0
- data/lib/tdlib/types/report_chat_sponsored_message_option.rb +10 -0
- data/lib/tdlib/types/report_chat_sponsored_message_result/ads_hidden.rb +5 -0
- data/lib/tdlib/types/report_chat_sponsored_message_result/failed.rb +5 -0
- data/lib/tdlib/types/report_chat_sponsored_message_result/ok.rb +5 -0
- data/lib/tdlib/types/report_chat_sponsored_message_result/option_required.rb +10 -0
- data/lib/tdlib/types/report_chat_sponsored_message_result/premium_required.rb +5 -0
- data/lib/tdlib/types/report_chat_sponsored_message_result.rb +14 -0
- data/lib/tdlib/types/{chat_report_reason → report_reason}/child_abuse.rb +1 -1
- data/lib/tdlib/types/{chat_report_reason → report_reason}/copyright.rb +1 -1
- data/lib/tdlib/types/{chat_report_reason → report_reason}/custom.rb +1 -1
- data/lib/tdlib/types/{chat_report_reason → report_reason}/fake.rb +1 -1
- data/lib/tdlib/types/report_reason/illegal_drugs.rb +5 -0
- data/lib/tdlib/types/report_reason/personal_details.rb +5 -0
- data/lib/tdlib/types/{chat_report_reason → report_reason}/pornography.rb +1 -1
- data/lib/tdlib/types/{chat_report_reason → report_reason}/spam.rb +1 -1
- data/lib/tdlib/types/{chat_report_reason → report_reason}/unrelated_location.rb +1 -1
- data/lib/tdlib/types/{chat_report_reason → report_reason}/violence.rb +1 -1
- data/lib/tdlib/types/{chat_report_reason.rb → report_reason.rb} +4 -2
- data/lib/tdlib/types/resend_code_reason/user_request.rb +5 -0
- data/lib/tdlib/types/resend_code_reason/verification_failed.rb +9 -0
- data/lib/tdlib/types/resend_code_reason.rb +11 -0
- data/lib/tdlib/types/reset_password_result/declined.rb +8 -0
- data/lib/tdlib/types/reset_password_result/ok.rb +5 -0
- data/lib/tdlib/types/reset_password_result/pending.rb +9 -0
- data/lib/tdlib/types/reset_password_result.rb +12 -0
- data/lib/tdlib/types/revenue_withdrawal_state/failed.rb +5 -0
- data/lib/tdlib/types/revenue_withdrawal_state/pending.rb +5 -0
- data/lib/tdlib/types/revenue_withdrawal_state/succeeded.rb +10 -0
- data/lib/tdlib/types/revenue_withdrawal_state.rb +12 -0
- data/lib/tdlib/types/rich_text/anchor_link.rb +2 -2
- data/lib/tdlib/types/rich_text/icon.rb +2 -2
- data/lib/tdlib/types/rich_text/reference.rb +1 -1
- data/lib/tdlib/types/rich_text.rb +1 -1
- data/lib/tdlib/types/rtmp_url.rb +10 -0
- data/lib/tdlib/types/saved_credentials.rb +1 -1
- data/lib/tdlib/types/saved_messages_tag.rb +13 -0
- data/lib/tdlib/types/saved_messages_tags.rb +8 -0
- data/lib/tdlib/types/saved_messages_topic.rb +19 -0
- data/lib/tdlib/types/saved_messages_topic_type/author_hidden.rb +5 -0
- data/lib/tdlib/types/saved_messages_topic_type/my_notes.rb +5 -0
- data/lib/tdlib/types/saved_messages_topic_type/saved_from_chat.rb +8 -0
- data/lib/tdlib/types/saved_messages_topic_type.rb +12 -0
- data/lib/tdlib/types/scope_autosave_settings.rb +12 -0
- data/lib/tdlib/types/scope_notification_settings.rb +13 -4
- data/lib/tdlib/types/search_messages_filter/unread_reaction.rb +7 -0
- data/lib/tdlib/types/search_messages_filter.rb +1 -2
- data/lib/tdlib/types/secret_chat.rb +4 -3
- data/lib/tdlib/types/sent_web_app_message.rb +8 -0
- data/lib/tdlib/types/session.rb +16 -8
- data/lib/tdlib/types/session_type/android.rb +5 -0
- data/lib/tdlib/types/session_type/apple.rb +5 -0
- data/lib/tdlib/types/session_type/brave.rb +5 -0
- data/lib/tdlib/types/session_type/chrome.rb +5 -0
- data/lib/tdlib/types/session_type/edge.rb +5 -0
- data/lib/tdlib/types/session_type/firefox.rb +5 -0
- data/lib/tdlib/types/session_type/ipad.rb +5 -0
- data/lib/tdlib/types/session_type/iphone.rb +5 -0
- data/lib/tdlib/types/session_type/linux.rb +5 -0
- data/lib/tdlib/types/session_type/mac.rb +5 -0
- data/lib/tdlib/types/session_type/opera.rb +5 -0
- data/lib/tdlib/types/session_type/safari.rb +5 -0
- data/lib/tdlib/types/session_type/ubuntu.rb +5 -0
- data/lib/tdlib/types/session_type/unknown.rb +5 -0
- data/lib/tdlib/types/session_type/vivaldi.rb +5 -0
- data/lib/tdlib/types/session_type/windows.rb +5 -0
- data/lib/tdlib/types/session_type/xbox.rb +5 -0
- data/lib/tdlib/types/session_type.rb +26 -0
- data/lib/tdlib/types/sessions.rb +3 -0
- data/lib/tdlib/types/shared_chat.rb +14 -0
- data/lib/tdlib/types/shared_user.rb +16 -0
- data/lib/tdlib/types/speech_recognition_result/error.rb +9 -0
- data/lib/tdlib/types/speech_recognition_result/pending.rb +8 -0
- data/lib/tdlib/types/speech_recognition_result/text.rb +8 -0
- data/lib/tdlib/types/speech_recognition_result.rb +12 -0
- data/lib/tdlib/types/sponsored_message.rb +31 -0
- data/lib/tdlib/types/sponsored_messages.rb +11 -0
- data/lib/tdlib/types/star_payment_option.rb +18 -0
- data/lib/tdlib/types/star_payment_options.rb +8 -0
- data/lib/tdlib/types/star_revenue_statistics.rb +12 -0
- data/lib/tdlib/types/star_revenue_status.rb +17 -0
- data/lib/tdlib/types/star_subscription.rb +25 -0
- data/lib/tdlib/types/star_subscription_pricing.rb +10 -0
- data/lib/tdlib/types/star_subscriptions.rb +16 -0
- data/lib/tdlib/types/star_transaction.rb +17 -0
- data/lib/tdlib/types/star_transaction_direction/incoming.rb +5 -0
- data/lib/tdlib/types/star_transaction_direction/outgoing.rb +5 -0
- data/lib/tdlib/types/star_transaction_direction.rb +11 -0
- data/lib/tdlib/types/star_transaction_partner/app_store.rb +5 -0
- data/lib/tdlib/types/star_transaction_partner/bot.rb +10 -0
- data/lib/tdlib/types/star_transaction_partner/business.rb +10 -0
- data/lib/tdlib/types/star_transaction_partner/channel.rb +10 -0
- data/lib/tdlib/types/star_transaction_partner/fragment.rb +9 -0
- data/lib/tdlib/types/star_transaction_partner/google_play.rb +5 -0
- data/lib/tdlib/types/star_transaction_partner/telegram.rb +5 -0
- data/lib/tdlib/types/star_transaction_partner/telegram_ads.rb +5 -0
- data/lib/tdlib/types/star_transaction_partner/unsupported.rb +5 -0
- data/lib/tdlib/types/star_transaction_partner/user.rb +11 -0
- data/lib/tdlib/types/star_transaction_partner.rb +19 -0
- data/lib/tdlib/types/star_transactions.rb +13 -0
- data/lib/tdlib/types/sticker.rb +7 -7
- data/lib/tdlib/types/sticker_format/tgs.rb +5 -0
- data/lib/tdlib/types/sticker_format/webm.rb +5 -0
- data/lib/tdlib/types/sticker_format/webp.rb +5 -0
- data/lib/tdlib/types/sticker_format.rb +12 -0
- data/lib/tdlib/types/sticker_full_type/custom_emoji.rb +12 -0
- data/lib/tdlib/types/sticker_full_type/mask.rb +8 -0
- data/lib/tdlib/types/sticker_full_type/regular.rb +9 -0
- data/lib/tdlib/types/sticker_full_type.rb +12 -0
- data/lib/tdlib/types/sticker_set.rb +13 -7
- data/lib/tdlib/types/sticker_set_info.rb +15 -9
- data/lib/tdlib/types/sticker_type/custom_emoji.rb +5 -0
- data/lib/tdlib/types/sticker_type/mask.rb +5 -0
- data/lib/tdlib/types/sticker_type/regular.rb +5 -0
- data/lib/tdlib/types/sticker_type.rb +12 -0
- data/lib/tdlib/types/storage_statistics.rb +1 -1
- data/lib/tdlib/types/storage_statistics_by_chat.rb +1 -1
- data/lib/tdlib/types/storage_statistics_by_file_type.rb +1 -1
- data/lib/tdlib/types/storage_statistics_fast.rb +1 -1
- data/lib/tdlib/types/store_payment_purpose/gifted_premium.rb +12 -0
- data/lib/tdlib/types/store_payment_purpose/gifted_stars.rb +14 -0
- data/lib/tdlib/types/store_payment_purpose/premium_gift_codes.rb +15 -0
- data/lib/tdlib/types/store_payment_purpose/premium_giveaway.rb +12 -0
- data/lib/tdlib/types/store_payment_purpose/premium_subscription.rb +11 -0
- data/lib/tdlib/types/store_payment_purpose/stars.rb +12 -0
- data/lib/tdlib/types/store_payment_purpose.rb +15 -0
- data/lib/tdlib/types/stories.rb +13 -0
- data/lib/tdlib/types/story.rb +62 -0
- data/lib/tdlib/types/story_area.rb +10 -0
- data/lib/tdlib/types/story_area_position.rb +19 -0
- data/lib/tdlib/types/story_area_type/link.rb +8 -0
- data/lib/tdlib/types/story_area_type/location.rb +10 -0
- data/lib/tdlib/types/story_area_type/message.rb +10 -0
- data/lib/tdlib/types/story_area_type/suggested_reaction.rb +15 -0
- data/lib/tdlib/types/story_area_type/venue.rb +8 -0
- data/lib/tdlib/types/story_area_type/weather.rb +12 -0
- data/lib/tdlib/types/story_area_type.rb +15 -0
- data/lib/tdlib/types/story_content/photo.rb +8 -0
- data/lib/tdlib/types/story_content/unsupported.rb +5 -0
- data/lib/tdlib/types/story_content/video.rb +11 -0
- data/lib/tdlib/types/story_content.rb +12 -0
- data/lib/tdlib/types/story_full_id.rb +10 -0
- data/lib/tdlib/types/story_info.rb +12 -0
- data/lib/tdlib/types/story_interaction.rb +15 -0
- data/lib/tdlib/types/story_interaction_info.rb +14 -0
- data/lib/tdlib/types/story_interaction_type/forward.rb +8 -0
- data/lib/tdlib/types/story_interaction_type/repost.rb +8 -0
- data/lib/tdlib/types/story_interaction_type/view.rb +9 -0
- data/lib/tdlib/types/story_interaction_type.rb +12 -0
- data/lib/tdlib/types/story_interactions.rb +18 -0
- data/lib/tdlib/types/story_list/archive.rb +5 -0
- data/lib/tdlib/types/story_list/main.rb +5 -0
- data/lib/tdlib/types/story_list.rb +11 -0
- data/lib/tdlib/types/story_origin/hidden_user.rb +8 -0
- data/lib/tdlib/types/story_origin/public_story.rb +10 -0
- data/lib/tdlib/types/story_origin.rb +11 -0
- data/lib/tdlib/types/story_privacy_settings/close_friends.rb +5 -0
- data/lib/tdlib/types/story_privacy_settings/contacts.rb +9 -0
- data/lib/tdlib/types/story_privacy_settings/everyone.rb +9 -0
- data/lib/tdlib/types/story_privacy_settings/selected_users.rb +8 -0
- data/lib/tdlib/types/story_privacy_settings.rb +13 -0
- data/lib/tdlib/types/story_repost_info.rb +11 -0
- data/lib/tdlib/types/story_statistics.rb +10 -0
- data/lib/tdlib/types/story_video.rb +27 -0
- data/lib/tdlib/types/suggested_action/check_password.rb +5 -0
- data/lib/tdlib/types/suggested_action/check_phone_number.rb +2 -1
- data/lib/tdlib/types/suggested_action/enable_archive_and_mute_new_chats.rb +1 -1
- data/lib/tdlib/types/suggested_action/extend_premium.rb +8 -0
- data/lib/tdlib/types/suggested_action/extend_star_subscriptions.rb +7 -0
- data/lib/tdlib/types/suggested_action/gift_premium_for_christmas.rb +5 -0
- data/lib/tdlib/types/suggested_action/restore_premium.rb +5 -0
- data/lib/tdlib/types/suggested_action/set_birthdate.rb +5 -0
- data/lib/tdlib/types/suggested_action/set_password.rb +9 -0
- data/lib/tdlib/types/suggested_action/subscribe_to_annual_premium.rb +5 -0
- data/lib/tdlib/types/suggested_action/upgrade_premium.rb +5 -0
- data/lib/tdlib/types/suggested_action/view_checks_hint.rb +5 -0
- data/lib/tdlib/types/suggested_action.rb +10 -1
- data/lib/tdlib/types/supergroup.rb +33 -9
- data/lib/tdlib/types/supergroup_full_info.rb +50 -10
- data/lib/tdlib/types/t_me_url_type/chat_invite.rb +1 -1
- data/lib/tdlib/types/t_me_url_type.rb +1 -1
- data/lib/tdlib/types/target_chat/chosen.rb +14 -0
- data/lib/tdlib/types/target_chat/current.rb +5 -0
- data/lib/tdlib/types/target_chat/internal_link.rb +8 -0
- data/lib/tdlib/types/target_chat.rb +12 -0
- data/lib/tdlib/types/telegram_payment_purpose/gifted_stars.rb +14 -0
- data/lib/tdlib/types/telegram_payment_purpose/join_chat.rb +8 -0
- data/lib/tdlib/types/telegram_payment_purpose/premium_gift_codes.rb +17 -0
- data/lib/tdlib/types/telegram_payment_purpose/premium_giveaway.rb +16 -0
- data/lib/tdlib/types/telegram_payment_purpose/stars.rb +12 -0
- data/lib/tdlib/types/telegram_payment_purpose.rb +14 -0
- data/lib/tdlib/types/terms_of_service.rb +1 -1
- data/lib/tdlib/types/text_entity_type/block_quote.rb +5 -0
- data/lib/tdlib/types/text_entity_type/bot_command.rb +0 -1
- data/lib/tdlib/types/text_entity_type/cashtag.rb +1 -2
- data/lib/tdlib/types/text_entity_type/custom_emoji.rb +10 -0
- data/lib/tdlib/types/text_entity_type/expandable_block_quote.rb +6 -0
- data/lib/tdlib/types/text_entity_type/media_timestamp.rb +11 -0
- data/lib/tdlib/types/text_entity_type/mention.rb +1 -1
- data/lib/tdlib/types/text_entity_type/spoiler.rb +5 -0
- data/lib/tdlib/types/text_entity_type.rb +5 -0
- data/lib/tdlib/types/text_parse_mode.rb +1 -1
- data/lib/tdlib/types/text_quote.rb +14 -0
- data/lib/tdlib/types/theme_parameters.rb +34 -0
- data/lib/tdlib/types/theme_settings.rb +17 -0
- data/lib/tdlib/types/thumbnail_format/gif.rb +1 -1
- data/lib/tdlib/types/thumbnail_format/tgs.rb +1 -1
- data/lib/tdlib/types/thumbnail_format/webm.rb +6 -0
- data/lib/tdlib/types/thumbnail_format/webp.rb +1 -1
- data/lib/tdlib/types/thumbnail_format.rb +5 -4
- data/lib/tdlib/types/time_zone.rb +12 -0
- data/lib/tdlib/types/time_zones.rb +8 -0
- data/lib/tdlib/types/top_chat_category/web_app_bots.rb +5 -0
- data/lib/tdlib/types/top_chat_category.rb +1 -0
- data/lib/tdlib/types/trending_sticker_sets.rb +12 -0
- data/lib/tdlib/types/unconfirmed_session.rb +16 -0
- data/lib/tdlib/types/unread_reaction.rb +12 -0
- data/lib/tdlib/types/update/accent_colors.rb +15 -0
- data/lib/tdlib/types/update/active_emoji_reactions.rb +8 -0
- data/lib/tdlib/types/update/active_live_location_messages.rb +9 -0
- data/lib/tdlib/types/update/active_notifications.rb +1 -1
- data/lib/tdlib/types/update/animated_emoji_message_clicked.rb +14 -0
- data/lib/tdlib/types/update/animation_search_parameters.rb +1 -1
- data/lib/tdlib/types/update/application_verification_required.rb +15 -0
- data/lib/tdlib/types/update/attachment_menu_bots.rb +9 -0
- data/lib/tdlib/types/update/autosave_settings.rb +11 -0
- data/lib/tdlib/types/update/available_message_effects.rb +10 -0
- data/lib/tdlib/types/update/basic_group_full_info.rb +1 -1
- data/lib/tdlib/types/update/business_connection.rb +8 -0
- data/lib/tdlib/types/update/business_message_edited.rb +10 -0
- data/lib/tdlib/types/update/business_messages_deleted.rb +12 -0
- data/lib/tdlib/types/update/chat_accent_colors.rb +18 -0
- data/lib/tdlib/types/update/chat_action.rb +14 -0
- data/lib/tdlib/types/update/chat_active_stories.rb +8 -0
- data/lib/tdlib/types/update/chat_added_to_list.rb +10 -0
- data/lib/tdlib/types/update/chat_available_reactions.rb +10 -0
- data/lib/tdlib/types/update/chat_background.rb +11 -0
- data/lib/tdlib/types/update/chat_block_list.rb +10 -0
- data/lib/tdlib/types/update/chat_boost.rb +10 -0
- data/lib/tdlib/types/update/chat_business_bot_manage_bar.rb +11 -0
- data/lib/tdlib/types/update/chat_draft_message.rb +2 -2
- data/lib/tdlib/types/update/chat_emoji_status.rb +10 -0
- data/lib/tdlib/types/update/chat_folders.rb +12 -0
- data/lib/tdlib/types/update/chat_has_protected_content.rb +10 -0
- data/lib/tdlib/types/update/chat_is_translatable.rb +10 -0
- data/lib/tdlib/types/update/chat_last_message.rb +4 -3
- data/lib/tdlib/types/update/chat_member.rb +7 -1
- data/lib/tdlib/types/update/chat_message_auto_delete_time.rb +10 -0
- data/lib/tdlib/types/update/chat_message_sender.rb +11 -0
- data/lib/tdlib/types/update/chat_online_member_count.rb +2 -2
- data/lib/tdlib/types/update/chat_pending_join_requests.rb +11 -0
- data/lib/tdlib/types/update/chat_permissions.rb +1 -1
- data/lib/tdlib/types/update/chat_position.rb +1 -1
- data/lib/tdlib/types/update/chat_read_inbox.rb +1 -1
- data/lib/tdlib/types/update/chat_removed_from_list.rb +10 -0
- data/lib/tdlib/types/update/chat_revenue_amount.rb +11 -0
- data/lib/tdlib/types/update/chat_theme.rb +11 -0
- data/lib/tdlib/types/update/chat_themes.rb +8 -0
- data/lib/tdlib/types/update/chat_unread_reaction_count.rb +10 -0
- data/lib/tdlib/types/update/chat_video_chat.rb +10 -0
- data/lib/tdlib/types/update/chat_view_as_topics.rb +10 -0
- data/lib/tdlib/types/update/contact_close_birthdays.rb +8 -0
- data/lib/tdlib/types/update/default_background.rb +10 -0
- data/lib/tdlib/types/update/default_reaction_type.rb +8 -0
- data/lib/tdlib/types/update/file_added_to_downloads.rb +11 -0
- data/lib/tdlib/types/update/file_download.rb +16 -0
- data/lib/tdlib/types/update/file_downloads.rb +12 -0
- data/lib/tdlib/types/update/file_generation_start.rb +4 -4
- data/lib/tdlib/types/update/file_removed_from_downloads.rb +11 -0
- data/lib/tdlib/types/update/forum_topic_info.rb +10 -0
- data/lib/tdlib/types/update/installed_sticker_sets.rb +2 -2
- data/lib/tdlib/types/update/language_pack_strings.rb +2 -1
- data/lib/tdlib/types/update/message_content_opened.rb +1 -2
- data/lib/tdlib/types/update/message_fact_check.rb +12 -0
- data/lib/tdlib/types/update/message_reaction.rb +18 -0
- data/lib/tdlib/types/update/message_reactions.rb +14 -0
- data/lib/tdlib/types/update/message_send_acknowledged.rb +2 -3
- data/lib/tdlib/types/update/message_send_failed.rb +3 -5
- data/lib/tdlib/types/update/message_send_succeeded.rb +1 -1
- data/lib/tdlib/types/update/message_unread_reactions.rb +14 -0
- data/lib/tdlib/types/update/new_business_callback_query.rb +18 -0
- data/lib/tdlib/types/update/new_business_message.rb +10 -0
- data/lib/tdlib/types/update/new_callback_query.rb +1 -1
- data/lib/tdlib/types/update/new_chat_join_request.rb +15 -0
- data/lib/tdlib/types/update/new_inline_callback_query.rb +1 -1
- data/lib/tdlib/types/update/new_inline_query.rb +2 -2
- data/lib/tdlib/types/update/notification_group.rb +4 -4
- data/lib/tdlib/types/update/owned_star_count.rb +8 -0
- data/lib/tdlib/types/update/poll_answer.rb +2 -2
- data/lib/tdlib/types/update/profile_accent_colors.rb +12 -0
- data/lib/tdlib/types/update/quick_reply_shortcut.rb +9 -0
- data/lib/tdlib/types/update/quick_reply_shortcut_deleted.rb +8 -0
- data/lib/tdlib/types/update/quick_reply_shortcut_messages.rb +11 -0
- data/lib/tdlib/types/update/quick_reply_shortcuts.rb +8 -0
- data/lib/tdlib/types/update/reaction_notification_settings.rb +8 -0
- data/lib/tdlib/types/update/recent_stickers.rb +1 -1
- data/lib/tdlib/types/update/saved_messages_tags.rb +11 -0
- data/lib/tdlib/types/update/saved_messages_topic.rb +9 -0
- data/lib/tdlib/types/update/saved_messages_topic_count.rb +8 -0
- data/lib/tdlib/types/update/saved_notification_sounds.rb +9 -0
- data/lib/tdlib/types/update/service_notification.rb +3 -3
- data/lib/tdlib/types/update/speech_recognition_trial.rb +16 -0
- data/lib/tdlib/types/update/speed_limit_notification.rb +11 -0
- data/lib/tdlib/types/update/star_revenue_status.rb +12 -0
- data/lib/tdlib/types/update/story.rb +8 -0
- data/lib/tdlib/types/update/story_deleted.rb +10 -0
- data/lib/tdlib/types/update/story_list_chat_count.rb +10 -0
- data/lib/tdlib/types/update/story_send_failed.rb +13 -0
- data/lib/tdlib/types/update/story_send_succeeded.rb +10 -0
- data/lib/tdlib/types/update/story_stealth_mode.rb +11 -0
- data/lib/tdlib/types/update/supergroup_full_info.rb +1 -1
- data/lib/tdlib/types/update/terms_of_service.rb +1 -1
- data/lib/tdlib/types/update/trending_sticker_sets.rb +4 -2
- data/lib/tdlib/types/update/unconfirmed_session.rb +8 -0
- data/lib/tdlib/types/update/user_full_info.rb +1 -1
- data/lib/tdlib/types/update/web_app_message_sent.rb +8 -0
- data/lib/tdlib/types/update.rb +78 -13
- data/lib/tdlib/types/user.rb +38 -3
- data/lib/tdlib/types/user_full_info.rb +44 -7
- data/lib/tdlib/types/user_link.rb +11 -0
- data/lib/tdlib/types/user_privacy_setting/allow_private_voice_and_video_note_messages.rb +6 -0
- data/lib/tdlib/types/user_privacy_setting/show_bio.rb +5 -0
- data/lib/tdlib/types/user_privacy_setting/show_birthdate.rb +5 -0
- data/lib/tdlib/types/user_privacy_setting.rb +3 -0
- data/lib/tdlib/types/user_privacy_setting_rule/allow_contacts.rb +1 -1
- data/lib/tdlib/types/user_privacy_setting_rule/allow_premium_users.rb +5 -0
- data/lib/tdlib/types/user_privacy_setting_rule/restrict_contacts.rb +1 -1
- data/lib/tdlib/types/user_privacy_setting_rule.rb +2 -1
- data/lib/tdlib/types/user_status/empty.rb +1 -1
- data/lib/tdlib/types/user_status/last_month.rb +4 -0
- data/lib/tdlib/types/user_status/last_week.rb +4 -0
- data/lib/tdlib/types/user_status/recently.rb +4 -0
- data/lib/tdlib/types/user_support_info.rb +12 -0
- data/lib/tdlib/types/user_type/bot.rb +14 -1
- data/lib/tdlib/types/user_type.rb +1 -1
- data/lib/tdlib/types/usernames.rb +18 -0
- data/lib/tdlib/types/users.rb +1 -1
- data/lib/tdlib/types/validated_order_info.rb +2 -2
- data/lib/tdlib/types/venue.rb +1 -1
- data/lib/tdlib/types/video.rb +1 -1
- data/lib/tdlib/types/{voice_chat.rb → video_chat.rb} +6 -6
- data/lib/tdlib/types/video_note.rb +6 -0
- data/lib/tdlib/types/voice_note.rb +5 -2
- data/lib/tdlib/types/web_app.rb +17 -0
- data/lib/tdlib/types/web_app_info.rb +10 -0
- data/lib/tdlib/types/web_page_instant_view.rb +6 -3
- data/lib/tdlib/types.rb +2024 -973
- data/tdlib-schema.gemspec +1 -1
- metadata +853 -59
- data/lib/tdlib/types/authorization_state/wait_encryption_key.rb +0 -8
- data/lib/tdlib/types/chat_event_action/message_ttl_setting_changed.rb +0 -10
- data/lib/tdlib/types/chat_event_action/voice_chat_created.rb +0 -9
- data/lib/tdlib/types/chat_event_action/voice_chat_discarded.rb +0 -9
- data/lib/tdlib/types/chat_filter.rb +0 -36
- data/lib/tdlib/types/chat_filter_info.rb +0 -14
- data/lib/tdlib/types/chat_list/filter.rb +0 -8
- data/lib/tdlib/types/chat_statistics_message_interaction_info.rb +0 -12
- data/lib/tdlib/types/check_chat_username_result/public_chats_too_much.rb +0 -5
- data/lib/tdlib/types/group_call_join_response/stream.rb +0 -5
- data/lib/tdlib/types/group_call_join_response/webrtc.rb +0 -10
- data/lib/tdlib/types/group_call_join_response.rb +0 -11
- data/lib/tdlib/types/group_call_join_response_candidate.rb +0 -32
- data/lib/tdlib/types/group_call_payload.rb +0 -12
- data/lib/tdlib/types/group_call_payload_fingerprint.rb +0 -12
- data/lib/tdlib/types/input_sticker/animated.rb +0 -12
- data/lib/tdlib/types/input_sticker/static.rb +0 -14
- data/lib/tdlib/types/message_content/chat_set_ttl.rb +0 -8
- data/lib/tdlib/types/message_content/invite_voice_chat_participants.rb +0 -11
- data/lib/tdlib/types/message_content/voice_chat_ended.rb +0 -8
- data/lib/tdlib/types/message_content/voice_chat_started.rb +0 -9
- data/lib/tdlib/types/message_content/website_connected.rb +0 -8
- data/lib/tdlib/types/message_forward_origin/chat.rb +0 -10
- data/lib/tdlib/types/message_forward_origin/message_import.rb +0 -8
- data/lib/tdlib/types/message_forward_origin.rb +0 -14
- data/lib/tdlib/types/payment_form_theme.rb +0 -18
- data/lib/tdlib/types/recommended_chat_filter.rb +0 -10
- data/lib/tdlib/types/recommended_chat_filters.rb +0 -8
- data/lib/tdlib/types/search_messages_filter/call.rb +0 -5
- data/lib/tdlib/types/search_messages_filter/missed_call.rb +0 -5
- data/lib/tdlib/types/suggested_action/see_ticks_hint.rb +0 -5
- data/lib/tdlib/types/tdlib_parameters.rb +0 -48
- data/lib/tdlib/types/update/chat_filters.rb +0 -8
- data/lib/tdlib/types/update/chat_is_blocked.rb +0 -10
- data/lib/tdlib/types/update/chat_message_ttl_setting.rb +0 -10
- data/lib/tdlib/types/update/chat_voice_chat.rb +0 -10
- data/lib/tdlib/types/update/selected_background.rb +0 -10
- data/lib/tdlib/types/update/user_chat_action.rb +0 -14
- data/lib/tdlib/types/web_page.rb +0 -52
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Contains information about supported accent color for user/chat name, background of empty chat photo, replies to
|
|
3
|
+
# messages and link previews.
|
|
4
|
+
#
|
|
5
|
+
# @attr id [Integer] Accent color identifier.
|
|
6
|
+
# @attr built_in_accent_color_id [Integer] Identifier of a built-in color to use in places, where only one color is
|
|
7
|
+
# needed; 0-6.
|
|
8
|
+
# @attr light_theme_colors [Array<Integer>] The list of 1-3 colors in RGB format, describing the accent color, as
|
|
9
|
+
# expected to be shown in light themes.
|
|
10
|
+
# @attr dark_theme_colors [Array<Integer>] The list of 1-3 colors in RGB format, describing the accent color, as
|
|
11
|
+
# expected to be shown in dark themes.
|
|
12
|
+
# @attr min_channel_chat_boost_level [Integer] The minimum chat boost level required to use the color in a channel
|
|
13
|
+
# chat.
|
|
14
|
+
class AccentColor < Base
|
|
15
|
+
attribute :id, TD::Types::Coercible::Integer
|
|
16
|
+
attribute :built_in_accent_color_id, TD::Types::Coercible::Integer
|
|
17
|
+
attribute :light_theme_colors, TD::Types::Array.of(TD::Types::Coercible::Integer)
|
|
18
|
+
attribute :dark_theme_colors, TD::Types::Array.of(TD::Types::Coercible::Integer)
|
|
19
|
+
attribute :min_channel_chat_boost_level, TD::Types::Coercible::Integer
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -2,8 +2,7 @@ module TD::Types
|
|
|
2
2
|
# Contains information about the period of inactivity after which the current user's account will automatically be
|
|
3
3
|
# deleted.
|
|
4
4
|
#
|
|
5
|
-
# @attr days [Integer] Number of days of inactivity before the account will be flagged for deletion;
|
|
6
|
-
# from 30-366 days.
|
|
5
|
+
# @attr days [Integer] Number of days of inactivity before the account will be flagged for deletion; 30-366 days.
|
|
7
6
|
class AccountTtl < Base
|
|
8
7
|
attribute :days, TD::Types::Coercible::Integer
|
|
9
8
|
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Represents a reaction applied to a message.
|
|
3
|
+
#
|
|
4
|
+
# @attr type [TD::Types::ReactionType] Type of the reaction.
|
|
5
|
+
# @attr sender_id [TD::Types::MessageSender] Identifier of the chat member, applied the reaction.
|
|
6
|
+
# @attr is_outgoing [Boolean] True, if the reaction was added by the current user.
|
|
7
|
+
# @attr date [Integer] Point in time (Unix timestamp) when the reaction was added.
|
|
8
|
+
class AddedReaction < Base
|
|
9
|
+
attribute :type, TD::Types::ReactionType
|
|
10
|
+
attribute :sender_id, TD::Types::MessageSender
|
|
11
|
+
attribute :is_outgoing, TD::Types::Bool
|
|
12
|
+
attribute :date, TD::Types::Coercible::Integer
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Represents a list of reactions added to a message.
|
|
3
|
+
#
|
|
4
|
+
# @attr total_count [Integer] The total number of found reactions.
|
|
5
|
+
# @attr reactions [Array<TD::Types::AddedReaction>] The list of added reactions.
|
|
6
|
+
# @attr next_offset [TD::Types::String] The offset for the next request.
|
|
7
|
+
# If empty, then there are no more results.
|
|
8
|
+
class AddedReactions < Base
|
|
9
|
+
attribute :total_count, TD::Types::Coercible::Integer
|
|
10
|
+
attribute :reactions, TD::Types::Array.of(TD::Types::AddedReaction)
|
|
11
|
+
attribute :next_offset, TD::Types::String
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Describes an animated or custom representation of an emoji.
|
|
3
|
+
#
|
|
4
|
+
# @attr sticker [TD::Types::Sticker, nil] Sticker for the emoji; may be null if yet unknown for a custom emoji.
|
|
5
|
+
# If the sticker is a custom emoji, then it can have arbitrary format.
|
|
6
|
+
# @attr sticker_width [Integer] Expected width of the sticker, which can be used if the sticker is null.
|
|
7
|
+
# @attr sticker_height [Integer] Expected height of the sticker, which can be used if the sticker is null.
|
|
8
|
+
# @attr fitzpatrick_type [Integer] Emoji modifier fitzpatrick type; 0-6; 0 if none.
|
|
9
|
+
# @attr sound [TD::Types::File, nil] File containing the sound to be played when the sticker is clicked; may be null.
|
|
10
|
+
# The sound is encoded with the Opus codec, and stored inside an OGG container.
|
|
11
|
+
class AnimatedEmoji < Base
|
|
12
|
+
attribute :sticker, TD::Types::Sticker.optional.default(nil)
|
|
13
|
+
attribute :sticker_width, TD::Types::Coercible::Integer
|
|
14
|
+
attribute :sticker_height, TD::Types::Coercible::Integer
|
|
15
|
+
attribute :fitzpatrick_type, TD::Types::Coercible::Integer
|
|
16
|
+
attribute :sound, TD::Types::File.optional.default(nil)
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Contains settings for automatic moving of chats to and from the Archive chat lists.
|
|
3
|
+
#
|
|
4
|
+
# @attr archive_and_mute_new_chats_from_unknown_users [Boolean] True, if new chats from non-contacts will be
|
|
5
|
+
# automatically archived and muted.
|
|
6
|
+
# Can be set to true only if the option "can_archive_and_mute_new_chats_from_unknown_users" is true.
|
|
7
|
+
# @attr keep_unmuted_chats_archived [Boolean] True, if unmuted chats will be kept in the Archive chat list when they
|
|
8
|
+
# get a new message.
|
|
9
|
+
# @attr keep_chats_from_folders_archived [Boolean] True, if unmuted chats, that are always included or pinned in a
|
|
10
|
+
# folder, will be kept in the Archive chat list when they get a new message.
|
|
11
|
+
# Ignored if keep_unmuted_chats_archived == true.
|
|
12
|
+
class ArchiveChatListSettings < Base
|
|
13
|
+
attribute :archive_and_mute_new_chats_from_unknown_users, TD::Types::Bool
|
|
14
|
+
attribute :keep_unmuted_chats_archived, TD::Types::Bool
|
|
15
|
+
attribute :keep_chats_from_folders_archived, TD::Types::Bool
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Represents a bot, which can be added to attachment or side menu.
|
|
3
|
+
#
|
|
4
|
+
# @attr bot_user_id [Integer] User identifier of the bot.
|
|
5
|
+
# @attr supports_self_chat [Boolean] True, if the bot supports opening from attachment menu in the chat with the bot.
|
|
6
|
+
# @attr supports_user_chats [Boolean] True, if the bot supports opening from attachment menu in private chats with
|
|
7
|
+
# ordinary users.
|
|
8
|
+
# @attr supports_bot_chats [Boolean] True, if the bot supports opening from attachment menu in private chats with
|
|
9
|
+
# other bots.
|
|
10
|
+
# @attr supports_group_chats [Boolean] True, if the bot supports opening from attachment menu in basic group and
|
|
11
|
+
# supergroup chats.
|
|
12
|
+
# @attr supports_channel_chats [Boolean] True, if the bot supports opening from attachment menu in channel chats.
|
|
13
|
+
# @attr request_write_access [Boolean] True, if the user must be asked for the permission to send messages to the
|
|
14
|
+
# bot.
|
|
15
|
+
# @attr is_added [Boolean] True, if the bot was explicitly added by the user.
|
|
16
|
+
# If the bot isn't added, then on the first bot launch toggleBotIsAddedToAttachmentMenu must be called and the bot
|
|
17
|
+
# must be added or removed.
|
|
18
|
+
# @attr show_in_attachment_menu [Boolean] True, if the bot must be shown in the attachment menu.
|
|
19
|
+
# @attr show_in_side_menu [Boolean] True, if the bot must be shown in the side menu.
|
|
20
|
+
# @attr show_disclaimer_in_side_menu [Boolean] True, if a disclaimer, why the bot is shown in the side menu, is
|
|
21
|
+
# needed.
|
|
22
|
+
# @attr name [TD::Types::String] Name for the bot in attachment menu.
|
|
23
|
+
# @attr name_color [TD::Types::AttachmentMenuBotColor, nil] Color to highlight selected name of the bot if
|
|
24
|
+
# appropriate; may be null.
|
|
25
|
+
# @attr default_icon [TD::Types::File, nil] Default icon for the bot in SVG format; may be null.
|
|
26
|
+
# @attr ios_static_icon [TD::Types::File, nil] Icon for the bot in SVG format for the official iOS app; may be null.
|
|
27
|
+
# @attr ios_animated_icon [TD::Types::File, nil] Icon for the bot in TGS format for the official iOS app; may be
|
|
28
|
+
# null.
|
|
29
|
+
# @attr ios_side_menu_icon [TD::Types::File, nil] Icon for the bot in PNG format for the official iOS app side menu;
|
|
30
|
+
# may be null.
|
|
31
|
+
# @attr android_icon [TD::Types::File, nil] Icon for the bot in TGS format for the official Android app; may be null.
|
|
32
|
+
# @attr android_side_menu_icon [TD::Types::File, nil] Icon for the bot in SVG format for the official Android app
|
|
33
|
+
# side menu; may be null.
|
|
34
|
+
# @attr macos_icon [TD::Types::File, nil] Icon for the bot in TGS format for the official native macOS app; may be
|
|
35
|
+
# null.
|
|
36
|
+
# @attr macos_side_menu_icon [TD::Types::File, nil] Icon for the bot in PNG format for the official macOS app side
|
|
37
|
+
# menu; may be null.
|
|
38
|
+
# @attr icon_color [TD::Types::AttachmentMenuBotColor, nil] Color to highlight selected icon of the bot if
|
|
39
|
+
# appropriate; may be null.
|
|
40
|
+
# @attr web_app_placeholder [TD::Types::File, nil] Default placeholder for opened Web Apps in SVG format; may be
|
|
41
|
+
# null.
|
|
42
|
+
class AttachmentMenuBot < Base
|
|
43
|
+
attribute :bot_user_id, TD::Types::Coercible::Integer
|
|
44
|
+
attribute :supports_self_chat, TD::Types::Bool
|
|
45
|
+
attribute :supports_user_chats, TD::Types::Bool
|
|
46
|
+
attribute :supports_bot_chats, TD::Types::Bool
|
|
47
|
+
attribute :supports_group_chats, TD::Types::Bool
|
|
48
|
+
attribute :supports_channel_chats, TD::Types::Bool
|
|
49
|
+
attribute :request_write_access, TD::Types::Bool
|
|
50
|
+
attribute :is_added, TD::Types::Bool
|
|
51
|
+
attribute :show_in_attachment_menu, TD::Types::Bool
|
|
52
|
+
attribute :show_in_side_menu, TD::Types::Bool
|
|
53
|
+
attribute :show_disclaimer_in_side_menu, TD::Types::Bool
|
|
54
|
+
attribute :name, TD::Types::String
|
|
55
|
+
attribute :name_color, TD::Types::AttachmentMenuBotColor.optional.default(nil)
|
|
56
|
+
attribute :default_icon, TD::Types::File.optional.default(nil)
|
|
57
|
+
attribute :ios_static_icon, TD::Types::File.optional.default(nil)
|
|
58
|
+
attribute :ios_animated_icon, TD::Types::File.optional.default(nil)
|
|
59
|
+
attribute :ios_side_menu_icon, TD::Types::File.optional.default(nil)
|
|
60
|
+
attribute :android_icon, TD::Types::File.optional.default(nil)
|
|
61
|
+
attribute :android_side_menu_icon, TD::Types::File.optional.default(nil)
|
|
62
|
+
attribute :macos_icon, TD::Types::File.optional.default(nil)
|
|
63
|
+
attribute :macos_side_menu_icon, TD::Types::File.optional.default(nil)
|
|
64
|
+
attribute :icon_color, TD::Types::AttachmentMenuBotColor.optional.default(nil)
|
|
65
|
+
attribute :web_app_placeholder, TD::Types::File.optional.default(nil)
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Describes a color to highlight a bot added to attachment menu.
|
|
3
|
+
#
|
|
4
|
+
# @attr light_color [Integer] Color in the RGB24 format for light themes.
|
|
5
|
+
# @attr dark_color [Integer] Color in the RGB24 format for dark themes.
|
|
6
|
+
class AttachmentMenuBotColor < Base
|
|
7
|
+
attribute :light_color, TD::Types::Coercible::Integer
|
|
8
|
+
attribute :dark_color, TD::Types::Coercible::Integer
|
|
9
|
+
end
|
|
10
|
+
end
|
data/lib/tdlib/types/audio.rb
CHANGED
|
@@ -10,7 +10,10 @@ module TD::Types
|
|
|
10
10
|
# @attr album_cover_minithumbnail [TD::Types::Minithumbnail, nil] The minithumbnail of the album cover; may be null.
|
|
11
11
|
# @attr album_cover_thumbnail [TD::Types::Thumbnail, nil] The thumbnail of the album cover in JPEG format; as defined
|
|
12
12
|
# by the sender.
|
|
13
|
-
# The full size thumbnail
|
|
13
|
+
# The full size thumbnail is supposed to be extracted from the downloaded audio file; may be null.
|
|
14
|
+
# @attr external_album_covers [Array<TD::Types::Thumbnail>] Album cover variants to use if the downloaded audio file
|
|
15
|
+
# contains no album cover.
|
|
16
|
+
# Provided thumbnail dimensions are approximate.
|
|
14
17
|
# @attr audio [TD::Types::File] File containing the audio.
|
|
15
18
|
class Audio < Base
|
|
16
19
|
attribute :duration, TD::Types::Coercible::Integer
|
|
@@ -20,6 +23,7 @@ module TD::Types
|
|
|
20
23
|
attribute :mime_type, TD::Types::String
|
|
21
24
|
attribute :album_cover_minithumbnail, TD::Types::Minithumbnail.optional.default(nil)
|
|
22
25
|
attribute :album_cover_thumbnail, TD::Types::Thumbnail.optional.default(nil)
|
|
26
|
+
attribute :external_album_covers, TD::Types::Array.of(TD::Types::Thumbnail)
|
|
23
27
|
attribute :audio, TD::Types::File
|
|
24
28
|
end
|
|
25
29
|
end
|
|
@@ -2,10 +2,10 @@ module TD::Types
|
|
|
2
2
|
# Information about the authentication code that was sent.
|
|
3
3
|
#
|
|
4
4
|
# @attr phone_number [TD::Types::String] A phone number that is being authenticated.
|
|
5
|
-
# @attr type [TD::Types::AuthenticationCodeType]
|
|
6
|
-
# @attr next_type [TD::Types::AuthenticationCodeType, nil]
|
|
7
|
-
#
|
|
8
|
-
# @attr timeout [Integer] Timeout before the code
|
|
5
|
+
# @attr type [TD::Types::AuthenticationCodeType] The way the code was sent to the user.
|
|
6
|
+
# @attr next_type [TD::Types::AuthenticationCodeType, nil] The way the next code will be sent to the user; may be
|
|
7
|
+
# null.
|
|
8
|
+
# @attr timeout [Integer] Timeout before the code can be re-sent, in seconds.
|
|
9
9
|
class AuthenticationCodeInfo < Base
|
|
10
10
|
attribute :phone_number, TD::Types::String
|
|
11
11
|
attribute :type, TD::Types::AuthenticationCodeType
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module TD::Types
|
|
2
|
-
#
|
|
2
|
+
# A digit-only authentication code is delivered via a phone call to the specified phone number.
|
|
3
3
|
#
|
|
4
4
|
# @attr length [Integer] Length of the code.
|
|
5
5
|
class AuthenticationCodeType::Call < AuthenticationCodeType
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# A digit-only authentication code is delivered via Firebase Authentication to the official Android application.
|
|
3
|
+
#
|
|
4
|
+
# @attr device_verification_parameters [TD::Types::FirebaseDeviceVerificationParameters] Parameters to be used for
|
|
5
|
+
# device verification.
|
|
6
|
+
# @attr length [Integer] Length of the code.
|
|
7
|
+
class AuthenticationCodeType::FirebaseAndroid < AuthenticationCodeType
|
|
8
|
+
attribute :device_verification_parameters, TD::Types::FirebaseDeviceVerificationParameters
|
|
9
|
+
attribute :length, TD::Types::Coercible::Integer
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# A digit-only authentication code is delivered via Firebase Authentication to the official iOS application.
|
|
3
|
+
#
|
|
4
|
+
# @attr receipt [TD::Types::String] Receipt of successful application token validation to compare with receipt from
|
|
5
|
+
# push notification.
|
|
6
|
+
# @attr push_timeout [Integer] Time after the next authentication method is supposed to be used if verification push
|
|
7
|
+
# notification isn't received, in seconds.
|
|
8
|
+
# @attr length [Integer] Length of the code.
|
|
9
|
+
class AuthenticationCodeType::FirebaseIos < AuthenticationCodeType
|
|
10
|
+
attribute :receipt, TD::Types::String
|
|
11
|
+
attribute :push_timeout, TD::Types::Coercible::Integer
|
|
12
|
+
attribute :length, TD::Types::Coercible::Integer
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module TD::Types
|
|
2
|
-
# An authentication code is delivered by an immediately
|
|
3
|
-
# The number
|
|
2
|
+
# An authentication code is delivered by an immediately canceled call to the specified phone number.
|
|
3
|
+
# The phone number that calls is the code that must be entered automatically.
|
|
4
4
|
#
|
|
5
5
|
# @attr pattern [TD::Types::String] Pattern of the phone number from which the call will be made.
|
|
6
6
|
class AuthenticationCodeType::FlashCall < AuthenticationCodeType
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# A digit-only authentication code is delivered to https://fragment.com.
|
|
3
|
+
# The user must be logged in there via a wallet owning the phone number's NFT.
|
|
4
|
+
#
|
|
5
|
+
# @attr url [TD::Types::String] URL to open to receive the code.
|
|
6
|
+
# @attr length [Integer] Length of the code.
|
|
7
|
+
class AuthenticationCodeType::Fragment < AuthenticationCodeType
|
|
8
|
+
attribute :url, TD::Types::String
|
|
9
|
+
attribute :length, TD::Types::Coercible::Integer
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# An authentication code is delivered by an immediately canceled call to the specified phone number.
|
|
3
|
+
# The last digits of the phone number that calls are the code that must be entered manually by the user.
|
|
4
|
+
#
|
|
5
|
+
# @attr phone_number_prefix [TD::Types::String] Prefix of the phone number from which the call will be made.
|
|
6
|
+
# @attr length [Integer] Number of digits in the code, excluding the prefix.
|
|
7
|
+
class AuthenticationCodeType::MissedCall < AuthenticationCodeType
|
|
8
|
+
attribute :phone_number_prefix, TD::Types::String
|
|
9
|
+
attribute :length, TD::Types::Coercible::Integer
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
module TD::Types
|
|
2
|
-
#
|
|
2
|
+
# A digit-only authentication code is delivered via an SMS message to the specified phone number; non-official
|
|
3
|
+
# applications may not receive this type of code.
|
|
3
4
|
#
|
|
4
5
|
# @attr length [Integer] Length of the code.
|
|
5
6
|
class AuthenticationCodeType::Sms < AuthenticationCodeType
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# An authentication code is a phrase from multiple words delivered via an SMS message to the specified phone number;
|
|
3
|
+
# non-official applications may not receive this type of code.
|
|
4
|
+
#
|
|
5
|
+
# @attr first_word [TD::Types::String] The first word of the phrase if known.
|
|
6
|
+
class AuthenticationCodeType::SmsPhrase < AuthenticationCodeType
|
|
7
|
+
attribute :first_word, TD::Types::String
|
|
8
|
+
end
|
|
9
|
+
end
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# An authentication code is a word delivered via an SMS message to the specified phone number; non-official
|
|
3
|
+
# applications may not receive this type of code.
|
|
4
|
+
#
|
|
5
|
+
# @attr first_letter [TD::Types::String] The first letters of the word if known.
|
|
6
|
+
class AuthenticationCodeType::SmsWord < AuthenticationCodeType
|
|
7
|
+
attribute :first_letter, TD::Types::String
|
|
8
|
+
end
|
|
9
|
+
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module TD::Types
|
|
2
|
-
#
|
|
3
|
-
# session.
|
|
2
|
+
# A digit-only authentication code is delivered via a private Telegram message, which can be viewed from another
|
|
3
|
+
# active session.
|
|
4
4
|
#
|
|
5
5
|
# @attr length [Integer] Length of the code.
|
|
6
6
|
class AuthenticationCodeType::TelegramMessage < AuthenticationCodeType
|
|
@@ -4,8 +4,14 @@ module TD::Types
|
|
|
4
4
|
%w[
|
|
5
5
|
telegram_message
|
|
6
6
|
sms
|
|
7
|
+
sms_word
|
|
8
|
+
sms_phrase
|
|
7
9
|
call
|
|
8
10
|
flash_call
|
|
11
|
+
missed_call
|
|
12
|
+
fragment
|
|
13
|
+
firebase_android
|
|
14
|
+
firebase_ios
|
|
9
15
|
].each do |type|
|
|
10
16
|
autoload TD::Types.camelize(type), "tdlib/types/authentication_code_type/#{type}"
|
|
11
17
|
end
|
|
@@ -3,7 +3,7 @@ module TD::Types
|
|
|
3
3
|
# All databases are closed and all resources are released.
|
|
4
4
|
# No other updates will be received after this.
|
|
5
5
|
# All queries will be responded to with error code 500.
|
|
6
|
-
# To continue working, one
|
|
6
|
+
# To continue working, one must create a new instance of the TDLib client.
|
|
7
7
|
class AuthorizationState::Closed < AuthorizationState
|
|
8
8
|
end
|
|
9
9
|
end
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
module TD::Types
|
|
2
2
|
# TDLib needs the user's authentication code to authorize.
|
|
3
|
+
# Call checkAuthenticationCode to check the code.
|
|
3
4
|
#
|
|
4
5
|
# @attr code_info [TD::Types::AuthenticationCodeInfo] Information about the authorization code that was sent.
|
|
5
6
|
class AuthorizationState::WaitCode < AuthorizationState
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# TDLib needs the user's email address to authorize.
|
|
3
|
+
# Call setAuthenticationEmailAddress to provide the email address, or directly call checkAuthenticationEmailCode with
|
|
4
|
+
# Apple ID/Google ID token if allowed.
|
|
5
|
+
#
|
|
6
|
+
# @attr allow_apple_id [Boolean] True, if authorization through Apple ID is allowed.
|
|
7
|
+
# @attr allow_google_id [Boolean] True, if authorization through Google ID is allowed.
|
|
8
|
+
class AuthorizationState::WaitEmailAddress < AuthorizationState
|
|
9
|
+
attribute :allow_apple_id, TD::Types::Bool
|
|
10
|
+
attribute :allow_google_id, TD::Types::Bool
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# TDLib needs the user's authentication code sent to an email address to authorize.
|
|
3
|
+
# Call checkAuthenticationEmailCode to provide the code.
|
|
4
|
+
#
|
|
5
|
+
# @attr allow_apple_id [Boolean] True, if authorization through Apple ID is allowed.
|
|
6
|
+
# @attr allow_google_id [Boolean] True, if authorization through Google ID is allowed.
|
|
7
|
+
# @attr code_info [TD::Types::EmailAddressAuthenticationCodeInfo] Information about the sent authentication code.
|
|
8
|
+
# @attr email_address_reset_state [TD::Types::EmailAddressResetState, nil] Reset state of the email address; may be
|
|
9
|
+
# null if the email address can't be reset.
|
|
10
|
+
class AuthorizationState::WaitEmailCode < AuthorizationState
|
|
11
|
+
attribute :allow_apple_id, TD::Types::Bool
|
|
12
|
+
attribute :allow_google_id, TD::Types::Bool
|
|
13
|
+
attribute :code_info, TD::Types::EmailAddressAuthenticationCodeInfo
|
|
14
|
+
attribute :email_address_reset_state, TD::Types::EmailAddressResetState.optional.default(nil)
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
module TD::Types
|
|
2
|
-
# The user has been authorized, but needs to enter a password to start using the application.
|
|
2
|
+
# The user has been authorized, but needs to enter a 2-step verification password to start using the application.
|
|
3
|
+
# Call checkAuthenticationPassword to provide the password, or requestAuthenticationPasswordRecovery to recover the
|
|
4
|
+
# password, or deleteAccount to delete the account after a week.
|
|
3
5
|
#
|
|
4
6
|
# @attr password_hint [TD::Types::String, nil] Hint for the password; may be empty.
|
|
5
7
|
# @attr has_recovery_email_address [Boolean] True, if a recovery email address has been set up.
|
|
8
|
+
# @attr has_passport_data [Boolean] True, if some Telegram Passport elements were saved.
|
|
6
9
|
# @attr recovery_email_address_pattern [TD::Types::String, nil] Pattern of the email address to which the recovery
|
|
7
10
|
# email was sent; empty until a recovery email has been sent.
|
|
8
11
|
class AuthorizationState::WaitPassword < AuthorizationState
|
|
9
12
|
attribute :password_hint, TD::Types::String.optional.default(nil)
|
|
10
13
|
attribute :has_recovery_email_address, TD::Types::Bool
|
|
14
|
+
attribute :has_passport_data, TD::Types::Bool
|
|
11
15
|
attribute :recovery_email_address_pattern, TD::Types::String.optional.default(nil)
|
|
12
16
|
end
|
|
13
17
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module TD::Types
|
|
2
2
|
# TDLib needs the user's phone number to authorize.
|
|
3
|
-
# Call
|
|
4
|
-
#
|
|
3
|
+
# Call setAuthenticationPhoneNumber to provide the phone number, or use requestQrCodeAuthentication or
|
|
4
|
+
# checkAuthenticationBotToken for other authentication options.
|
|
5
5
|
class AuthorizationState::WaitPhoneNumber < AuthorizationState
|
|
6
6
|
end
|
|
7
7
|
end
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
module TD::Types
|
|
2
2
|
# The user is unregistered and need to accept terms of service and enter their first name and last name to finish
|
|
3
3
|
# registration.
|
|
4
|
+
# Call registerUser to accept the terms of service and provide the data.
|
|
4
5
|
#
|
|
5
6
|
# @attr terms_of_service [TD::Types::TermsOfService] Telegram terms of service.
|
|
6
7
|
class AuthorizationState::WaitRegistration < AuthorizationState
|
|
@@ -2,14 +2,15 @@ module TD::Types
|
|
|
2
2
|
# Contains auto-download settings.
|
|
3
3
|
#
|
|
4
4
|
# @attr is_auto_download_enabled [Boolean] True, if the auto-download is enabled.
|
|
5
|
-
# @attr max_photo_file_size [Integer] The maximum size of a photo file to be auto-downloaded.
|
|
6
|
-
# @attr max_video_file_size [Integer] The maximum size of a video file to be auto-downloaded.
|
|
7
|
-
# @attr max_other_file_size [Integer] The maximum size of other file types to be auto-downloaded.
|
|
8
|
-
# @attr video_upload_bitrate [Integer] The maximum suggested bitrate for uploaded videos.
|
|
5
|
+
# @attr max_photo_file_size [Integer] The maximum size of a photo file to be auto-downloaded, in bytes.
|
|
6
|
+
# @attr max_video_file_size [Integer] The maximum size of a video file to be auto-downloaded, in bytes.
|
|
7
|
+
# @attr max_other_file_size [Integer] The maximum size of other file types to be auto-downloaded, in bytes.
|
|
8
|
+
# @attr video_upload_bitrate [Integer] The maximum suggested bitrate for uploaded videos, in kbit/s.
|
|
9
9
|
# @attr preload_large_videos [Boolean] True, if the beginning of video files needs to be preloaded for instant
|
|
10
10
|
# playback.
|
|
11
11
|
# @attr preload_next_audio [Boolean] True, if the next audio track needs to be preloaded while the user is listening
|
|
12
12
|
# to an audio file.
|
|
13
|
+
# @attr preload_stories [Boolean] True, if stories needs to be preloaded.
|
|
13
14
|
# @attr use_less_data_for_calls [Boolean] True, if "use less data for calls" option needs to be enabled.
|
|
14
15
|
class AutoDownloadSettings < Base
|
|
15
16
|
attribute :is_auto_download_enabled, TD::Types::Bool
|
|
@@ -19,6 +20,7 @@ module TD::Types
|
|
|
19
20
|
attribute :video_upload_bitrate, TD::Types::Coercible::Integer
|
|
20
21
|
attribute :preload_large_videos, TD::Types::Bool
|
|
21
22
|
attribute :preload_next_audio, TD::Types::Bool
|
|
23
|
+
attribute :preload_stories, TD::Types::Bool
|
|
22
24
|
attribute :use_less_data_for_calls, TD::Types::Bool
|
|
23
25
|
end
|
|
24
26
|
end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module TD::Types
|
|
2
|
-
# Contains auto-download settings presets for the user.
|
|
2
|
+
# Contains auto-download settings presets for the current user.
|
|
3
3
|
#
|
|
4
4
|
# @attr low [TD::Types::AutoDownloadSettings] Preset with lowest settings; supposed to be used by default when
|
|
5
5
|
# roaming.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Describes autosave settings.
|
|
3
|
+
#
|
|
4
|
+
# @attr private_chat_settings [TD::Types::ScopeAutosaveSettings] Default autosave settings for private chats.
|
|
5
|
+
# @attr group_settings [TD::Types::ScopeAutosaveSettings] Default autosave settings for basic group and supergroup
|
|
6
|
+
# chats.
|
|
7
|
+
# @attr channel_settings [TD::Types::ScopeAutosaveSettings] Default autosave settings for channel chats.
|
|
8
|
+
# @attr exceptions [Array<TD::Types::AutosaveSettingsException>] Autosave settings for specific chats.
|
|
9
|
+
class AutosaveSettings < Base
|
|
10
|
+
attribute :private_chat_settings, TD::Types::ScopeAutosaveSettings
|
|
11
|
+
attribute :group_settings, TD::Types::ScopeAutosaveSettings
|
|
12
|
+
attribute :channel_settings, TD::Types::ScopeAutosaveSettings
|
|
13
|
+
attribute :exceptions, TD::Types::Array.of(TD::Types::AutosaveSettingsException)
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Contains autosave settings for a chat, which overrides default settings for the corresponding scope.
|
|
3
|
+
#
|
|
4
|
+
# @attr chat_id [Integer] Chat identifier.
|
|
5
|
+
# @attr settings [TD::Types::ScopeAutosaveSettings] Autosave settings for the chat.
|
|
6
|
+
class AutosaveSettingsException < Base
|
|
7
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
|
8
|
+
attribute :settings, TD::Types::ScopeAutosaveSettings
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Describes scope of autosave settings.
|
|
3
|
+
class AutosaveSettingsScope < Base
|
|
4
|
+
%w[
|
|
5
|
+
private_chats
|
|
6
|
+
group_chats
|
|
7
|
+
channel_chats
|
|
8
|
+
chat
|
|
9
|
+
].each do |type|
|
|
10
|
+
autoload TD::Types.camelize(type), "tdlib/types/autosave_settings_scope/#{type}"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Represents an available reaction.
|
|
3
|
+
#
|
|
4
|
+
# @attr type [TD::Types::ReactionType] Type of the reaction.
|
|
5
|
+
# @attr needs_premium [Boolean] True, if Telegram Premium is needed to send the reaction.
|
|
6
|
+
class AvailableReaction < Base
|
|
7
|
+
attribute :type, TD::Types::ReactionType
|
|
8
|
+
attribute :needs_premium, TD::Types::Bool
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Represents a list of reactions that can be added to a message.
|
|
3
|
+
#
|
|
4
|
+
# @attr top_reactions [Array<TD::Types::AvailableReaction>] List of reactions to be shown at the top.
|
|
5
|
+
# @attr recent_reactions [Array<TD::Types::AvailableReaction>] List of recently used reactions.
|
|
6
|
+
# @attr popular_reactions [Array<TD::Types::AvailableReaction>] List of popular reactions.
|
|
7
|
+
# @attr allow_custom_emoji [Boolean] True, if any custom emoji reaction can be added by Telegram Premium subscribers.
|
|
8
|
+
# @attr are_tags [Boolean] True, if the reactions will be tags and the message can be found by them.
|
|
9
|
+
# @attr unavailability_reason [TD::Types::ReactionUnavailabilityReason, nil] The reason why the current user can't
|
|
10
|
+
# add reactions to the message, despite some other users can; may be null if none.
|
|
11
|
+
class AvailableReactions < Base
|
|
12
|
+
attribute :top_reactions, TD::Types::Array.of(TD::Types::AvailableReaction)
|
|
13
|
+
attribute :recent_reactions, TD::Types::Array.of(TD::Types::AvailableReaction)
|
|
14
|
+
attribute :popular_reactions, TD::Types::Array.of(TD::Types::AvailableReaction)
|
|
15
|
+
attribute :allow_custom_emoji, TD::Types::Bool
|
|
16
|
+
attribute :are_tags, TD::Types::Bool
|
|
17
|
+
attribute :unavailability_reason, TD::Types::ReactionUnavailabilityReason.optional.default(nil)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -6,7 +6,7 @@ module TD::Types
|
|
|
6
6
|
# @attr is_dark [Boolean] True, if the background is dark and is recommended to be used with dark theme.
|
|
7
7
|
# @attr name [TD::Types::String] Unique background name.
|
|
8
8
|
# @attr document [TD::Types::Document, nil] Document with the background; may be null.
|
|
9
|
-
# Null only for filled backgrounds.
|
|
9
|
+
# Null only for filled and chat theme backgrounds.
|
|
10
10
|
# @attr type [TD::Types::BackgroundType] Type of the background.
|
|
11
11
|
class Background < Base
|
|
12
12
|
attribute :id, TD::Types::Coercible::Integer
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Describes a freeform gradient fill of a background.
|
|
3
|
+
#
|
|
4
|
+
# @attr colors [Array<Integer>] A list of 3 or 4 colors of the freeform gradient in the RGB24 format.
|
|
5
|
+
class BackgroundFill::FreeformGradient < BackgroundFill
|
|
6
|
+
attribute :colors, TD::Types::Array.of(TD::Types::Coercible::Integer)
|
|
7
|
+
end
|
|
8
|
+
end
|