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,12 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# The chat is a private chat with an administrator of a chat to which the user sent join request.
|
|
3
|
+
#
|
|
4
|
+
# @attr title [TD::Types::String] Title of the chat to which the join request was sent.
|
|
5
|
+
# @attr is_channel [Boolean] True, if the join request was sent to a channel chat.
|
|
6
|
+
# @attr request_date [Integer] Point in time (Unix timestamp) when the join request was sent.
|
|
7
|
+
class ChatActionBar::JoinRequest < ChatActionBar
|
|
8
|
+
attribute :title, TD::Types::String
|
|
9
|
+
attribute :is_channel, TD::Types::Bool
|
|
10
|
+
attribute :request_date, TD::Types::Coercible::Integer
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
module TD::Types
|
|
2
2
|
# The chat is a private or secret chat, which can be reported using the method reportChat, or the other user can be
|
|
3
|
-
# blocked using the method
|
|
3
|
+
# blocked using the method setMessageSenderBlockList, or the other user can be added to the contact list using the method
|
|
4
|
+
# addContact.
|
|
5
|
+
# If the chat is a private chat with a user with an emoji status, then a notice about emoji status usage must be
|
|
6
|
+
# shown.
|
|
4
7
|
#
|
|
5
8
|
# @attr can_unarchive [Boolean] If true, the chat was automatically archived and can be moved back to the main chat
|
|
6
9
|
# list using addChatToList simultaneously with setting chat notification settings to default using
|
|
7
10
|
# setChatNotificationSettings.
|
|
8
|
-
# @attr distance [Integer] If non-negative, the current user was found by the
|
|
9
|
-
# is the distance between the users.
|
|
11
|
+
# @attr distance [Integer] If non-negative, the current user was found by the other user through searchChatsNearby
|
|
12
|
+
# and this is the distance between the users.
|
|
10
13
|
class ChatActionBar::ReportAddBlock < ChatActionBar
|
|
11
14
|
attribute :can_unarchive, TD::Types::Bool
|
|
12
15
|
attribute :distance, TD::Types::Coercible::Integer
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
module TD::Types
|
|
2
|
-
# The chat can be reported as spam using the method reportChat with the reason
|
|
2
|
+
# The chat can be reported as spam using the method reportChat with the reason reportReasonSpam.
|
|
3
|
+
# If the chat is a private chat with a user with an emoji status, then a notice about emoji status usage must be
|
|
4
|
+
# shown.
|
|
3
5
|
#
|
|
4
6
|
# @attr can_unarchive [Boolean] If true, the chat was automatically archived and can be moved back to the main chat
|
|
5
7
|
# list using addChatToList simultaneously with setting chat notification settings to default using
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module TD::Types
|
|
2
2
|
# The chat is a location-based supergroup, which can be reported as having unrelated location using the method
|
|
3
|
-
# reportChat with the reason
|
|
3
|
+
# reportChat with the reason reportReasonUnrelatedLocation.
|
|
4
4
|
class ChatActionBar::ReportUnrelatedLocation < ChatActionBar
|
|
5
5
|
end
|
|
6
6
|
end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module TD::Types
|
|
2
|
-
# Describes actions which
|
|
2
|
+
# Describes actions which must be possible to do through a chat action bar.
|
|
3
3
|
class ChatActionBar < Base
|
|
4
4
|
%w[
|
|
5
5
|
report_spam
|
|
@@ -8,6 +8,7 @@ module TD::Types
|
|
|
8
8
|
report_add_block
|
|
9
9
|
add_contact
|
|
10
10
|
share_phone_number
|
|
11
|
+
join_request
|
|
11
12
|
].each do |type|
|
|
12
13
|
autoload TD::Types.camelize(type), "tdlib/types/chat_action_bar/#{type}"
|
|
13
14
|
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Describes active stories posted by a chat.
|
|
3
|
+
#
|
|
4
|
+
# @attr chat_id [Integer] Identifier of the chat that posted the stories.
|
|
5
|
+
# @attr list [TD::Types::StoryList, nil] Identifier of the story list in which the stories are shown; may be null if
|
|
6
|
+
# the stories aren't shown in a story list.
|
|
7
|
+
# @attr order [Integer] A parameter used to determine order of the stories in the story list; 0 if the stories
|
|
8
|
+
# doesn't need to be shown in the story list.
|
|
9
|
+
# Stories must be sorted by the pair (order, story_sender_chat_id) in descending order.
|
|
10
|
+
# @attr max_read_story_id [Integer] Identifier of the last read active story.
|
|
11
|
+
# @attr stories [Array<TD::Types::StoryInfo>] Basic information about the stories; use getStory to get full
|
|
12
|
+
# information about the stories.
|
|
13
|
+
# The stories are in chronological order (i.e., in order of increasing story identifiers).
|
|
14
|
+
class ChatActiveStories < Base
|
|
15
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
|
16
|
+
attribute :list, TD::Types::StoryList.optional.default(nil)
|
|
17
|
+
attribute :order, TD::Types::Coercible::Integer
|
|
18
|
+
attribute :max_read_story_id, TD::Types::Coercible::Integer
|
|
19
|
+
attribute :stories, TD::Types::Array.of(TD::Types::StoryInfo)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Describes rights of the administrator.
|
|
3
|
+
#
|
|
4
|
+
# @attr can_manage_chat [Boolean] True, if the administrator can access the chat event log, get boost list, see
|
|
5
|
+
# hidden supergroup and channel members, report supergroup spam messages and ignore slow mode.
|
|
6
|
+
# Implied by any other privilege; applicable to supergroups and channels only.
|
|
7
|
+
# @attr can_change_info [Boolean] True, if the administrator can change the chat title, photo, and other settings.
|
|
8
|
+
# @attr can_post_messages [Boolean] True, if the administrator can create channel posts or view channel statistics;
|
|
9
|
+
# applicable to channels only.
|
|
10
|
+
# @attr can_edit_messages [Boolean] True, if the administrator can edit messages of other users and pin messages;
|
|
11
|
+
# applicable to channels only.
|
|
12
|
+
# @attr can_delete_messages [Boolean] True, if the administrator can delete messages of other users.
|
|
13
|
+
# @attr can_invite_users [Boolean] True, if the administrator can invite new users to the chat.
|
|
14
|
+
# @attr can_restrict_members [Boolean] True, if the administrator can restrict, ban, or unban chat members or view
|
|
15
|
+
# supergroup statistics; always true for channels.
|
|
16
|
+
# @attr can_pin_messages [Boolean] True, if the administrator can pin messages; applicable to basic groups and
|
|
17
|
+
# supergroups only.
|
|
18
|
+
# @attr can_manage_topics [Boolean] True, if the administrator can create, rename, close, reopen, hide, and unhide
|
|
19
|
+
# forum topics; applicable to forum supergroups only.
|
|
20
|
+
# @attr can_promote_members [Boolean] True, if the administrator can add new administrators with a subset of their
|
|
21
|
+
# own privileges or demote administrators that were directly or indirectly promoted by them.
|
|
22
|
+
# @attr can_manage_video_chats [Boolean] True, if the administrator can manage video chats.
|
|
23
|
+
# @attr can_post_stories [Boolean] True, if the administrator can create new chat stories, or edit and delete posted
|
|
24
|
+
# stories; applicable to supergroups and channels only.
|
|
25
|
+
# @attr can_edit_stories [Boolean] True, if the administrator can edit stories posted by other users, post stories to
|
|
26
|
+
# the chat page, pin chat stories, and access story archive; applicable to supergroups and channels only.
|
|
27
|
+
# @attr can_delete_stories [Boolean] True, if the administrator can delete stories posted by other users; applicable
|
|
28
|
+
# to supergroups and channels only.
|
|
29
|
+
# @attr is_anonymous [Boolean] True, if the administrator isn't shown in the chat member list and sends messages
|
|
30
|
+
# anonymously; applicable to supergroups only.
|
|
31
|
+
class ChatAdministratorRights < Base
|
|
32
|
+
attribute :can_manage_chat, TD::Types::Bool
|
|
33
|
+
attribute :can_change_info, TD::Types::Bool
|
|
34
|
+
attribute :can_post_messages, TD::Types::Bool
|
|
35
|
+
attribute :can_edit_messages, TD::Types::Bool
|
|
36
|
+
attribute :can_delete_messages, TD::Types::Bool
|
|
37
|
+
attribute :can_invite_users, TD::Types::Bool
|
|
38
|
+
attribute :can_restrict_members, TD::Types::Bool
|
|
39
|
+
attribute :can_pin_messages, TD::Types::Bool
|
|
40
|
+
attribute :can_manage_topics, TD::Types::Bool
|
|
41
|
+
attribute :can_promote_members, TD::Types::Bool
|
|
42
|
+
attribute :can_manage_video_chats, TD::Types::Bool
|
|
43
|
+
attribute :can_post_stories, TD::Types::Bool
|
|
44
|
+
attribute :can_edit_stories, TD::Types::Bool
|
|
45
|
+
attribute :can_delete_stories, TD::Types::Bool
|
|
46
|
+
attribute :is_anonymous, TD::Types::Bool
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# All reactions are available in the chat, excluding the paid reaction and custom reactions in channel chats.
|
|
3
|
+
#
|
|
4
|
+
# @attr max_reaction_count [Integer] The maximum allowed number of reactions per message; 1-11.
|
|
5
|
+
class ChatAvailableReactions::All < ChatAvailableReactions
|
|
6
|
+
attribute :max_reaction_count, TD::Types::Coercible::Integer
|
|
7
|
+
end
|
|
8
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Only specific reactions are available in the chat.
|
|
3
|
+
#
|
|
4
|
+
# @attr reactions [Array<TD::Types::ReactionType>] The list of reactions.
|
|
5
|
+
# @attr max_reaction_count [Integer] The maximum allowed number of reactions per message; 1-11.
|
|
6
|
+
class ChatAvailableReactions::Some < ChatAvailableReactions
|
|
7
|
+
attribute :reactions, TD::Types::Array.of(TD::Types::ReactionType)
|
|
8
|
+
attribute :max_reaction_count, TD::Types::Coercible::Integer
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Describes a background set for a specific chat.
|
|
3
|
+
#
|
|
4
|
+
# @attr background [TD::Types::Background] The background.
|
|
5
|
+
# @attr dark_theme_dimming [Integer] Dimming of the background in dark themes, as a percentage; 0-100.
|
|
6
|
+
# Applied only to Wallpaper and Fill types of background.
|
|
7
|
+
class ChatBackground < Base
|
|
8
|
+
attribute :background, TD::Types::Background
|
|
9
|
+
attribute :dark_theme_dimming, TD::Types::Coercible::Integer
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Describes a boost applied to a chat.
|
|
3
|
+
#
|
|
4
|
+
# @attr id [TD::Types::String] Unique identifier of the boost.
|
|
5
|
+
# @attr count [Integer] The number of identical boosts applied.
|
|
6
|
+
# @attr source [TD::Types::ChatBoostSource] Source of the boost.
|
|
7
|
+
# @attr start_date [Integer] Point in time (Unix timestamp) when the chat was boosted.
|
|
8
|
+
# @attr expiration_date [Integer] Point in time (Unix timestamp) when the boost will expire.
|
|
9
|
+
class ChatBoost < Base
|
|
10
|
+
attribute :id, TD::Types::String
|
|
11
|
+
attribute :count, TD::Types::Coercible::Integer
|
|
12
|
+
attribute :source, TD::Types::ChatBoostSource
|
|
13
|
+
attribute :start_date, TD::Types::Coercible::Integer
|
|
14
|
+
attribute :expiration_date, TD::Types::Coercible::Integer
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Contains a list of features available on the first chat boost levels.
|
|
3
|
+
#
|
|
4
|
+
# @attr features [Array<TD::Types::ChatBoostLevelFeatures>] The list of features.
|
|
5
|
+
# @attr min_profile_background_custom_emoji_boost_level [Integer] The minimum boost level required to set custom
|
|
6
|
+
# emoji for profile background.
|
|
7
|
+
# @attr min_background_custom_emoji_boost_level [Integer] The minimum boost level required to set custom emoji for
|
|
8
|
+
# reply header and link preview background; for channel chats only.
|
|
9
|
+
# @attr min_emoji_status_boost_level [Integer] The minimum boost level required to set emoji status.
|
|
10
|
+
# @attr min_chat_theme_background_boost_level [Integer] The minimum boost level required to set a chat theme
|
|
11
|
+
# background as chat background.
|
|
12
|
+
# @attr min_custom_background_boost_level [Integer] The minimum boost level required to set custom chat background.
|
|
13
|
+
# @attr min_custom_emoji_sticker_set_boost_level [Integer] The minimum boost level required to set custom emoji
|
|
14
|
+
# sticker set for the chat; for supergroup chats only.
|
|
15
|
+
# @attr min_speech_recognition_boost_level [Integer] The minimum boost level allowing to recognize speech in video
|
|
16
|
+
# note and voice note messages for non-Premium users; for supergroup chats only.
|
|
17
|
+
# @attr min_sponsored_message_disable_boost_level [Integer] The minimum boost level allowing to disable sponsored
|
|
18
|
+
# messages in the chat; for channel chats only.
|
|
19
|
+
class ChatBoostFeatures < Base
|
|
20
|
+
attribute :features, TD::Types::Array.of(TD::Types::ChatBoostLevelFeatures)
|
|
21
|
+
attribute :min_profile_background_custom_emoji_boost_level, TD::Types::Coercible::Integer
|
|
22
|
+
attribute :min_background_custom_emoji_boost_level, TD::Types::Coercible::Integer
|
|
23
|
+
attribute :min_emoji_status_boost_level, TD::Types::Coercible::Integer
|
|
24
|
+
attribute :min_chat_theme_background_boost_level, TD::Types::Coercible::Integer
|
|
25
|
+
attribute :min_custom_background_boost_level, TD::Types::Coercible::Integer
|
|
26
|
+
attribute :min_custom_emoji_sticker_set_boost_level, TD::Types::Coercible::Integer
|
|
27
|
+
attribute :min_speech_recognition_boost_level, TD::Types::Coercible::Integer
|
|
28
|
+
attribute :min_sponsored_message_disable_boost_level, TD::Types::Coercible::Integer
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Contains a list of features available on a specific chat boost level.
|
|
3
|
+
#
|
|
4
|
+
# @attr level [Integer] Target chat boost level.
|
|
5
|
+
# @attr story_per_day_count [Integer] Number of stories that the chat can publish daily.
|
|
6
|
+
# @attr custom_emoji_reaction_count [Integer] Number of custom emoji reactions that can be added to the list of
|
|
7
|
+
# available reactions.
|
|
8
|
+
# @attr title_color_count [Integer] Number of custom colors for chat title.
|
|
9
|
+
# @attr profile_accent_color_count [Integer] Number of custom colors for profile photo background.
|
|
10
|
+
# @attr can_set_profile_background_custom_emoji [Boolean] True, if custom emoji for profile background can be set.
|
|
11
|
+
# @attr accent_color_count [Integer] Number of custom colors for background of empty chat photo, replies to messages
|
|
12
|
+
# and link previews.
|
|
13
|
+
# @attr can_set_background_custom_emoji [Boolean] True, if custom emoji for reply header and link preview background
|
|
14
|
+
# can be set.
|
|
15
|
+
# @attr can_set_emoji_status [Boolean] True, if emoji status can be set.
|
|
16
|
+
# @attr chat_theme_background_count [Integer] Number of chat theme backgrounds that can be set as chat background.
|
|
17
|
+
# @attr can_set_custom_background [Boolean] True, if custom background can be set in the chat for all users.
|
|
18
|
+
# @attr can_set_custom_emoji_sticker_set [Boolean] True, if custom emoji sticker set can be set for the chat.
|
|
19
|
+
# @attr can_recognize_speech [Boolean] True, if speech recognition can be used for video note and voice note messages
|
|
20
|
+
# by all users.
|
|
21
|
+
# @attr can_disable_sponsored_messages [Boolean] True, if sponsored messages can be disabled in the chat.
|
|
22
|
+
class ChatBoostLevelFeatures < Base
|
|
23
|
+
attribute :level, TD::Types::Coercible::Integer
|
|
24
|
+
attribute :story_per_day_count, TD::Types::Coercible::Integer
|
|
25
|
+
attribute :custom_emoji_reaction_count, TD::Types::Coercible::Integer
|
|
26
|
+
attribute :title_color_count, TD::Types::Coercible::Integer
|
|
27
|
+
attribute :profile_accent_color_count, TD::Types::Coercible::Integer
|
|
28
|
+
attribute :can_set_profile_background_custom_emoji, TD::Types::Bool
|
|
29
|
+
attribute :accent_color_count, TD::Types::Coercible::Integer
|
|
30
|
+
attribute :can_set_background_custom_emoji, TD::Types::Bool
|
|
31
|
+
attribute :can_set_emoji_status, TD::Types::Bool
|
|
32
|
+
attribute :chat_theme_background_count, TD::Types::Coercible::Integer
|
|
33
|
+
attribute :can_set_custom_background, TD::Types::Bool
|
|
34
|
+
attribute :can_set_custom_emoji_sticker_set, TD::Types::Bool
|
|
35
|
+
attribute :can_recognize_speech, TD::Types::Bool
|
|
36
|
+
attribute :can_disable_sponsored_messages, TD::Types::Bool
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Contains an HTTPS link to boost a chat.
|
|
3
|
+
#
|
|
4
|
+
# @attr link [TD::Types::String] The link.
|
|
5
|
+
# @attr is_public [Boolean] True, if the link will work for non-members of the chat.
|
|
6
|
+
class ChatBoostLink < Base
|
|
7
|
+
attribute :link, TD::Types::String
|
|
8
|
+
attribute :is_public, TD::Types::Bool
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Contains information about a link to boost a chat.
|
|
3
|
+
#
|
|
4
|
+
# @attr is_public [Boolean] True, if the link will work for non-members of the chat.
|
|
5
|
+
# @attr chat_id [Integer] Identifier of the chat to which the link points; 0 if the chat isn't found.
|
|
6
|
+
class ChatBoostLinkInfo < Base
|
|
7
|
+
attribute :is_public, TD::Types::Bool
|
|
8
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Describes a slot for chat boost.
|
|
3
|
+
#
|
|
4
|
+
# @attr slot_id [Integer] Unique identifier of the slot.
|
|
5
|
+
# @attr currently_boosted_chat_id [Integer] Identifier of the currently boosted chat; 0 if none.
|
|
6
|
+
# @attr start_date [Integer] Point in time (Unix timestamp) when the chat was boosted; 0 if none.
|
|
7
|
+
# @attr expiration_date [Integer] Point in time (Unix timestamp) when the boost will expire.
|
|
8
|
+
# @attr cooldown_until_date [Integer] Point in time (Unix timestamp) after which the boost can be used for another
|
|
9
|
+
# chat.
|
|
10
|
+
class ChatBoostSlot < Base
|
|
11
|
+
attribute :slot_id, TD::Types::Coercible::Integer
|
|
12
|
+
attribute :currently_boosted_chat_id, TD::Types::Coercible::Integer
|
|
13
|
+
attribute :start_date, TD::Types::Coercible::Integer
|
|
14
|
+
attribute :expiration_date, TD::Types::Coercible::Integer
|
|
15
|
+
attribute :cooldown_until_date, TD::Types::Coercible::Integer
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# The chat created a Telegram Premium gift code for a user.
|
|
3
|
+
#
|
|
4
|
+
# @attr user_id [Integer] Identifier of a user, for which the gift code was created.
|
|
5
|
+
# @attr gift_code [TD::Types::String] The created Telegram Premium gift code, which is known only if this is a gift
|
|
6
|
+
# code for the current user, or it has already been claimed.
|
|
7
|
+
class ChatBoostSource::GiftCode < ChatBoostSource
|
|
8
|
+
attribute :user_id, TD::Types::Coercible::Integer
|
|
9
|
+
attribute :gift_code, TD::Types::String
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# The chat created a Telegram Premium giveaway.
|
|
3
|
+
#
|
|
4
|
+
# @attr user_id [Integer] Identifier of a user that won in the giveaway; 0 if none.
|
|
5
|
+
# @attr gift_code [TD::Types::String] The created Telegram Premium gift code if it was used by the user or can be
|
|
6
|
+
# claimed by the current user; an empty string otherwise.
|
|
7
|
+
# @attr giveaway_message_id [Integer] Identifier of the corresponding giveaway message; can be an identifier of a
|
|
8
|
+
# deleted message.
|
|
9
|
+
# @attr is_unclaimed [Boolean] True, if the winner for the corresponding Telegram Premium subscription wasn't chosen,
|
|
10
|
+
# because there were not enough participants.
|
|
11
|
+
class ChatBoostSource::Giveaway < ChatBoostSource
|
|
12
|
+
attribute :user_id, TD::Types::Coercible::Integer
|
|
13
|
+
attribute :gift_code, TD::Types::String
|
|
14
|
+
attribute :giveaway_message_id, TD::Types::Coercible::Integer
|
|
15
|
+
attribute :is_unclaimed, TD::Types::Bool
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# A user with Telegram Premium subscription or gifted Telegram Premium boosted the chat.
|
|
3
|
+
#
|
|
4
|
+
# @attr user_id [Integer] Identifier of the user.
|
|
5
|
+
class ChatBoostSource::Premium < ChatBoostSource
|
|
6
|
+
attribute :user_id, TD::Types::Coercible::Integer
|
|
7
|
+
end
|
|
8
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# Describes current boost status of a chat.
|
|
3
|
+
#
|
|
4
|
+
# @attr boost_url [TD::Types::String] An HTTP URL, which can be used to boost the chat.
|
|
5
|
+
# @attr applied_slot_ids [Array<Integer>] Identifiers of boost slots of the current user applied to the chat.
|
|
6
|
+
# @attr level [Integer] Current boost level of the chat.
|
|
7
|
+
# @attr gift_code_boost_count [Integer] The number of boosts received by the chat from created Telegram Premium gift
|
|
8
|
+
# codes and giveaways; always 0 if the current user isn't an administrator in the chat.
|
|
9
|
+
# @attr boost_count [Integer] The number of boosts received by the chat.
|
|
10
|
+
# @attr current_level_boost_count [Integer] The number of boosts added to reach the current level.
|
|
11
|
+
# @attr next_level_boost_count [Integer] The number of boosts needed to reach the next level; 0 if the next level
|
|
12
|
+
# isn't available.
|
|
13
|
+
# @attr premium_member_count [Integer] Approximate number of Telegram Premium subscribers joined the chat; always 0
|
|
14
|
+
# if the current user isn't an administrator in the chat.
|
|
15
|
+
# @attr premium_member_percentage [Float] A percentage of Telegram Premium subscribers joined the chat; always 0 if
|
|
16
|
+
# the current user isn't an administrator in the chat.
|
|
17
|
+
# @attr prepaid_giveaways [Array<TD::Types::PrepaidPremiumGiveaway>] The list of prepaid giveaways available for the
|
|
18
|
+
# chat; only for chat administrators.
|
|
19
|
+
class ChatBoostStatus < Base
|
|
20
|
+
attribute :boost_url, TD::Types::String
|
|
21
|
+
attribute :applied_slot_ids, TD::Types::Array.of(TD::Types::Coercible::Integer)
|
|
22
|
+
attribute :level, TD::Types::Coercible::Integer
|
|
23
|
+
attribute :gift_code_boost_count, TD::Types::Coercible::Integer
|
|
24
|
+
attribute :boost_count, TD::Types::Coercible::Integer
|
|
25
|
+
attribute :current_level_boost_count, TD::Types::Coercible::Integer
|
|
26
|
+
attribute :next_level_boost_count, TD::Types::Coercible::Integer
|
|
27
|
+
attribute :premium_member_count, TD::Types::Coercible::Integer
|
|
28
|
+
attribute :premium_member_percentage, TD::Types::Coercible::Float
|
|
29
|
+
attribute :prepaid_giveaways, TD::Types::Array.of(TD::Types::PrepaidPremiumGiveaway)
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -3,12 +3,12 @@ module TD::Types
|
|
|
3
3
|
#
|
|
4
4
|
# @attr id [Integer] Chat event identifier.
|
|
5
5
|
# @attr date [Integer] Point in time (Unix timestamp) when the event happened.
|
|
6
|
-
# @attr
|
|
7
|
-
# @attr action [TD::Types::ChatEventAction]
|
|
6
|
+
# @attr member_id [TD::Types::MessageSender] Identifier of the user or chat who performed the action.
|
|
7
|
+
# @attr action [TD::Types::ChatEventAction] The action.
|
|
8
8
|
class ChatEvent < Base
|
|
9
9
|
attribute :id, TD::Types::Coercible::Integer
|
|
10
10
|
attribute :date, TD::Types::Coercible::Integer
|
|
11
|
-
attribute :
|
|
11
|
+
attribute :member_id, TD::Types::MessageSender
|
|
12
12
|
attribute :action, TD::Types::ChatEventAction
|
|
13
13
|
end
|
|
14
14
|
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# The chat accent color or background custom emoji were changed.
|
|
3
|
+
#
|
|
4
|
+
# @attr old_accent_color_id [Integer] Previous identifier of chat accent color.
|
|
5
|
+
# @attr old_background_custom_emoji_id [Integer] Previous identifier of the custom emoji; 0 if none.
|
|
6
|
+
# @attr new_accent_color_id [Integer] New identifier of chat accent color.
|
|
7
|
+
# @attr new_background_custom_emoji_id [Integer] New identifier of the custom emoji; 0 if none.
|
|
8
|
+
class ChatEventAction::AccentColorChanged < ChatEventAction
|
|
9
|
+
attribute :old_accent_color_id, TD::Types::Coercible::Integer
|
|
10
|
+
attribute :old_background_custom_emoji_id, TD::Types::Coercible::Integer
|
|
11
|
+
attribute :new_accent_color_id, TD::Types::Coercible::Integer
|
|
12
|
+
attribute :new_background_custom_emoji_id, TD::Types::Coercible::Integer
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# The chat active usernames were changed.
|
|
3
|
+
#
|
|
4
|
+
# @attr old_usernames [Array<TD::Types::String>] Previous list of active usernames.
|
|
5
|
+
# @attr new_usernames [Array<TD::Types::String>] New list of active usernames.
|
|
6
|
+
class ChatEventAction::ActiveUsernamesChanged < ChatEventAction
|
|
7
|
+
attribute :old_usernames, TD::Types::Array.of(TD::Types::String)
|
|
8
|
+
attribute :new_usernames, TD::Types::Array.of(TD::Types::String)
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# The chat available reactions were changed.
|
|
3
|
+
#
|
|
4
|
+
# @attr old_available_reactions [TD::Types::ChatAvailableReactions] Previous chat available reactions.
|
|
5
|
+
# @attr new_available_reactions [TD::Types::ChatAvailableReactions] New chat available reactions.
|
|
6
|
+
class ChatEventAction::AvailableReactionsChanged < ChatEventAction
|
|
7
|
+
attribute :old_available_reactions, TD::Types::ChatAvailableReactions
|
|
8
|
+
attribute :new_available_reactions, TD::Types::ChatAvailableReactions
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# The chat background was changed.
|
|
3
|
+
#
|
|
4
|
+
# @attr old_background [TD::Types::ChatBackground, nil] Previous background; may be null if none.
|
|
5
|
+
# @attr new_background [TD::Types::ChatBackground, nil] New background; may be null if none.
|
|
6
|
+
class ChatEventAction::BackgroundChanged < ChatEventAction
|
|
7
|
+
attribute :old_background, TD::Types::ChatBackground.optional.default(nil)
|
|
8
|
+
attribute :new_background, TD::Types::ChatBackground.optional.default(nil)
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# The supergroup sticker set with allowed custom emoji was changed.
|
|
3
|
+
#
|
|
4
|
+
# @attr old_sticker_set_id [Integer] Previous identifier of the chat sticker set; 0 if none.
|
|
5
|
+
# @attr new_sticker_set_id [Integer] New identifier of the chat sticker set; 0 if none.
|
|
6
|
+
class ChatEventAction::CustomEmojiStickerSetChanged < ChatEventAction
|
|
7
|
+
attribute :old_sticker_set_id, TD::Types::Coercible::Integer
|
|
8
|
+
attribute :new_sticker_set_id, TD::Types::Coercible::Integer
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# The chat emoji status was changed.
|
|
3
|
+
#
|
|
4
|
+
# @attr old_emoji_status [TD::Types::EmojiStatus, nil] Previous emoji status; may be null if none.
|
|
5
|
+
# @attr new_emoji_status [TD::Types::EmojiStatus, nil] New emoji status; may be null if none.
|
|
6
|
+
class ChatEventAction::EmojiStatusChanged < ChatEventAction
|
|
7
|
+
attribute :old_emoji_status, TD::Types::EmojiStatus.optional.default(nil)
|
|
8
|
+
attribute :new_emoji_status, TD::Types::EmojiStatus.optional.default(nil)
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# A forum topic was edited.
|
|
3
|
+
#
|
|
4
|
+
# @attr old_topic_info [TD::Types::ForumTopicInfo] Old information about the topic.
|
|
5
|
+
# @attr new_topic_info [TD::Types::ForumTopicInfo] New information about the topic.
|
|
6
|
+
class ChatEventAction::ForumTopicEdited < ChatEventAction
|
|
7
|
+
attribute :old_topic_info, TD::Types::ForumTopicInfo
|
|
8
|
+
attribute :new_topic_info, TD::Types::ForumTopicInfo
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# A pinned forum topic was changed.
|
|
3
|
+
#
|
|
4
|
+
# @attr old_topic_info [TD::Types::ForumTopicInfo, nil] Information about the old pinned topic; may be null.
|
|
5
|
+
# @attr new_topic_info [TD::Types::ForumTopicInfo, nil] Information about the new pinned topic; may be null.
|
|
6
|
+
class ChatEventAction::ForumTopicPinned < ChatEventAction
|
|
7
|
+
attribute :old_topic_info, TD::Types::ForumTopicInfo.optional.default(nil)
|
|
8
|
+
attribute :new_topic_info, TD::Types::ForumTopicInfo.optional.default(nil)
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# A forum topic was closed or reopened.
|
|
3
|
+
#
|
|
4
|
+
# @attr topic_info [TD::Types::ForumTopicInfo] New information about the topic.
|
|
5
|
+
class ChatEventAction::ForumTopicToggleIsClosed < ChatEventAction
|
|
6
|
+
attribute :topic_info, TD::Types::ForumTopicInfo
|
|
7
|
+
end
|
|
8
|
+
end
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# The General forum topic was hidden or unhidden.
|
|
3
|
+
#
|
|
4
|
+
# @attr topic_info [TD::Types::ForumTopicInfo] New information about the topic.
|
|
5
|
+
class ChatEventAction::ForumTopicToggleIsHidden < ChatEventAction
|
|
6
|
+
attribute :topic_info, TD::Types::ForumTopicInfo
|
|
7
|
+
end
|
|
8
|
+
end
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# The has_aggressive_anti_spam_enabled setting of a supergroup was toggled.
|
|
3
|
+
#
|
|
4
|
+
# @attr has_aggressive_anti_spam_enabled [Boolean] New value of has_aggressive_anti_spam_enabled.
|
|
5
|
+
class ChatEventAction::HasAggressiveAntiSpamEnabledToggled < ChatEventAction
|
|
6
|
+
attribute :has_aggressive_anti_spam_enabled, TD::Types::Bool
|
|
7
|
+
end
|
|
8
|
+
end
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# The has_protected_content setting of a channel was toggled.
|
|
3
|
+
#
|
|
4
|
+
# @attr has_protected_content [Boolean] New value of has_protected_content.
|
|
5
|
+
class ChatEventAction::HasProtectedContentToggled < ChatEventAction
|
|
6
|
+
attribute :has_protected_content, TD::Types::Bool
|
|
7
|
+
end
|
|
8
|
+
end
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
module TD::Types
|
|
2
|
-
# A new member joined the chat
|
|
2
|
+
# A new member joined the chat via an invite link.
|
|
3
3
|
#
|
|
4
4
|
# @attr invite_link [TD::Types::ChatInviteLink] Invite link used to join the chat.
|
|
5
|
+
# @attr via_chat_folder_invite_link [Boolean] True, if the user has joined the chat using an invite link for a chat
|
|
6
|
+
# folder.
|
|
5
7
|
class ChatEventAction::MemberJoinedByInviteLink < ChatEventAction
|
|
6
8
|
attribute :invite_link, TD::Types::ChatInviteLink
|
|
9
|
+
attribute :via_chat_folder_invite_link, TD::Types::Bool
|
|
7
10
|
end
|
|
8
11
|
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
module TD::Types
|
|
2
|
+
# A new member was accepted to the chat by an administrator.
|
|
3
|
+
#
|
|
4
|
+
# @attr approver_user_id [Integer] User identifier of the chat administrator, approved user join request.
|
|
5
|
+
# @attr invite_link [TD::Types::ChatInviteLink, nil] Invite link used to join the chat; may be null.
|
|
6
|
+
class ChatEventAction::MemberJoinedByRequest < ChatEventAction
|
|
7
|
+
attribute :approver_user_id, TD::Types::Coercible::Integer
|
|
8
|
+
attribute :invite_link, TD::Types::ChatInviteLink.optional.default(nil)
|
|
9
|
+
end
|
|
10
|
+
end
|