From 121d5c8367c33d48ba2596c94d90af6b2246ac2e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 07:04:02 +0000 Subject: [PATCH 01/17] chore(deps): bump github.com/ogen-go/ogen from 1.8.1 to 1.9.0 Bumps [github.com/ogen-go/ogen](https://github.com/ogen-go/ogen) from 1.8.1 to 1.9.0. - [Release notes](https://github.com/ogen-go/ogen/releases) - [Commits](https://github.com/ogen-go/ogen/compare/v1.8.1...v1.9.0) --- updated-dependencies: - dependency-name: github.com/ogen-go/ogen dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 4786abd007..f6f2ab28c7 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,7 @@ require ( github.com/gotd/tl v0.4.0 github.com/k0kubun/pp/v3 v3.4.1 github.com/klauspost/compress v1.17.11 - github.com/ogen-go/ogen v1.8.1 + github.com/ogen-go/ogen v1.9.0 github.com/rogpeppe/go-internal v1.13.1 github.com/stretchr/testify v1.10.0 go.opentelemetry.io/otel v1.34.0 diff --git a/go.sum b/go.sum index 5bafefe160..f47bae85b7 100644 --- a/go.sum +++ b/go.sum @@ -63,8 +63,8 @@ github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovk github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/ogen-go/ogen v1.8.1 h1:7TZ+oIeLkcBiyl0qu0fHPrFUrGWDj3Fi/zKSWg2i2Tg= -github.com/ogen-go/ogen v1.8.1/go.mod h1:2ShRm6u/nXUHuwdVKv2SeaG8enBKPKAE3kSbHwwFh6o= +github.com/ogen-go/ogen v1.9.0 h1:n+lDQpiSFYC9G4hTvuNVWnqmIP0LR8ws0faDn9jX3hU= +github.com/ogen-go/ogen v1.9.0/go.mod h1:vkHpuRyzjdfuRCy81EShi4t9sIgZDcNPGmiDKipRloc= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -90,8 +90,8 @@ go.opentelemetry.io/otel v1.34.0 h1:zRLXxLCgL1WyKsPVrgbSdMN4c0FMkDAskSTQP+0hdUY= go.opentelemetry.io/otel v1.34.0/go.mod h1:OWFPOQ+h4G8xpyjgqo4SxJYdDQ/qmRH+wivy7zzx9oI= go.opentelemetry.io/otel/metric v1.34.0 h1:+eTR3U0MyfWjRDhmFMxe2SsW64QrZ84AOhvqS7Y+PoQ= go.opentelemetry.io/otel/metric v1.34.0/go.mod h1:CEDrp0fy2D0MvkXE+dPV7cMi8tWZwX3dmaIhwPOaqHE= -go.opentelemetry.io/otel/sdk v1.33.0 h1:iax7M131HuAm9QkZotNHEfstof92xM+N8sr3uHXc2IM= -go.opentelemetry.io/otel/sdk v1.33.0/go.mod h1:A1Q5oi7/9XaMlIWzPSxLRWOI8nG3FnzHJNbiENQuihM= +go.opentelemetry.io/otel/sdk v1.34.0 h1:95zS4k/2GOy069d321O8jWgYsW3MzVV+KuSPKp7Wr1A= +go.opentelemetry.io/otel/sdk v1.34.0/go.mod h1:0e/pNiaMAqaykJGKbi+tSjWfNNHMTxoC9qANsCzbyxU= go.opentelemetry.io/otel/trace v1.34.0 h1:+ouXS2V8Rd4hp4580a8q23bg0azF2nI8cqLYnC8mh/k= go.opentelemetry.io/otel/trace v1.34.0/go.mod h1:Svm7lSjQD7kG7KJ/MUHPVXSDGz2OX4h0M2jHBhmSfRE= go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= From 391764169d1fe74532e7c5faefba2700652819fa Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Tue, 28 Jan 2025 13:43:59 +0300 Subject: [PATCH 02/17] chore(gen): upd --- tgacc/oas/oas_client_gen.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tgacc/oas/oas_client_gen.go b/tgacc/oas/oas_client_gen.go index b7d60c6034..8e084f8096 100644 --- a/tgacc/oas/oas_client_gen.go +++ b/tgacc/oas/oas_client_gen.go @@ -22,6 +22,11 @@ import ( "github.com/ogen-go/ogen/uri" ) +func trimTrailingSlashes(u *url.URL) { + u.Path = strings.TrimRight(u.Path, "/") + u.RawPath = strings.TrimRight(u.RawPath, "/") +} + // Invoker invokes operations described by OpenAPI v3 specification. type Invoker interface { // AcquireTelegramAccount invokes acquireTelegramAccount operation. @@ -57,11 +62,6 @@ type Client struct { baseClient } -func trimTrailingSlashes(u *url.URL) { - u.Path = strings.TrimRight(u.Path, "/") - u.RawPath = strings.TrimRight(u.RawPath, "/") -} - // NewClient initializes new Client defined by OAS. func NewClient(serverURL string, sec SecuritySource, opts ...ClientOption) (*Client, error) { u, err := url.Parse(serverURL) From 24852fe245f7f4b8809cff0e5aebd4c08220c330 Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Mon, 3 Feb 2025 18:33:59 +0300 Subject: [PATCH 03/17] docs: list constructor links in class comment --- gen/_template/interface.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gen/_template/interface.tmpl b/gen/_template/interface.tmpl index e1d0f6a118..a9fd045bf2 100644 --- a/gen/_template/interface.tmpl +++ b/gen/_template/interface.tmpl @@ -10,6 +10,11 @@ const {{ $f.Name }}Name = "{{ $f.RawType }}" // See {{ $f.URL }} for reference. // {{- end }} +// Constructors: +{{ range $c := $f.Constructors -}} +// - [{{ $c.Name }}] +{{ end -}} +// // Example: // g, err := {{ $.Config.Package }}.Decode{{ $f.Func }}(buf) // if err != nil { From 7b6f9dd4987e01e1bd03b87798920801716986b7 Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Mon, 3 Feb 2025 18:34:06 +0300 Subject: [PATCH 04/17] chore(gen): upd --- examples/go.mod | 2 +- examples/go.sum | 1 + gen/example/tl_abstract_message_gen.go | 7 + gen/example/tl_account_themes_gen.go | 4 + gen/example/tl_auth_gen.go | 4 + gen/example/tl_bool_gen.go | 4 + gen/example/tl_response_gen.go | 4 + gen/example/tl_text_entity_type_gen.go | 19 +++ gen/example/tl_user_auth_gen.go | 4 + mt/tl_bad_msg_notification_gen.go | 4 + mt/tl_destroy_session_res_gen.go | 4 + mt/tl_msg_detailed_info_gen.go | 4 + mt/tl_p_q_inner_data_gen.go | 5 + mt/tl_rpc_drop_answer_gen.go | 5 + mt/tl_server_d_h_params_gen.go | 4 + mt/tl_set_client_d_h_params_answer_gen.go | 5 + tg/e2e/tl_bool_gen.go | 4 + tg/e2e/tl_decrypted_message_action_gen.go | 15 ++ tg/e2e/tl_decrypted_message_gen.go | 8 + tg/e2e/tl_decrypted_message_media_gen.go | 18 +++ tg/e2e/tl_document_attribute_gen.go | 12 ++ tg/e2e/tl_file_location_gen.go | 4 + tg/e2e/tl_input_sticker_set_gen.go | 4 + tg/e2e/tl_message_entity_gen.go | 22 +++ tg/e2e/tl_photo_size_gen.go | 5 + tg/e2e/tl_send_message_action_gen.go | 14 ++ tg/tl_account_email_verified_gen.go | 4 + tg/tl_account_emoji_statuses_gen.go | 4 + tg/tl_account_reset_password_result_gen.go | 5 + tg/tl_account_saved_ringtone_gen.go | 4 + tg/tl_account_saved_ringtones_gen.go | 4 + tg/tl_account_themes_gen.go | 4 + tg/tl_account_wall_papers_gen.go | 4 + tg/tl_attach_menu_bots_gen.go | 4 + tg/tl_attach_menu_peer_type_gen.go | 7 + tg/tl_auth_authorization_gen.go | 4 + tg/tl_auth_code_type_gen.go | 7 + tg/tl_auth_login_token_gen.go | 5 + tg/tl_auth_sent_code_gen.go | 4 + tg/tl_auth_sent_code_type_gen.go | 13 ++ tg/tl_base_theme_gen.go | 7 + tg/tl_bool_gen.go | 4 + tg/tl_bot_app_gen.go | 4 + tg/tl_bot_command_scope_gen.go | 9 ++ tg/tl_bot_inline_message_gen.go | 9 ++ tg/tl_bot_inline_result_gen.go | 4 + tg/tl_bot_menu_button_gen.go | 5 + tg/tl_broadcast_revenue_transaction_gen.go | 5 + tg/tl_business_away_message_schedule_gen.go | 5 + tg/tl_channel_admin_log_event_action_gen.go | 52 +++++++ tg/tl_channel_location_gen.go | 4 + tg/tl_channel_messages_filter_gen.go | 4 + tg/tl_channel_participant_gen.go | 8 + tg/tl_channel_participants_filter_gen.go | 10 ++ tg/tl_channels_channel_participants_gen.go | 4 + ...els_sponsored_message_report_result_gen.go | 5 + tg/tl_chat_full_gen.go | 4 + tg/tl_chat_gen.go | 7 + tg/tl_chat_invite_gen.go | 5 + tg/tl_chat_participant_gen.go | 5 + tg/tl_chat_participants_gen.go | 4 + tg/tl_chat_photo_gen.go | 4 + tg/tl_chat_reactions_gen.go | 5 + tg/tl_chatlists_chatlist_invite_gen.go | 4 + tg/tl_contacts_blocked_gen.go | 4 + tg/tl_contacts_contacts_gen.go | 4 + tg/tl_contacts_top_peers_gen.go | 5 + tg/tl_dialog_filter_gen.go | 5 + tg/tl_dialog_gen.go | 4 + tg/tl_dialog_peer_gen.go | 4 + tg/tl_document_attribute_gen.go | 10 ++ tg/tl_document_gen.go | 4 + tg/tl_draft_message_gen.go | 4 + tg/tl_email_verification_gen.go | 5 + tg/tl_email_verify_purpose_gen.go | 5 + tg/tl_emoji_group_gen.go | 5 + tg/tl_emoji_keyword_gen.go | 4 + tg/tl_emoji_list_gen.go | 4 + tg/tl_emoji_status_gen.go | 6 + tg/tl_encrypted_chat_gen.go | 7 + tg/tl_encrypted_file_gen.go | 4 + tg/tl_encrypted_message_gen.go | 4 + tg/tl_exported_chat_invite_gen.go | 4 + tg/tl_forum_topic_gen.go | 4 + tg/tl_geo_point_gen.go | 4 + tg/tl_group_call_gen.go | 4 + tg/tl_help_app_config_gen.go | 4 + tg/tl_help_app_update_gen.go | 4 + tg/tl_help_countries_list_gen.go | 4 + tg/tl_help_deep_link_info_gen.go | 4 + tg/tl_help_passport_config_gen.go | 4 + tg/tl_help_peer_color_set_gen.go | 4 + tg/tl_help_peer_colors_gen.go | 4 + tg/tl_help_promo_data_gen.go | 4 + tg/tl_help_terms_of_service_update_gen.go | 4 + tg/tl_help_timezones_list_gen.go | 4 + tg/tl_help_user_info_gen.go | 4 + tg/tl_inline_query_peer_type_gen.go | 8 + tg/tl_input_bot_app_gen.go | 4 + tg/tl_input_bot_inline_message_gen.go | 10 ++ tg/tl_input_bot_inline_message_id_gen.go | 4 + tg/tl_input_bot_inline_result_gen.go | 6 + tg/tl_input_channel_gen.go | 5 + tg/tl_input_chat_photo_gen.go | 5 + tg/tl_input_check_password_srp_gen.go | 4 + tg/tl_input_collectible_gen.go | 4 + tg/tl_input_dialog_peer_gen.go | 4 + tg/tl_input_document_gen.go | 4 + tg/tl_input_encrypted_file_gen.go | 6 + tg/tl_input_file_gen.go | 5 + tg/tl_input_file_location_gen.go | 14 ++ tg/tl_input_game_gen.go | 4 + tg/tl_input_geo_point_gen.go | 4 + tg/tl_input_invoice_gen.go | 10 ++ tg/tl_input_media_gen.go | 20 +++ tg/tl_input_message_gen.go | 6 + tg/tl_input_notify_peer_gen.go | 7 + tg/tl_input_payment_credentials_gen.go | 6 + tg/tl_input_peer_gen.go | 9 ++ tg/tl_input_photo_gen.go | 4 + tg/tl_input_privacy_key_gen.go | 14 ++ tg/tl_input_privacy_rule_gen.go | 14 ++ tg/tl_input_quick_reply_shortcut_gen.go | 4 + tg/tl_input_reply_to_gen.go | 4 + tg/tl_input_saved_star_gift_gen.go | 4 + tg/tl_input_secure_file_gen.go | 4 + tg/tl_input_sticker_set_gen.go | 13 ++ tg/tl_input_stickered_media_gen.go | 4 + tg/tl_input_store_payment_purpose_gen.go | 9 ++ tg/tl_input_theme_gen.go | 4 + tg/tl_input_user_gen.go | 6 + tg/tl_input_wall_paper_gen.go | 5 + tg/tl_input_web_file_location_gen.go | 5 + tg/tl_ip_port_gen.go | 4 + tg/tl_json_value_gen.go | 8 + tg/tl_keyboard_button_gen.go | 20 +++ tg/tl_lang_pack_string_gen.go | 5 + tg/tl_media_area_gen.go | 11 ++ tg/tl_message_action_gen.go | 50 ++++++ tg/tl_message_entity_gen.go | 23 +++ tg/tl_message_extended_media_gen.go | 4 + tg/tl_message_gen.go | 5 + tg/tl_message_media_gen.go | 19 +++ tg/tl_message_peer_vote_gen.go | 5 + tg/tl_message_reply_header_gen.go | 4 + tg/tl_messages_all_stickers_gen.go | 4 + tg/tl_messages_available_effects_gen.go | 4 + tg/tl_messages_available_reactions_gen.go | 4 + tg/tl_messages_chats_gen.go | 4 + tg/tl_messages_dh_config_gen.go | 4 + tg/tl_messages_dialogs_gen.go | 5 + tg/tl_messages_emoji_groups_gen.go | 4 + tg/tl_messages_exported_chat_invite_gen.go | 4 + tg/tl_messages_faved_stickers_gen.go | 4 + tg/tl_messages_featured_stickers_gen.go | 4 + tg/tl_messages_filter_gen.go | 19 +++ tg/tl_messages_found_sticker_sets_gen.go | 4 + tg/tl_messages_found_stickers_gen.go | 4 + tg/tl_messages_messages_gen.go | 6 + tg/tl_messages_quick_replies_gen.go | 4 + tg/tl_messages_reactions_gen.go | 4 + tg/tl_messages_recent_stickers_gen.go | 4 + tg/tl_messages_saved_dialogs_gen.go | 5 + tg/tl_messages_saved_gifs_gen.go | 4 + tg/tl_messages_saved_reaction_tags_gen.go | 4 + tg/tl_messages_sent_encrypted_message_gen.go | 4 + tg/tl_messages_sponsored_messages_gen.go | 4 + tg/tl_messages_sticker_set_gen.go | 4 + ...messages_sticker_set_install_result_gen.go | 4 + tg/tl_messages_stickers_gen.go | 4 + tg/tl_notification_sound_gen.go | 6 + tg/tl_notify_peer_gen.go | 7 + tg/tl_page_block_gen.go | 31 ++++ tg/tl_page_list_item_gen.go | 4 + tg/tl_page_list_ordered_item_gen.go | 4 + tg/tl_password_kdf_algo_gen.go | 4 + tg/tl_payments_giveaway_info_gen.go | 4 + tg/tl_payments_payment_form_gen.go | 5 + tg/tl_payments_payment_receipt_gen.go | 4 + tg/tl_payments_payment_result_gen.go | 4 + tg/tl_payments_star_gifts_gen.go | 4 + tg/tl_peer_gen.go | 5 + tg/tl_peer_located_gen.go | 4 + tg/tl_phone_call_discard_reason_gen.go | 7 + tg/tl_phone_call_gen.go | 8 + tg/tl_phone_connection_gen.go | 4 + tg/tl_photo_gen.go | 4 + tg/tl_photo_size_gen.go | 8 + tg/tl_photos_photos_gen.go | 4 + tg/tl_post_interaction_counters_gen.go | 4 + tg/tl_prepaid_giveaway_gen.go | 4 + tg/tl_privacy_key_gen.go | 14 ++ tg/tl_privacy_rule_gen.go | 14 ++ tg/tl_public_forward_gen.go | 4 + tg/tl_reaction_gen.go | 6 + tg/tl_reaction_notifications_from_gen.go | 4 + tg/tl_recent_me_url_gen.go | 7 + tg/tl_reply_markup_gen.go | 6 + tg/tl_report_reason_gen.go | 12 ++ tg/tl_report_result_gen.go | 5 + tg/tl_request_peer_type_gen.go | 5 + tg/tl_requested_peer_gen.go | 5 + tg/tl_rich_text_gen.go | 18 +++ tg/tl_secure_file_gen.go | 4 + tg/tl_secure_password_kdf_algo_gen.go | 5 + tg/tl_secure_plain_data_gen.go | 4 + tg/tl_secure_required_type_gen.go | 4 + tg/tl_secure_value_error_gen.go | 11 ++ tg/tl_secure_value_type_gen.go | 15 ++ tg/tl_send_message_action_gen.go | 20 +++ tg/tl_star_gift_attribute_gen.go | 6 + tg/tl_star_gift_gen.go | 4 + tg/tl_stars_transaction_peer_gen.go | 10 ++ tg/tl_stats_graph_gen.go | 5 + tg/tl_sticker_set_covered_gen.go | 6 + tg/tl_storage_file_type_gen.go | 12 ++ tg/tl_stories_all_stories_gen.go | 4 + tg/tl_story_item_gen.go | 5 + tg/tl_story_reaction_gen.go | 5 + tg/tl_story_view_gen.go | 5 + tg/tl_top_peer_category_gen.go | 11 ++ tg/tl_update_gen.go | 143 ++++++++++++++++++ tg/tl_updates_channel_difference_gen.go | 5 + tg/tl_updates_difference_gen.go | 6 + tg/tl_updates_gen.go | 9 ++ tg/tl_upload_cdn_file_gen.go | 4 + tg/tl_upload_file_gen.go | 4 + tg/tl_url_auth_result_gen.go | 5 + tg/tl_user_gen.go | 4 + tg/tl_user_profile_photo_gen.go | 4 + tg/tl_user_status_gen.go | 8 + tg/tl_users_users_gen.go | 4 + tg/tl_video_size_gen.go | 5 + tg/tl_wall_paper_gen.go | 4 + tg/tl_web_document_gen.go | 4 + tg/tl_web_page_attribute_gen.go | 6 + tg/tl_web_page_gen.go | 6 + 237 files changed, 1689 insertions(+), 1 deletion(-) diff --git a/examples/go.mod b/examples/go.mod index 23264449f6..3143778b6e 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -44,7 +44,7 @@ require ( github.com/kr/text v0.2.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect - github.com/ogen-go/ogen v1.8.1 // indirect + github.com/ogen-go/ogen v1.9.0 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/prometheus/client_golang v1.19.0 // indirect github.com/prometheus/client_model v0.5.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index b31f306f7e..c3619b24fd 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -77,6 +77,7 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/ogen-go/ogen v1.8.1 h1:7TZ+oIeLkcBiyl0qu0fHPrFUrGWDj3Fi/zKSWg2i2Tg= github.com/ogen-go/ogen v1.8.1/go.mod h1:2ShRm6u/nXUHuwdVKv2SeaG8enBKPKAE3kSbHwwFh6o= +github.com/ogen-go/ogen v1.9.0/go.mod h1:vkHpuRyzjdfuRCy81EShi4t9sIgZDcNPGmiDKipRloc= github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= diff --git a/gen/example/tl_abstract_message_gen.go b/gen/example/tl_abstract_message_gen.go index 11f82f9e4b..d3506144c4 100644 --- a/gen/example/tl_abstract_message_gen.go +++ b/gen/example/tl_abstract_message_gen.go @@ -839,6 +839,13 @@ const AbstractMessageClassName = "AbstractMessage" // // See https://localhost:80/doc/type/AbstractMessage for reference. // +// Constructors: +// - [BigMessage] +// - [NoMessage] +// - [TargetsMessage] +// - [FieldsMessage] +// - [BytesMessage] +// // Example: // // g, err := td.DecodeAbstractMessage(buf) diff --git a/gen/example/tl_account_themes_gen.go b/gen/example/tl_account_themes_gen.go index a72f3bf7a8..a5b8e4b451 100644 --- a/gen/example/tl_account_themes_gen.go +++ b/gen/example/tl_account_themes_gen.go @@ -306,6 +306,10 @@ const AccountThemesClassName = "account.Themes" // // See https://localhost:80/doc/type/account.Themes for reference. // +// Constructors: +// - [AccountThemesNotModified] +// - [AccountThemes] +// // Example: // // g, err := td.DecodeAccountThemes(buf) diff --git a/gen/example/tl_auth_gen.go b/gen/example/tl_auth_gen.go index ddb8657c10..44aa80b388 100644 --- a/gen/example/tl_auth_gen.go +++ b/gen/example/tl_auth_gen.go @@ -317,6 +317,10 @@ const AuthClassName = "Auth" // // See https://localhost:80/doc/type/Auth for reference. // +// Constructors: +// - [Auth] +// - [AuthPassword] +// // Example: // // g, err := td.DecodeAuth(buf) diff --git a/gen/example/tl_bool_gen.go b/gen/example/tl_bool_gen.go index ecbf8bc5de..3eafc7672a 100644 --- a/gen/example/tl_bool_gen.go +++ b/gen/example/tl_bool_gen.go @@ -240,6 +240,10 @@ const BoolClassName = "Bool" // // See https://localhost:80/doc/type/Bool for reference. // +// Constructors: +// - [False] +// - [True] +// // Example: // // g, err := td.DecodeBool(buf) diff --git a/gen/example/tl_response_gen.go b/gen/example/tl_response_gen.go index 9d97e0c9a5..9973295c45 100644 --- a/gen/example/tl_response_gen.go +++ b/gen/example/tl_response_gen.go @@ -292,6 +292,10 @@ const ResponseClassName = "Response" // // See https://localhost:80/doc/type/Response for reference. // +// Constructors: +// - [ResponseID] +// - [ResponseText] +// // Example: // // g, err := td.DecodeResponse(buf) diff --git a/gen/example/tl_text_entity_type_gen.go b/gen/example/tl_text_entity_type_gen.go index 9ee7844f7e..40565219ae 100644 --- a/gen/example/tl_text_entity_type_gen.go +++ b/gen/example/tl_text_entity_type_gen.go @@ -1833,6 +1833,25 @@ const TextEntityTypeClassName = "TextEntityType" // // See https://localhost:80/doc/type/TextEntityType for reference. // +// Constructors: +// - [TextEntityTypeMention] +// - [TextEntityTypeHashtag] +// - [TextEntityTypeCashtag] +// - [TextEntityTypeBotCommand] +// - [TextEntityTypeURL] +// - [TextEntityTypeEmailAddress] +// - [TextEntityTypePhoneNumber] +// - [TextEntityTypeBankCardNumber] +// - [TextEntityTypeBold] +// - [TextEntityTypeItalic] +// - [TextEntityTypeUnderline] +// - [TextEntityTypeStrikethrough] +// - [TextEntityTypeCode] +// - [TextEntityTypePre] +// - [TextEntityTypePreCode] +// - [TextEntityTypeTextURL] +// - [TextEntityTypeMentionName] +// // Example: // // g, err := td.DecodeTextEntityType(buf) diff --git a/gen/example/tl_user_auth_gen.go b/gen/example/tl_user_auth_gen.go index 8b38a70048..b1610907e4 100644 --- a/gen/example/tl_user_auth_gen.go +++ b/gen/example/tl_user_auth_gen.go @@ -292,6 +292,10 @@ const UserAuthClassName = "user.Auth" // // See https://localhost:80/doc/type/user.Auth for reference. // +// Constructors: +// - [UserAuth] +// - [UserAuthPassword] +// // Example: // // g, err := td.DecodeUserAuth(buf) diff --git a/mt/tl_bad_msg_notification_gen.go b/mt/tl_bad_msg_notification_gen.go index b6a6f1e1c5..051757eeb6 100644 --- a/mt/tl_bad_msg_notification_gen.go +++ b/mt/tl_bad_msg_notification_gen.go @@ -411,6 +411,10 @@ const BadMsgNotificationClassName = "BadMsgNotification" // BadMsgNotificationClass represents BadMsgNotification generic type. // +// Constructors: +// - [BadMsgNotification] +// - [BadServerSalt] +// // Example: // // g, err := mt.DecodeBadMsgNotification(buf) diff --git a/mt/tl_destroy_session_res_gen.go b/mt/tl_destroy_session_res_gen.go index 6a3640b540..8d10391c01 100644 --- a/mt/tl_destroy_session_res_gen.go +++ b/mt/tl_destroy_session_res_gen.go @@ -286,6 +286,10 @@ const DestroySessionResClassName = "DestroySessionRes" // DestroySessionResClass represents DestroySessionRes generic type. // +// Constructors: +// - [DestroySessionOk] +// - [DestroySessionNone] +// // Example: // // g, err := mt.DecodeDestroySessionRes(buf) diff --git a/mt/tl_msg_detailed_info_gen.go b/mt/tl_msg_detailed_info_gen.go index d8f236a930..832d23501f 100644 --- a/mt/tl_msg_detailed_info_gen.go +++ b/mt/tl_msg_detailed_info_gen.go @@ -411,6 +411,10 @@ const MsgDetailedInfoClassName = "MsgDetailedInfo" // MsgDetailedInfoClass represents MsgDetailedInfo generic type. // +// Constructors: +// - [MsgDetailedInfo] +// - [MsgNewDetailedInfo] +// // Example: // // g, err := mt.DecodeMsgDetailedInfo(buf) diff --git a/mt/tl_p_q_inner_data_gen.go b/mt/tl_p_q_inner_data_gen.go index 1687cbab21..6193ca8955 100644 --- a/mt/tl_p_q_inner_data_gen.go +++ b/mt/tl_p_q_inner_data_gen.go @@ -861,6 +861,11 @@ const PQInnerDataClassName = "P_Q_inner_data" // PQInnerDataClass represents P_Q_inner_data generic type. // +// Constructors: +// - [PQInnerData] +// - [PQInnerDataDC] +// - [PQInnerDataTempDC] +// // Example: // // g, err := mt.DecodePQInnerData(buf) diff --git a/mt/tl_rpc_drop_answer_gen.go b/mt/tl_rpc_drop_answer_gen.go index 7149cc51c4..eefa5c7188 100644 --- a/mt/tl_rpc_drop_answer_gen.go +++ b/mt/tl_rpc_drop_answer_gen.go @@ -409,6 +409,11 @@ const RPCDropAnswerClassName = "RpcDropAnswer" // RPCDropAnswerClass represents RpcDropAnswer generic type. // +// Constructors: +// - [RPCAnswerUnknown] +// - [RPCAnswerDroppedRunning] +// - [RPCAnswerDropped] +// // Example: // // g, err := mt.DecodeRPCDropAnswer(buf) diff --git a/mt/tl_server_d_h_params_gen.go b/mt/tl_server_d_h_params_gen.go index d8823b4b91..2da5e9810c 100644 --- a/mt/tl_server_d_h_params_gen.go +++ b/mt/tl_server_d_h_params_gen.go @@ -386,6 +386,10 @@ const ServerDHParamsClassName = "Server_DH_Params" // ServerDHParamsClass represents Server_DH_Params generic type. // +// Constructors: +// - [ServerDHParamsFail] +// - [ServerDHParamsOk] +// // Example: // // g, err := mt.DecodeServerDHParams(buf) diff --git a/mt/tl_set_client_d_h_params_answer_gen.go b/mt/tl_set_client_d_h_params_answer_gen.go index b054709879..3ae704f3aa 100644 --- a/mt/tl_set_client_d_h_params_answer_gen.go +++ b/mt/tl_set_client_d_h_params_answer_gen.go @@ -561,6 +561,11 @@ const SetClientDHParamsAnswerClassName = "Set_client_DH_params_answer" // SetClientDHParamsAnswerClass represents Set_client_DH_params_answer generic type. // +// Constructors: +// - [DhGenOk] +// - [DhGenRetry] +// - [DhGenFail] +// // Example: // // g, err := mt.DecodeSetClientDHParamsAnswer(buf) diff --git a/tg/e2e/tl_bool_gen.go b/tg/e2e/tl_bool_gen.go index 6ddff6225f..fe4e3a0e65 100644 --- a/tg/e2e/tl_bool_gen.go +++ b/tg/e2e/tl_bool_gen.go @@ -242,6 +242,10 @@ const BoolClassName = "Bool" // // See https://core.telegram.org/type/Bool for reference. // +// Constructors: +// - [BoolFalse] +// - [BoolTrue] +// // Example: // // g, err := e2e.DecodeBool(buf) diff --git a/tg/e2e/tl_decrypted_message_action_gen.go b/tg/e2e/tl_decrypted_message_action_gen.go index cbd31a0e9f..f22598ebee 100644 --- a/tg/e2e/tl_decrypted_message_action_gen.go +++ b/tg/e2e/tl_decrypted_message_action_gen.go @@ -1806,6 +1806,21 @@ const DecryptedMessageActionClassName = "DecryptedMessageAction" // // See https://core.telegram.org/type/DecryptedMessageAction for reference. // +// Constructors: +// - [DecryptedMessageActionSetMessageTTL] +// - [DecryptedMessageActionReadMessages] +// - [DecryptedMessageActionDeleteMessages] +// - [DecryptedMessageActionScreenshotMessages] +// - [DecryptedMessageActionFlushHistory] +// - [DecryptedMessageActionResend] +// - [DecryptedMessageActionNotifyLayer] +// - [DecryptedMessageActionTyping] +// - [DecryptedMessageActionRequestKey] +// - [DecryptedMessageActionAcceptKey] +// - [DecryptedMessageActionAbortKey] +// - [DecryptedMessageActionCommitKey] +// - [DecryptedMessageActionNoop] +// // Example: // // g, err := e2e.DecodeDecryptedMessageAction(buf) diff --git a/tg/e2e/tl_decrypted_message_gen.go b/tg/e2e/tl_decrypted_message_gen.go index b9e8441285..99af6eec1a 100644 --- a/tg/e2e/tl_decrypted_message_gen.go +++ b/tg/e2e/tl_decrypted_message_gen.go @@ -1647,6 +1647,14 @@ const DecryptedMessageClassName = "DecryptedMessage" // // See https://core.telegram.org/type/DecryptedMessage for reference. // +// Constructors: +// - [DecryptedMessage8] +// - [DecryptedMessageService8] +// - [DecryptedMessage23] +// - [DecryptedMessageService] +// - [DecryptedMessage46] +// - [DecryptedMessage] +// // Example: // // g, err := e2e.DecodeDecryptedMessage(buf) diff --git a/tg/e2e/tl_decrypted_message_media_gen.go b/tg/e2e/tl_decrypted_message_media_gen.go index a0a9d7300b..a613392d27 100644 --- a/tg/e2e/tl_decrypted_message_media_gen.go +++ b/tg/e2e/tl_decrypted_message_media_gen.go @@ -4303,6 +4303,24 @@ const DecryptedMessageMediaClassName = "DecryptedMessageMedia" // // See https://core.telegram.org/type/DecryptedMessageMedia for reference. // +// Constructors: +// - [DecryptedMessageMediaEmpty] +// - [DecryptedMessageMediaPhoto8] +// - [DecryptedMessageMediaVideo8] +// - [DecryptedMessageMediaGeoPoint] +// - [DecryptedMessageMediaContact] +// - [DecryptedMessageMediaDocument8] +// - [DecryptedMessageMediaAudio8] +// - [DecryptedMessageMediaVideo23] +// - [DecryptedMessageMediaAudio] +// - [DecryptedMessageMediaExternalDocument] +// - [DecryptedMessageMediaPhoto] +// - [DecryptedMessageMediaVideo] +// - [DecryptedMessageMediaDocument46] +// - [DecryptedMessageMediaVenue] +// - [DecryptedMessageMediaWebPage] +// - [DecryptedMessageMediaDocument] +// // Example: // // g, err := e2e.DecodeDecryptedMessageMedia(buf) diff --git a/tg/e2e/tl_document_attribute_gen.go b/tg/e2e/tl_document_attribute_gen.go index aed68bfee3..8e03f5f19e 100644 --- a/tg/e2e/tl_document_attribute_gen.go +++ b/tg/e2e/tl_document_attribute_gen.go @@ -1708,6 +1708,18 @@ const DocumentAttributeClassName = "DocumentAttribute" // // See https://core.telegram.org/type/DocumentAttribute for reference. // +// Constructors: +// - [DocumentAttributeImageSize] +// - [DocumentAttributeAnimated] +// - [DocumentAttributeSticker23] +// - [DocumentAttributeVideo23] +// - [DocumentAttributeAudio23] +// - [DocumentAttributeFilename] +// - [DocumentAttributeAudio45] +// - [DocumentAttributeSticker] +// - [DocumentAttributeAudio] +// - [DocumentAttributeVideo] +// // Example: // // g, err := e2e.DecodeDocumentAttribute(buf) diff --git a/tg/e2e/tl_file_location_gen.go b/tg/e2e/tl_file_location_gen.go index a1408134fe..cfe47a0c18 100644 --- a/tg/e2e/tl_file_location_gen.go +++ b/tg/e2e/tl_file_location_gen.go @@ -417,6 +417,10 @@ const FileLocationClassName = "FileLocation" // // See https://core.telegram.org/type/FileLocation for reference. // +// Constructors: +// - [FileLocationUnavailable] +// - [FileLocation] +// // Example: // // g, err := e2e.DecodeFileLocation(buf) diff --git a/tg/e2e/tl_input_sticker_set_gen.go b/tg/e2e/tl_input_sticker_set_gen.go index d9190ede23..37fb23c0ca 100644 --- a/tg/e2e/tl_input_sticker_set_gen.go +++ b/tg/e2e/tl_input_sticker_set_gen.go @@ -274,6 +274,10 @@ const InputStickerSetClassName = "InputStickerSet" // // See https://core.telegram.org/type/InputStickerSet for reference. // +// Constructors: +// - [InputStickerSetShortName] +// - [InputStickerSetEmpty] +// // Example: // // g, err := e2e.DecodeInputStickerSet(buf) diff --git a/tg/e2e/tl_message_entity_gen.go b/tg/e2e/tl_message_entity_gen.go index b6b93e7653..bce38d2de8 100644 --- a/tg/e2e/tl_message_entity_gen.go +++ b/tg/e2e/tl_message_entity_gen.go @@ -3359,6 +3359,28 @@ const MessageEntityClassName = "MessageEntity" // // See https://core.telegram.org/type/MessageEntity for reference. // +// Constructors: +// - [MessageEntityUnknown] +// - [MessageEntityMention] +// - [MessageEntityHashtag] +// - [MessageEntityBotCommand] +// - [MessageEntityURL] +// - [MessageEntityEmail] +// - [MessageEntityBold] +// - [MessageEntityItalic] +// - [MessageEntityCode] +// - [MessageEntityPre] +// - [MessageEntityTextURL] +// - [MessageEntityMentionName] +// - [MessageEntityPhone] +// - [MessageEntityCashtag] +// - [MessageEntityBankCard] +// - [MessageEntityUnderline] +// - [MessageEntityStrike] +// - [MessageEntityBlockquote] +// - [MessageEntitySpoiler] +// - [MessageEntityCustomEmoji] +// // Example: // // g, err := e2e.DecodeMessageEntity(buf) diff --git a/tg/e2e/tl_photo_size_gen.go b/tg/e2e/tl_photo_size_gen.go index e6ea881c3a..ad7805d2bf 100644 --- a/tg/e2e/tl_photo_size_gen.go +++ b/tg/e2e/tl_photo_size_gen.go @@ -638,6 +638,11 @@ const PhotoSizeClassName = "PhotoSize" // // See https://core.telegram.org/type/PhotoSize for reference. // +// Constructors: +// - [PhotoSizeEmpty] +// - [PhotoSize] +// - [PhotoCachedSize] +// // Example: // // g, err := e2e.DecodePhotoSize(buf) diff --git a/tg/e2e/tl_send_message_action_gen.go b/tg/e2e/tl_send_message_action_gen.go index ff0024c115..2aade1f40b 100644 --- a/tg/e2e/tl_send_message_action_gen.go +++ b/tg/e2e/tl_send_message_action_gen.go @@ -1263,6 +1263,20 @@ const SendMessageActionClassName = "SendMessageAction" // // See https://core.telegram.org/type/SendMessageAction for reference. // +// Constructors: +// - [SendMessageTypingAction] +// - [SendMessageCancelAction] +// - [SendMessageRecordVideoAction] +// - [SendMessageUploadVideoAction] +// - [SendMessageRecordAudioAction] +// - [SendMessageUploadAudioAction] +// - [SendMessageUploadPhotoAction] +// - [SendMessageUploadDocumentAction] +// - [SendMessageGeoLocationAction] +// - [SendMessageChooseContactAction] +// - [SendMessageRecordRoundAction] +// - [SendMessageUploadRoundAction] +// // Example: // // g, err := e2e.DecodeSendMessageAction(buf) diff --git a/tg/tl_account_email_verified_gen.go b/tg/tl_account_email_verified_gen.go index 2bf2f91195..ef4280daf8 100644 --- a/tg/tl_account_email_verified_gen.go +++ b/tg/tl_account_email_verified_gen.go @@ -343,6 +343,10 @@ const AccountEmailVerifiedClassName = "account.EmailVerified" // // See https://core.telegram.org/type/account.EmailVerified for reference. // +// Constructors: +// - [AccountEmailVerified] +// - [AccountEmailVerifiedLogin] +// // Example: // // g, err := tg.DecodeAccountEmailVerified(buf) diff --git a/tg/tl_account_emoji_statuses_gen.go b/tg/tl_account_emoji_statuses_gen.go index 91bf2f80d6..a7e669241f 100644 --- a/tg/tl_account_emoji_statuses_gen.go +++ b/tg/tl_account_emoji_statuses_gen.go @@ -337,6 +337,10 @@ const AccountEmojiStatusesClassName = "account.EmojiStatuses" // // See https://core.telegram.org/type/account.EmojiStatuses for reference. // +// Constructors: +// - [AccountEmojiStatusesNotModified] +// - [AccountEmojiStatuses] +// // Example: // // g, err := tg.DecodeAccountEmojiStatuses(buf) diff --git a/tg/tl_account_reset_password_result_gen.go b/tg/tl_account_reset_password_result_gen.go index edd02387d7..6922832e4f 100644 --- a/tg/tl_account_reset_password_result_gen.go +++ b/tg/tl_account_reset_password_result_gen.go @@ -412,6 +412,11 @@ const AccountResetPasswordResultClassName = "account.ResetPasswordResult" // // See https://core.telegram.org/type/account.ResetPasswordResult for reference. // +// Constructors: +// - [AccountResetPasswordFailedWait] +// - [AccountResetPasswordRequestedWait] +// - [AccountResetPasswordOk] +// // Example: // // g, err := tg.DecodeAccountResetPasswordResult(buf) diff --git a/tg/tl_account_saved_ringtone_gen.go b/tg/tl_account_saved_ringtone_gen.go index 36fc8bbee7..a610621513 100644 --- a/tg/tl_account_saved_ringtone_gen.go +++ b/tg/tl_account_saved_ringtone_gen.go @@ -285,6 +285,10 @@ const AccountSavedRingtoneClassName = "account.SavedRingtone" // // See https://core.telegram.org/type/account.SavedRingtone for reference. // +// Constructors: +// - [AccountSavedRingtone] +// - [AccountSavedRingtoneConverted] +// // Example: // // g, err := tg.DecodeAccountSavedRingtone(buf) diff --git a/tg/tl_account_saved_ringtones_gen.go b/tg/tl_account_saved_ringtones_gen.go index 5545718440..b59e917bc7 100644 --- a/tg/tl_account_saved_ringtones_gen.go +++ b/tg/tl_account_saved_ringtones_gen.go @@ -328,6 +328,10 @@ const AccountSavedRingtonesClassName = "account.SavedRingtones" // // See https://core.telegram.org/type/account.SavedRingtones for reference. // +// Constructors: +// - [AccountSavedRingtonesNotModified] +// - [AccountSavedRingtones] +// // Example: // // g, err := tg.DecodeAccountSavedRingtones(buf) diff --git a/tg/tl_account_themes_gen.go b/tg/tl_account_themes_gen.go index 1d448da04b..94e58fb6f2 100644 --- a/tg/tl_account_themes_gen.go +++ b/tg/tl_account_themes_gen.go @@ -320,6 +320,10 @@ const AccountThemesClassName = "account.Themes" // // See https://core.telegram.org/type/account.Themes for reference. // +// Constructors: +// - [AccountThemesNotModified] +// - [AccountThemes] +// // Example: // // g, err := tg.DecodeAccountThemes(buf) diff --git a/tg/tl_account_wall_papers_gen.go b/tg/tl_account_wall_papers_gen.go index 6aad68af52..321824f498 100644 --- a/tg/tl_account_wall_papers_gen.go +++ b/tg/tl_account_wall_papers_gen.go @@ -337,6 +337,10 @@ const AccountWallPapersClassName = "account.WallPapers" // // See https://core.telegram.org/type/account.WallPapers for reference. // +// Constructors: +// - [AccountWallPapersNotModified] +// - [AccountWallPapers] +// // Example: // // g, err := tg.DecodeAccountWallPapers(buf) diff --git a/tg/tl_attach_menu_bots_gen.go b/tg/tl_attach_menu_bots_gen.go index aab9129044..df9d91c2e1 100644 --- a/tg/tl_attach_menu_bots_gen.go +++ b/tg/tl_attach_menu_bots_gen.go @@ -376,6 +376,10 @@ const AttachMenuBotsClassName = "AttachMenuBots" // // See https://core.telegram.org/type/AttachMenuBots for reference. // +// Constructors: +// - [AttachMenuBotsNotModified] +// - [AttachMenuBots] +// // Example: // // g, err := tg.DecodeAttachMenuBots(buf) diff --git a/tg/tl_attach_menu_peer_type_gen.go b/tg/tl_attach_menu_peer_type_gen.go index e3717f6039..8bffc3a2a5 100644 --- a/tg/tl_attach_menu_peer_type_gen.go +++ b/tg/tl_attach_menu_peer_type_gen.go @@ -553,6 +553,13 @@ const AttachMenuPeerTypeClassName = "AttachMenuPeerType" // // See https://core.telegram.org/type/AttachMenuPeerType for reference. // +// Constructors: +// - [AttachMenuPeerTypeSameBotPM] +// - [AttachMenuPeerTypeBotPM] +// - [AttachMenuPeerTypePM] +// - [AttachMenuPeerTypeChat] +// - [AttachMenuPeerTypeBroadcast] +// // Example: // // g, err := tg.DecodeAttachMenuPeerType(buf) diff --git a/tg/tl_auth_authorization_gen.go b/tg/tl_auth_authorization_gen.go index 0c5963d966..e6ba4754da 100644 --- a/tg/tl_auth_authorization_gen.go +++ b/tg/tl_auth_authorization_gen.go @@ -568,6 +568,10 @@ const AuthAuthorizationClassName = "auth.Authorization" // // See https://core.telegram.org/type/auth.Authorization for reference. // +// Constructors: +// - [AuthAuthorization] +// - [AuthAuthorizationSignUpRequired] +// // Example: // // g, err := tg.DecodeAuthAuthorization(buf) diff --git a/tg/tl_auth_code_type_gen.go b/tg/tl_auth_code_type_gen.go index 3360636bd6..dc01dae6dc 100644 --- a/tg/tl_auth_code_type_gen.go +++ b/tg/tl_auth_code_type_gen.go @@ -554,6 +554,13 @@ const AuthCodeTypeClassName = "auth.CodeType" // // See https://core.telegram.org/type/auth.CodeType for reference. // +// Constructors: +// - [AuthCodeTypeSMS] +// - [AuthCodeTypeCall] +// - [AuthCodeTypeFlashCall] +// - [AuthCodeTypeMissedCall] +// - [AuthCodeTypeFragmentSMS] +// // Example: // // g, err := tg.DecodeAuthCodeType(buf) diff --git a/tg/tl_auth_login_token_gen.go b/tg/tl_auth_login_token_gen.go index 1d971ea8a5..c02214391f 100644 --- a/tg/tl_auth_login_token_gen.go +++ b/tg/tl_auth_login_token_gen.go @@ -505,6 +505,11 @@ const AuthLoginTokenClassName = "auth.LoginToken" // // See https://core.telegram.org/type/auth.LoginToken for reference. // +// Constructors: +// - [AuthLoginToken] +// - [AuthLoginTokenMigrateTo] +// - [AuthLoginTokenSuccess] +// // Example: // // g, err := tg.DecodeAuthLoginToken(buf) diff --git a/tg/tl_auth_sent_code_gen.go b/tg/tl_auth_sent_code_gen.go index 36601bc76b..644324d3ab 100644 --- a/tg/tl_auth_sent_code_gen.go +++ b/tg/tl_auth_sent_code_gen.go @@ -477,6 +477,10 @@ const AuthSentCodeClassName = "auth.SentCode" // // See https://core.telegram.org/type/auth.SentCode for reference. // +// Constructors: +// - [AuthSentCode] +// - [AuthSentCodeSuccess] +// // Example: // // g, err := tg.DecodeAuthSentCode(buf) diff --git a/tg/tl_auth_sent_code_type_gen.go b/tg/tl_auth_sent_code_type_gen.go index ad9b6fa13a..6f78bff227 100644 --- a/tg/tl_auth_sent_code_type_gen.go +++ b/tg/tl_auth_sent_code_type_gen.go @@ -2246,6 +2246,19 @@ const AuthSentCodeTypeClassName = "auth.SentCodeType" // // See https://core.telegram.org/type/auth.SentCodeType for reference. // +// Constructors: +// - [AuthSentCodeTypeApp] +// - [AuthSentCodeTypeSMS] +// - [AuthSentCodeTypeCall] +// - [AuthSentCodeTypeFlashCall] +// - [AuthSentCodeTypeMissedCall] +// - [AuthSentCodeTypeEmailCode] +// - [AuthSentCodeTypeSetUpEmailRequired] +// - [AuthSentCodeTypeFragmentSMS] +// - [AuthSentCodeTypeFirebaseSMS] +// - [AuthSentCodeTypeSMSWord] +// - [AuthSentCodeTypeSMSPhrase] +// // Example: // // g, err := tg.DecodeAuthSentCodeType(buf) diff --git a/tg/tl_base_theme_gen.go b/tg/tl_base_theme_gen.go index 6e5967b2a2..97f783953a 100644 --- a/tg/tl_base_theme_gen.go +++ b/tg/tl_base_theme_gen.go @@ -548,6 +548,13 @@ const BaseThemeClassName = "BaseTheme" // // See https://core.telegram.org/type/BaseTheme for reference. // +// Constructors: +// - [BaseThemeClassic] +// - [BaseThemeDay] +// - [BaseThemeNight] +// - [BaseThemeTinted] +// - [BaseThemeArctic] +// // Example: // // g, err := tg.DecodeBaseTheme(buf) diff --git a/tg/tl_bool_gen.go b/tg/tl_bool_gen.go index b64ebfb829..5712b08c8a 100644 --- a/tg/tl_bool_gen.go +++ b/tg/tl_bool_gen.go @@ -242,6 +242,10 @@ const BoolClassName = "Bool" // // See https://core.telegram.org/type/Bool for reference. // +// Constructors: +// - [BoolFalse] +// - [BoolTrue] +// // Example: // // g, err := tg.DecodeBool(buf) diff --git a/tg/tl_bot_app_gen.go b/tg/tl_bot_app_gen.go index 8a1c6fbddb..8cec9c85ef 100644 --- a/tg/tl_bot_app_gen.go +++ b/tg/tl_bot_app_gen.go @@ -526,6 +526,10 @@ const BotAppClassName = "BotApp" // // See https://core.telegram.org/type/BotApp for reference. // +// Constructors: +// - [BotAppNotModified] +// - [BotApp] +// // Example: // // g, err := tg.DecodeBotApp(buf) diff --git a/tg/tl_bot_command_scope_gen.go b/tg/tl_bot_command_scope_gen.go index aaf5a0c1c1..acce04e53d 100644 --- a/tg/tl_bot_command_scope_gen.go +++ b/tg/tl_bot_command_scope_gen.go @@ -913,6 +913,15 @@ const BotCommandScopeClassName = "BotCommandScope" // // See https://core.telegram.org/type/BotCommandScope for reference. // +// Constructors: +// - [BotCommandScopeDefault] +// - [BotCommandScopeUsers] +// - [BotCommandScopeChats] +// - [BotCommandScopeChatAdmins] +// - [BotCommandScopePeer] +// - [BotCommandScopePeerAdmins] +// - [BotCommandScopePeerUser] +// // Example: // // g, err := tg.DecodeBotCommandScope(buf) diff --git a/tg/tl_bot_inline_message_gen.go b/tg/tl_bot_inline_message_gen.go index 2fefcaa0ed..cf95bf9d23 100644 --- a/tg/tl_bot_inline_message_gen.go +++ b/tg/tl_bot_inline_message_gen.go @@ -2643,6 +2643,15 @@ const BotInlineMessageClassName = "BotInlineMessage" // // See https://core.telegram.org/type/BotInlineMessage for reference. // +// Constructors: +// - [BotInlineMessageMediaAuto] +// - [BotInlineMessageText] +// - [BotInlineMessageMediaGeo] +// - [BotInlineMessageMediaVenue] +// - [BotInlineMessageMediaContact] +// - [BotInlineMessageMediaInvoice] +// - [BotInlineMessageMediaWebPage] +// // Example: // // g, err := tg.DecodeBotInlineMessage(buf) diff --git a/tg/tl_bot_inline_result_gen.go b/tg/tl_bot_inline_result_gen.go index be85be4ae4..86b679641b 100644 --- a/tg/tl_bot_inline_result_gen.go +++ b/tg/tl_bot_inline_result_gen.go @@ -930,6 +930,10 @@ const BotInlineResultClassName = "BotInlineResult" // // See https://core.telegram.org/type/BotInlineResult for reference. // +// Constructors: +// - [BotInlineResult] +// - [BotInlineMediaResult] +// // Example: // // g, err := tg.DecodeBotInlineResult(buf) diff --git a/tg/tl_bot_menu_button_gen.go b/tg/tl_bot_menu_button_gen.go index ee66190106..b84bc3fdca 100644 --- a/tg/tl_bot_menu_button_gen.go +++ b/tg/tl_bot_menu_button_gen.go @@ -418,6 +418,11 @@ const BotMenuButtonClassName = "BotMenuButton" // // See https://core.telegram.org/type/BotMenuButton for reference. // +// Constructors: +// - [BotMenuButtonDefault] +// - [BotMenuButtonCommands] +// - [BotMenuButton] +// // Example: // // g, err := tg.DecodeBotMenuButton(buf) diff --git a/tg/tl_broadcast_revenue_transaction_gen.go b/tg/tl_broadcast_revenue_transaction_gen.go index 5e5e054ff6..5fa1c19239 100644 --- a/tg/tl_broadcast_revenue_transaction_gen.go +++ b/tg/tl_broadcast_revenue_transaction_gen.go @@ -807,6 +807,11 @@ const BroadcastRevenueTransactionClassName = "BroadcastRevenueTransaction" // // See https://core.telegram.org/type/BroadcastRevenueTransaction for reference. // +// Constructors: +// - [BroadcastRevenueTransactionProceeds] +// - [BroadcastRevenueTransactionWithdrawal] +// - [BroadcastRevenueTransactionRefund] +// // Example: // // g, err := tg.DecodeBroadcastRevenueTransaction(buf) diff --git a/tg/tl_business_away_message_schedule_gen.go b/tg/tl_business_away_message_schedule_gen.go index ae514171fa..8224e02d8c 100644 --- a/tg/tl_business_away_message_schedule_gen.go +++ b/tg/tl_business_away_message_schedule_gen.go @@ -418,6 +418,11 @@ const BusinessAwayMessageScheduleClassName = "BusinessAwayMessageSchedule" // // See https://core.telegram.org/type/BusinessAwayMessageSchedule for reference. // +// Constructors: +// - [BusinessAwayMessageScheduleAlways] +// - [BusinessAwayMessageScheduleOutsideWorkHours] +// - [BusinessAwayMessageScheduleCustom] +// // Example: // // g, err := tg.DecodeBusinessAwayMessageSchedule(buf) diff --git a/tg/tl_channel_admin_log_event_action_gen.go b/tg/tl_channel_admin_log_event_action_gen.go index c9a59d3357..fde86bebe2 100644 --- a/tg/tl_channel_admin_log_event_action_gen.go +++ b/tg/tl_channel_admin_log_event_action_gen.go @@ -7893,6 +7893,58 @@ const ChannelAdminLogEventActionClassName = "ChannelAdminLogEventAction" // // See https://core.telegram.org/type/ChannelAdminLogEventAction for reference. // +// Constructors: +// - [ChannelAdminLogEventActionChangeTitle] +// - [ChannelAdminLogEventActionChangeAbout] +// - [ChannelAdminLogEventActionChangeUsername] +// - [ChannelAdminLogEventActionChangePhoto] +// - [ChannelAdminLogEventActionToggleInvites] +// - [ChannelAdminLogEventActionToggleSignatures] +// - [ChannelAdminLogEventActionUpdatePinned] +// - [ChannelAdminLogEventActionEditMessage] +// - [ChannelAdminLogEventActionDeleteMessage] +// - [ChannelAdminLogEventActionParticipantJoin] +// - [ChannelAdminLogEventActionParticipantLeave] +// - [ChannelAdminLogEventActionParticipantInvite] +// - [ChannelAdminLogEventActionParticipantToggleBan] +// - [ChannelAdminLogEventActionParticipantToggleAdmin] +// - [ChannelAdminLogEventActionChangeStickerSet] +// - [ChannelAdminLogEventActionTogglePreHistoryHidden] +// - [ChannelAdminLogEventActionDefaultBannedRights] +// - [ChannelAdminLogEventActionStopPoll] +// - [ChannelAdminLogEventActionChangeLinkedChat] +// - [ChannelAdminLogEventActionChangeLocation] +// - [ChannelAdminLogEventActionToggleSlowMode] +// - [ChannelAdminLogEventActionStartGroupCall] +// - [ChannelAdminLogEventActionDiscardGroupCall] +// - [ChannelAdminLogEventActionParticipantMute] +// - [ChannelAdminLogEventActionParticipantUnmute] +// - [ChannelAdminLogEventActionToggleGroupCallSetting] +// - [ChannelAdminLogEventActionParticipantJoinByInvite] +// - [ChannelAdminLogEventActionExportedInviteDelete] +// - [ChannelAdminLogEventActionExportedInviteRevoke] +// - [ChannelAdminLogEventActionExportedInviteEdit] +// - [ChannelAdminLogEventActionParticipantVolume] +// - [ChannelAdminLogEventActionChangeHistoryTTL] +// - [ChannelAdminLogEventActionParticipantJoinByRequest] +// - [ChannelAdminLogEventActionToggleNoForwards] +// - [ChannelAdminLogEventActionSendMessage] +// - [ChannelAdminLogEventActionChangeAvailableReactions] +// - [ChannelAdminLogEventActionChangeUsernames] +// - [ChannelAdminLogEventActionToggleForum] +// - [ChannelAdminLogEventActionCreateTopic] +// - [ChannelAdminLogEventActionEditTopic] +// - [ChannelAdminLogEventActionDeleteTopic] +// - [ChannelAdminLogEventActionPinTopic] +// - [ChannelAdminLogEventActionToggleAntiSpam] +// - [ChannelAdminLogEventActionChangePeerColor] +// - [ChannelAdminLogEventActionChangeProfilePeerColor] +// - [ChannelAdminLogEventActionChangeWallpaper] +// - [ChannelAdminLogEventActionChangeEmojiStatus] +// - [ChannelAdminLogEventActionChangeEmojiStickerSet] +// - [ChannelAdminLogEventActionToggleSignatureProfiles] +// - [ChannelAdminLogEventActionParticipantSubExtend] +// // Example: // // g, err := tg.DecodeChannelAdminLogEventAction(buf) diff --git a/tg/tl_channel_location_gen.go b/tg/tl_channel_location_gen.go index 1f29bdc2a2..e19c4f761a 100644 --- a/tg/tl_channel_location_gen.go +++ b/tg/tl_channel_location_gen.go @@ -307,6 +307,10 @@ const ChannelLocationClassName = "ChannelLocation" // // See https://core.telegram.org/type/ChannelLocation for reference. // +// Constructors: +// - [ChannelLocationEmpty] +// - [ChannelLocation] +// // Example: // // g, err := tg.DecodeChannelLocation(buf) diff --git a/tg/tl_channel_messages_filter_gen.go b/tg/tl_channel_messages_filter_gen.go index f33203e48c..818b31d65a 100644 --- a/tg/tl_channel_messages_filter_gen.go +++ b/tg/tl_channel_messages_filter_gen.go @@ -346,6 +346,10 @@ const ChannelMessagesFilterClassName = "ChannelMessagesFilter" // // See https://core.telegram.org/type/ChannelMessagesFilter for reference. // +// Constructors: +// - [ChannelMessagesFilterEmpty] +// - [ChannelMessagesFilter] +// // Example: // // g, err := tg.DecodeChannelMessagesFilter(buf) diff --git a/tg/tl_channel_participant_gen.go b/tg/tl_channel_participant_gen.go index d3829dbee2..1cf4fed051 100644 --- a/tg/tl_channel_participant_gen.go +++ b/tg/tl_channel_participant_gen.go @@ -1628,6 +1628,14 @@ const ChannelParticipantClassName = "ChannelParticipant" // // See https://core.telegram.org/type/ChannelParticipant for reference. // +// Constructors: +// - [ChannelParticipant] +// - [ChannelParticipantSelf] +// - [ChannelParticipantCreator] +// - [ChannelParticipantAdmin] +// - [ChannelParticipantBanned] +// - [ChannelParticipantLeft] +// // Example: // // g, err := tg.DecodeChannelParticipant(buf) diff --git a/tg/tl_channel_participants_filter_gen.go b/tg/tl_channel_participants_filter_gen.go index 6d67bcdfd7..cb8709fd72 100644 --- a/tg/tl_channel_participants_filter_gen.go +++ b/tg/tl_channel_participants_filter_gen.go @@ -1119,6 +1119,16 @@ const ChannelParticipantsFilterClassName = "ChannelParticipantsFilter" // // See https://core.telegram.org/type/ChannelParticipantsFilter for reference. // +// Constructors: +// - [ChannelParticipantsRecent] +// - [ChannelParticipantsAdmins] +// - [ChannelParticipantsKicked] +// - [ChannelParticipantsBots] +// - [ChannelParticipantsBanned] +// - [ChannelParticipantsSearch] +// - [ChannelParticipantsContacts] +// - [ChannelParticipantsMentions] +// // Example: // // g, err := tg.DecodeChannelParticipantsFilter(buf) diff --git a/tg/tl_channels_channel_participants_gen.go b/tg/tl_channels_channel_participants_gen.go index 63bc7dd84e..47bc348e34 100644 --- a/tg/tl_channels_channel_participants_gen.go +++ b/tg/tl_channels_channel_participants_gen.go @@ -427,6 +427,10 @@ const ChannelsChannelParticipantsClassName = "channels.ChannelParticipants" // // See https://core.telegram.org/type/channels.ChannelParticipants for reference. // +// Constructors: +// - [ChannelsChannelParticipants] +// - [ChannelsChannelParticipantsNotModified] +// // Example: // // g, err := tg.DecodeChannelsChannelParticipants(buf) diff --git a/tg/tl_channels_sponsored_message_report_result_gen.go b/tg/tl_channels_sponsored_message_report_result_gen.go index 74ffa14249..dc94131e70 100644 --- a/tg/tl_channels_sponsored_message_report_result_gen.go +++ b/tg/tl_channels_sponsored_message_report_result_gen.go @@ -430,6 +430,11 @@ const ChannelsSponsoredMessageReportResultClassName = "channels.SponsoredMessage // // See https://core.telegram.org/type/channels.SponsoredMessageReportResult for reference. // +// Constructors: +// - [ChannelsSponsoredMessageReportResultChooseOption] +// - [ChannelsSponsoredMessageReportResultAdsHidden] +// - [ChannelsSponsoredMessageReportResultReported] +// // Example: // // g, err := tg.DecodeChannelsSponsoredMessageReportResult(buf) diff --git a/tg/tl_chat_full_gen.go b/tg/tl_chat_full_gen.go index 19e3b62432..dd98ddf1b3 100644 --- a/tg/tl_chat_full_gen.go +++ b/tg/tl_chat_full_gen.go @@ -4004,6 +4004,10 @@ const ChatFullClassName = "ChatFull" // // See https://core.telegram.org/type/ChatFull for reference. // +// Constructors: +// - [ChatFull] +// - [ChannelFull] +// // Example: // // g, err := tg.DecodeChatFull(buf) diff --git a/tg/tl_chat_gen.go b/tg/tl_chat_gen.go index b279f6e243..37f39ca1be 100644 --- a/tg/tl_chat_gen.go +++ b/tg/tl_chat_gen.go @@ -3334,6 +3334,13 @@ const ChatClassName = "Chat" // // See https://core.telegram.org/type/Chat for reference. // +// Constructors: +// - [ChatEmpty] +// - [Chat] +// - [ChatForbidden] +// - [Channel] +// - [ChannelForbidden] +// // Example: // // g, err := tg.DecodeChat(buf) diff --git a/tg/tl_chat_invite_gen.go b/tg/tl_chat_invite_gen.go index b15a1b3a1a..4b922b8303 100644 --- a/tg/tl_chat_invite_gen.go +++ b/tg/tl_chat_invite_gen.go @@ -1202,6 +1202,11 @@ const ChatInviteClassName = "ChatInvite" // // See https://core.telegram.org/type/ChatInvite for reference. // +// Constructors: +// - [ChatInviteAlready] +// - [ChatInvite] +// - [ChatInvitePeek] +// // Example: // // g, err := tg.DecodeChatInvite(buf) diff --git a/tg/tl_chat_participant_gen.go b/tg/tl_chat_participant_gen.go index ab2bc97e52..d443bcdca5 100644 --- a/tg/tl_chat_participant_gen.go +++ b/tg/tl_chat_participant_gen.go @@ -551,6 +551,11 @@ const ChatParticipantClassName = "ChatParticipant" // // See https://core.telegram.org/type/ChatParticipant for reference. // +// Constructors: +// - [ChatParticipant] +// - [ChatParticipantCreator] +// - [ChatParticipantAdmin] +// // Example: // // g, err := tg.DecodeChatParticipant(buf) diff --git a/tg/tl_chat_participants_gen.go b/tg/tl_chat_participants_gen.go index ee1ffe2eb6..6692f08572 100644 --- a/tg/tl_chat_participants_gen.go +++ b/tg/tl_chat_participants_gen.go @@ -459,6 +459,10 @@ const ChatParticipantsClassName = "ChatParticipants" // // See https://core.telegram.org/type/ChatParticipants for reference. // +// Constructors: +// - [ChatParticipantsForbidden] +// - [ChatParticipants] +// // Example: // // g, err := tg.DecodeChatParticipants(buf) diff --git a/tg/tl_chat_photo_gen.go b/tg/tl_chat_photo_gen.go index a9c93ffa18..c4a97be44d 100644 --- a/tg/tl_chat_photo_gen.go +++ b/tg/tl_chat_photo_gen.go @@ -409,6 +409,10 @@ const ChatPhotoClassName = "ChatPhoto" // // See https://core.telegram.org/type/ChatPhoto for reference. // +// Constructors: +// - [ChatPhotoEmpty] +// - [ChatPhoto] +// // Example: // // g, err := tg.DecodeChatPhoto(buf) diff --git a/tg/tl_chat_reactions_gen.go b/tg/tl_chat_reactions_gen.go index 14b5f0f558..1796cfcc2d 100644 --- a/tg/tl_chat_reactions_gen.go +++ b/tg/tl_chat_reactions_gen.go @@ -466,6 +466,11 @@ const ChatReactionsClassName = "ChatReactions" // // See https://core.telegram.org/type/ChatReactions for reference. // +// Constructors: +// - [ChatReactionsNone] +// - [ChatReactionsAll] +// - [ChatReactionsSome] +// // Example: // // g, err := tg.DecodeChatReactions(buf) diff --git a/tg/tl_chatlists_chatlist_invite_gen.go b/tg/tl_chatlists_chatlist_invite_gen.go index 4ad9062b9f..122ad3afe1 100644 --- a/tg/tl_chatlists_chatlist_invite_gen.go +++ b/tg/tl_chatlists_chatlist_invite_gen.go @@ -768,6 +768,10 @@ const ChatlistsChatlistInviteClassName = "chatlists.ChatlistInvite" // // See https://core.telegram.org/type/chatlists.ChatlistInvite for reference. // +// Constructors: +// - [ChatlistsChatlistInviteAlready] +// - [ChatlistsChatlistInvite] +// // Example: // // g, err := tg.DecodeChatlistsChatlistInvite(buf) diff --git a/tg/tl_contacts_blocked_gen.go b/tg/tl_contacts_blocked_gen.go index be6b7cf07e..d5142e2556 100644 --- a/tg/tl_contacts_blocked_gen.go +++ b/tg/tl_contacts_blocked_gen.go @@ -565,6 +565,10 @@ const ContactsBlockedClassName = "contacts.Blocked" // // See https://core.telegram.org/type/contacts.Blocked for reference. // +// Constructors: +// - [ContactsBlocked] +// - [ContactsBlockedSlice] +// // Example: // // g, err := tg.DecodeContactsBlocked(buf) diff --git a/tg/tl_contacts_contacts_gen.go b/tg/tl_contacts_contacts_gen.go index 880b435280..36baa9a978 100644 --- a/tg/tl_contacts_contacts_gen.go +++ b/tg/tl_contacts_contacts_gen.go @@ -367,6 +367,10 @@ const ContactsContactsClassName = "contacts.Contacts" // // See https://core.telegram.org/type/contacts.Contacts for reference. // +// Constructors: +// - [ContactsContactsNotModified] +// - [ContactsContacts] +// // Example: // // g, err := tg.DecodeContactsContacts(buf) diff --git a/tg/tl_contacts_top_peers_gen.go b/tg/tl_contacts_top_peers_gen.go index 2d8d1d98d7..39a76e4c2d 100644 --- a/tg/tl_contacts_top_peers_gen.go +++ b/tg/tl_contacts_top_peers_gen.go @@ -492,6 +492,11 @@ const ContactsTopPeersClassName = "contacts.TopPeers" // // See https://core.telegram.org/type/contacts.TopPeers for reference. // +// Constructors: +// - [ContactsTopPeersNotModified] +// - [ContactsTopPeers] +// - [ContactsTopPeersDisabled] +// // Example: // // g, err := tg.DecodeContactsTopPeers(buf) diff --git a/tg/tl_dialog_filter_gen.go b/tg/tl_dialog_filter_gen.go index d864c78177..f71fff2927 100644 --- a/tg/tl_dialog_filter_gen.go +++ b/tg/tl_dialog_filter_gen.go @@ -1391,6 +1391,11 @@ const DialogFilterClassName = "DialogFilter" // // See https://core.telegram.org/type/DialogFilter for reference. // +// Constructors: +// - [DialogFilter] +// - [DialogFilterDefault] +// - [DialogFilterChatlist] +// // Example: // // g, err := tg.DecodeDialogFilter(buf) diff --git a/tg/tl_dialog_gen.go b/tg/tl_dialog_gen.go index c1a038e583..ef6d75624c 100644 --- a/tg/tl_dialog_gen.go +++ b/tg/tl_dialog_gen.go @@ -1068,6 +1068,10 @@ const DialogClassName = "Dialog" // // See https://core.telegram.org/type/Dialog for reference. // +// Constructors: +// - [Dialog] +// - [DialogFolder] +// // Example: // // g, err := tg.DecodeDialog(buf) diff --git a/tg/tl_dialog_peer_gen.go b/tg/tl_dialog_peer_gen.go index 8929e5b648..668a7b6706 100644 --- a/tg/tl_dialog_peer_gen.go +++ b/tg/tl_dialog_peer_gen.go @@ -319,6 +319,10 @@ const DialogPeerClassName = "DialogPeer" // // See https://core.telegram.org/type/DialogPeer for reference. // +// Constructors: +// - [DialogPeer] +// - [DialogPeerFolder] +// // Example: // // g, err := tg.DecodeDialogPeer(buf) diff --git a/tg/tl_document_attribute_gen.go b/tg/tl_document_attribute_gen.go index eb084fe180..63e78e6a2e 100644 --- a/tg/tl_document_attribute_gen.go +++ b/tg/tl_document_attribute_gen.go @@ -1873,6 +1873,16 @@ const DocumentAttributeClassName = "DocumentAttribute" // // See https://core.telegram.org/type/DocumentAttribute for reference. // +// Constructors: +// - [DocumentAttributeImageSize] +// - [DocumentAttributeAnimated] +// - [DocumentAttributeSticker] +// - [DocumentAttributeVideo] +// - [DocumentAttributeAudio] +// - [DocumentAttributeFilename] +// - [DocumentAttributeHasStickers] +// - [DocumentAttributeCustomEmoji] +// // Example: // // g, err := tg.DecodeDocumentAttribute(buf) diff --git a/tg/tl_document_gen.go b/tg/tl_document_gen.go index 77d77ee769..39166d622c 100644 --- a/tg/tl_document_gen.go +++ b/tg/tl_document_gen.go @@ -692,6 +692,10 @@ const DocumentClassName = "Document" // // See https://core.telegram.org/type/Document for reference. // +// Constructors: +// - [DocumentEmpty] +// - [Document] +// // Example: // // g, err := tg.DecodeDocument(buf) diff --git a/tg/tl_draft_message_gen.go b/tg/tl_draft_message_gen.go index a652469376..9aebe6faa5 100644 --- a/tg/tl_draft_message_gen.go +++ b/tg/tl_draft_message_gen.go @@ -707,6 +707,10 @@ const DraftMessageClassName = "DraftMessage" // // See https://core.telegram.org/type/DraftMessage for reference. // +// Constructors: +// - [DraftMessageEmpty] +// - [DraftMessage] +// // Example: // // g, err := tg.DecodeDraftMessage(buf) diff --git a/tg/tl_email_verification_gen.go b/tg/tl_email_verification_gen.go index 4bc213df69..dd2086c032 100644 --- a/tg/tl_email_verification_gen.go +++ b/tg/tl_email_verification_gen.go @@ -443,6 +443,11 @@ const EmailVerificationClassName = "EmailVerification" // // See https://core.telegram.org/type/EmailVerification for reference. // +// Constructors: +// - [EmailVerificationCode] +// - [EmailVerificationGoogle] +// - [EmailVerificationApple] +// // Example: // // g, err := tg.DecodeEmailVerification(buf) diff --git a/tg/tl_email_verify_purpose_gen.go b/tg/tl_email_verify_purpose_gen.go index 669f941ced..92c7aba629 100644 --- a/tg/tl_email_verify_purpose_gen.go +++ b/tg/tl_email_verify_purpose_gen.go @@ -410,6 +410,11 @@ const EmailVerifyPurposeClassName = "EmailVerifyPurpose" // // See https://core.telegram.org/type/EmailVerifyPurpose for reference. // +// Constructors: +// - [EmailVerifyPurposeLoginSetup] +// - [EmailVerifyPurposeLoginChange] +// - [EmailVerifyPurposePassport] +// // Example: // // g, err := tg.DecodeEmailVerifyPurpose(buf) diff --git a/tg/tl_emoji_group_gen.go b/tg/tl_emoji_group_gen.go index 94c43e2e5f..3ba1ad926c 100644 --- a/tg/tl_emoji_group_gen.go +++ b/tg/tl_emoji_group_gen.go @@ -622,6 +622,11 @@ const EmojiGroupClassName = "EmojiGroup" // // See https://core.telegram.org/type/EmojiGroup for reference. // +// Constructors: +// - [EmojiGroup] +// - [EmojiGroupGreeting] +// - [EmojiGroupPremium] +// // Example: // // g, err := tg.DecodeEmojiGroup(buf) diff --git a/tg/tl_emoji_keyword_gen.go b/tg/tl_emoji_keyword_gen.go index dc50a53835..f6963646d9 100644 --- a/tg/tl_emoji_keyword_gen.go +++ b/tg/tl_emoji_keyword_gen.go @@ -388,6 +388,10 @@ const EmojiKeywordClassName = "EmojiKeyword" // // See https://core.telegram.org/type/EmojiKeyword for reference. // +// Constructors: +// - [EmojiKeyword] +// - [EmojiKeywordDeleted] +// // Example: // // g, err := tg.DecodeEmojiKeyword(buf) diff --git a/tg/tl_emoji_list_gen.go b/tg/tl_emoji_list_gen.go index 58310b08f0..7e0aeb6be3 100644 --- a/tg/tl_emoji_list_gen.go +++ b/tg/tl_emoji_list_gen.go @@ -324,6 +324,10 @@ const EmojiListClassName = "EmojiList" // // See https://core.telegram.org/type/EmojiList for reference. // +// Constructors: +// - [EmojiListNotModified] +// - [EmojiList] +// // Example: // // g, err := tg.DecodeEmojiList(buf) diff --git a/tg/tl_emoji_status_gen.go b/tg/tl_emoji_status_gen.go index a330faf905..a70c41676e 100644 --- a/tg/tl_emoji_status_gen.go +++ b/tg/tl_emoji_status_gen.go @@ -963,6 +963,12 @@ const EmojiStatusClassName = "EmojiStatus" // // See https://core.telegram.org/type/EmojiStatus for reference. // +// Constructors: +// - [EmojiStatusEmpty] +// - [EmojiStatus] +// - [EmojiStatusCollectible] +// - [InputEmojiStatusCollectible] +// // Example: // // g, err := tg.DecodeEmojiStatus(buf) diff --git a/tg/tl_encrypted_chat_gen.go b/tg/tl_encrypted_chat_gen.go index b786437c7e..1064a0a185 100644 --- a/tg/tl_encrypted_chat_gen.go +++ b/tg/tl_encrypted_chat_gen.go @@ -1253,6 +1253,13 @@ const EncryptedChatClassName = "EncryptedChat" // // See https://core.telegram.org/type/EncryptedChat for reference. // +// Constructors: +// - [EncryptedChatEmpty] +// - [EncryptedChatWaiting] +// - [EncryptedChatRequested] +// - [EncryptedChat] +// - [EncryptedChatDiscarded] +// // Example: // // g, err := tg.DecodeEncryptedChat(buf) diff --git a/tg/tl_encrypted_file_gen.go b/tg/tl_encrypted_file_gen.go index 00c5613450..871ea52ca8 100644 --- a/tg/tl_encrypted_file_gen.go +++ b/tg/tl_encrypted_file_gen.go @@ -383,6 +383,10 @@ const EncryptedFileClassName = "EncryptedFile" // // See https://core.telegram.org/type/EncryptedFile for reference. // +// Constructors: +// - [EncryptedFileEmpty] +// - [EncryptedFile] +// // Example: // // g, err := tg.DecodeEncryptedFile(buf) diff --git a/tg/tl_encrypted_message_gen.go b/tg/tl_encrypted_message_gen.go index 58e5045bb2..1a00b4ed11 100644 --- a/tg/tl_encrypted_message_gen.go +++ b/tg/tl_encrypted_message_gen.go @@ -510,6 +510,10 @@ const EncryptedMessageClassName = "EncryptedMessage" // // See https://core.telegram.org/type/EncryptedMessage for reference. // +// Constructors: +// - [EncryptedMessage] +// - [EncryptedMessageService] +// // Example: // // g, err := tg.DecodeEncryptedMessage(buf) diff --git a/tg/tl_exported_chat_invite_gen.go b/tg/tl_exported_chat_invite_gen.go index 243b09870c..fe5ace13b5 100644 --- a/tg/tl_exported_chat_invite_gen.go +++ b/tg/tl_exported_chat_invite_gen.go @@ -853,6 +853,10 @@ const ExportedChatInviteClassName = "ExportedChatInvite" // // See https://core.telegram.org/type/ExportedChatInvite for reference. // +// Constructors: +// - [ChatInviteExported] +// - [ChatInvitePublicJoinRequests] +// // Example: // // g, err := tg.DecodeExportedChatInvite(buf) diff --git a/tg/tl_forum_topic_gen.go b/tg/tl_forum_topic_gen.go index 15d9155424..f19b173861 100644 --- a/tg/tl_forum_topic_gen.go +++ b/tg/tl_forum_topic_gen.go @@ -932,6 +932,10 @@ const ForumTopicClassName = "ForumTopic" // // See https://core.telegram.org/type/ForumTopic for reference. // +// Constructors: +// - [ForumTopicDeleted] +// - [ForumTopic] +// // Example: // // g, err := tg.DecodeForumTopic(buf) diff --git a/tg/tl_geo_point_gen.go b/tg/tl_geo_point_gen.go index 0b56fbae6f..e0be40c382 100644 --- a/tg/tl_geo_point_gen.go +++ b/tg/tl_geo_point_gen.go @@ -398,6 +398,10 @@ const GeoPointClassName = "GeoPoint" // // See https://core.telegram.org/type/GeoPoint for reference. // +// Constructors: +// - [GeoPointEmpty] +// - [GeoPoint] +// // Example: // // g, err := tg.DecodeGeoPoint(buf) diff --git a/tg/tl_group_call_gen.go b/tg/tl_group_call_gen.go index 27a967bc63..cc82a4544f 100644 --- a/tg/tl_group_call_gen.go +++ b/tg/tl_group_call_gen.go @@ -1069,6 +1069,10 @@ const GroupCallClassName = "GroupCall" // // See https://core.telegram.org/type/GroupCall for reference. // +// Constructors: +// - [GroupCallDiscarded] +// - [GroupCall] +// // Example: // // g, err := tg.DecodeGroupCall(buf) diff --git a/tg/tl_help_app_config_gen.go b/tg/tl_help_app_config_gen.go index 9aa61020e7..d3f39a6ff0 100644 --- a/tg/tl_help_app_config_gen.go +++ b/tg/tl_help_app_config_gen.go @@ -316,6 +316,10 @@ const HelpAppConfigClassName = "help.AppConfig" // // See https://core.telegram.org/type/help.AppConfig for reference. // +// Constructors: +// - [HelpAppConfigNotModified] +// - [HelpAppConfig] +// // Example: // // g, err := tg.DecodeHelpAppConfig(buf) diff --git a/tg/tl_help_app_update_gen.go b/tg/tl_help_app_update_gen.go index 737271335d..9d2fc4b669 100644 --- a/tg/tl_help_app_update_gen.go +++ b/tg/tl_help_app_update_gen.go @@ -592,6 +592,10 @@ const HelpAppUpdateClassName = "help.AppUpdate" // // See https://core.telegram.org/type/help.AppUpdate for reference. // +// Constructors: +// - [HelpAppUpdate] +// - [HelpNoAppUpdate] +// // Example: // // g, err := tg.DecodeHelpAppUpdate(buf) diff --git a/tg/tl_help_countries_list_gen.go b/tg/tl_help_countries_list_gen.go index 77d3d827b9..762e4cfdc4 100644 --- a/tg/tl_help_countries_list_gen.go +++ b/tg/tl_help_countries_list_gen.go @@ -320,6 +320,10 @@ const HelpCountriesListClassName = "help.CountriesList" // // See https://core.telegram.org/type/help.CountriesList for reference. // +// Constructors: +// - [HelpCountriesListNotModified] +// - [HelpCountriesList] +// // Example: // // g, err := tg.DecodeHelpCountriesList(buf) diff --git a/tg/tl_help_deep_link_info_gen.go b/tg/tl_help_deep_link_info_gen.go index 012649045f..9f61ea0546 100644 --- a/tg/tl_help_deep_link_info_gen.go +++ b/tg/tl_help_deep_link_info_gen.go @@ -411,6 +411,10 @@ const HelpDeepLinkInfoClassName = "help.DeepLinkInfo" // // See https://core.telegram.org/type/help.DeepLinkInfo for reference. // +// Constructors: +// - [HelpDeepLinkInfoEmpty] +// - [HelpDeepLinkInfo] +// // Example: // // g, err := tg.DecodeHelpDeepLinkInfo(buf) diff --git a/tg/tl_help_passport_config_gen.go b/tg/tl_help_passport_config_gen.go index c6a8f4da10..f83f6e4de2 100644 --- a/tg/tl_help_passport_config_gen.go +++ b/tg/tl_help_passport_config_gen.go @@ -308,6 +308,10 @@ const HelpPassportConfigClassName = "help.PassportConfig" // // See https://core.telegram.org/type/help.PassportConfig for reference. // +// Constructors: +// - [HelpPassportConfigNotModified] +// - [HelpPassportConfig] +// // Example: // // g, err := tg.DecodeHelpPassportConfig(buf) diff --git a/tg/tl_help_peer_color_set_gen.go b/tg/tl_help_peer_color_set_gen.go index 86f2a1d323..776f425b27 100644 --- a/tg/tl_help_peer_color_set_gen.go +++ b/tg/tl_help_peer_color_set_gen.go @@ -423,6 +423,10 @@ const HelpPeerColorSetClassName = "help.PeerColorSet" // // See https://core.telegram.org/type/help.PeerColorSet for reference. // +// Constructors: +// - [HelpPeerColorSet] +// - [HelpPeerColorProfileSet] +// // Example: // // g, err := tg.DecodeHelpPeerColorSet(buf) diff --git a/tg/tl_help_peer_colors_gen.go b/tg/tl_help_peer_colors_gen.go index b841208306..67ce75bcff 100644 --- a/tg/tl_help_peer_colors_gen.go +++ b/tg/tl_help_peer_colors_gen.go @@ -326,6 +326,10 @@ const HelpPeerColorsClassName = "help.PeerColors" // // See https://core.telegram.org/type/help.PeerColors for reference. // +// Constructors: +// - [HelpPeerColorsNotModified] +// - [HelpPeerColors] +// // Example: // // g, err := tg.DecodeHelpPeerColors(buf) diff --git a/tg/tl_help_promo_data_gen.go b/tg/tl_help_promo_data_gen.go index a9893af2be..15a7ef90c8 100644 --- a/tg/tl_help_promo_data_gen.go +++ b/tg/tl_help_promo_data_gen.go @@ -592,6 +592,10 @@ const HelpPromoDataClassName = "help.PromoData" // // See https://core.telegram.org/type/help.PromoData for reference. // +// Constructors: +// - [HelpPromoDataEmpty] +// - [HelpPromoData] +// // Example: // // g, err := tg.DecodeHelpPromoData(buf) diff --git a/tg/tl_help_terms_of_service_update_gen.go b/tg/tl_help_terms_of_service_update_gen.go index 7794a55ada..9e339ddc72 100644 --- a/tg/tl_help_terms_of_service_update_gen.go +++ b/tg/tl_help_terms_of_service_update_gen.go @@ -348,6 +348,10 @@ const HelpTermsOfServiceUpdateClassName = "help.TermsOfServiceUpdate" // // See https://core.telegram.org/type/help.TermsOfServiceUpdate for reference. // +// Constructors: +// - [HelpTermsOfServiceUpdateEmpty] +// - [HelpTermsOfServiceUpdate] +// // Example: // // g, err := tg.DecodeHelpTermsOfServiceUpdate(buf) diff --git a/tg/tl_help_timezones_list_gen.go b/tg/tl_help_timezones_list_gen.go index 39bf7e426d..4d9028e8b9 100644 --- a/tg/tl_help_timezones_list_gen.go +++ b/tg/tl_help_timezones_list_gen.go @@ -324,6 +324,10 @@ const HelpTimezonesListClassName = "help.TimezonesList" // // See https://core.telegram.org/type/help.TimezonesList for reference. // +// Constructors: +// - [HelpTimezonesListNotModified] +// - [HelpTimezonesList] +// // Example: // // g, err := tg.DecodeHelpTimezonesList(buf) diff --git a/tg/tl_help_user_info_gen.go b/tg/tl_help_user_info_gen.go index 3b3ddc98e5..10025755fc 100644 --- a/tg/tl_help_user_info_gen.go +++ b/tg/tl_help_user_info_gen.go @@ -382,6 +382,10 @@ const HelpUserInfoClassName = "help.UserInfo" // // See https://core.telegram.org/type/help.UserInfo for reference. // +// Constructors: +// - [HelpUserInfoEmpty] +// - [HelpUserInfo] +// // Example: // // g, err := tg.DecodeHelpUserInfo(buf) diff --git a/tg/tl_inline_query_peer_type_gen.go b/tg/tl_inline_query_peer_type_gen.go index 822183f6ed..8c4dcc4107 100644 --- a/tg/tl_inline_query_peer_type_gen.go +++ b/tg/tl_inline_query_peer_type_gen.go @@ -659,6 +659,14 @@ const InlineQueryPeerTypeClassName = "InlineQueryPeerType" // // See https://core.telegram.org/type/InlineQueryPeerType for reference. // +// Constructors: +// - [InlineQueryPeerTypeSameBotPM] +// - [InlineQueryPeerTypePM] +// - [InlineQueryPeerTypeChat] +// - [InlineQueryPeerTypeMegagroup] +// - [InlineQueryPeerTypeBroadcast] +// - [InlineQueryPeerTypeBotPM] +// // Example: // // g, err := tg.DecodeInlineQueryPeerType(buf) diff --git a/tg/tl_input_bot_app_gen.go b/tg/tl_input_bot_app_gen.go index f978ce7c8a..c088544e76 100644 --- a/tg/tl_input_bot_app_gen.go +++ b/tg/tl_input_bot_app_gen.go @@ -382,6 +382,10 @@ const InputBotAppClassName = "InputBotApp" // // See https://core.telegram.org/type/InputBotApp for reference. // +// Constructors: +// - [InputBotAppID] +// - [InputBotAppShortName] +// // Example: // // g, err := tg.DecodeInputBotApp(buf) diff --git a/tg/tl_input_bot_inline_message_gen.go b/tg/tl_input_bot_inline_message_gen.go index f121ac24f5..74a903a3b4 100644 --- a/tg/tl_input_bot_inline_message_gen.go +++ b/tg/tl_input_bot_inline_message_gen.go @@ -2760,6 +2760,16 @@ const InputBotInlineMessageClassName = "InputBotInlineMessage" // // See https://core.telegram.org/type/InputBotInlineMessage for reference. // +// Constructors: +// - [InputBotInlineMessageMediaAuto] +// - [InputBotInlineMessageText] +// - [InputBotInlineMessageMediaGeo] +// - [InputBotInlineMessageMediaVenue] +// - [InputBotInlineMessageMediaContact] +// - [InputBotInlineMessageGame] +// - [InputBotInlineMessageMediaInvoice] +// - [InputBotInlineMessageMediaWebPage] +// // Example: // // g, err := tg.DecodeInputBotInlineMessage(buf) diff --git a/tg/tl_input_bot_inline_message_id_gen.go b/tg/tl_input_bot_inline_message_id_gen.go index 332d3d4357..af207bddda 100644 --- a/tg/tl_input_bot_inline_message_id_gen.go +++ b/tg/tl_input_bot_inline_message_id_gen.go @@ -444,6 +444,10 @@ const InputBotInlineMessageIDClassName = "InputBotInlineMessageID" // // See https://core.telegram.org/type/InputBotInlineMessageID for reference. // +// Constructors: +// - [InputBotInlineMessageID] +// - [InputBotInlineMessageID64] +// // Example: // // g, err := tg.DecodeInputBotInlineMessageID(buf) diff --git a/tg/tl_input_bot_inline_result_gen.go b/tg/tl_input_bot_inline_result_gen.go index 862649c7bc..c8ee2798a0 100644 --- a/tg/tl_input_bot_inline_result_gen.go +++ b/tg/tl_input_bot_inline_result_gen.go @@ -1265,6 +1265,12 @@ const InputBotInlineResultClassName = "InputBotInlineResult" // // See https://core.telegram.org/type/InputBotInlineResult for reference. // +// Constructors: +// - [InputBotInlineResult] +// - [InputBotInlineResultPhoto] +// - [InputBotInlineResultDocument] +// - [InputBotInlineResultGame] +// // Example: // // g, err := tg.DecodeInputBotInlineResult(buf) diff --git a/tg/tl_input_channel_gen.go b/tg/tl_input_channel_gen.go index a4eaa11652..9925ff9377 100644 --- a/tg/tl_input_channel_gen.go +++ b/tg/tl_input_channel_gen.go @@ -502,6 +502,11 @@ const InputChannelClassName = "InputChannel" // // See https://core.telegram.org/type/InputChannel for reference. // +// Constructors: +// - [InputChannelEmpty] +// - [InputChannel] +// - [InputChannelFromMessage] +// // Example: // // g, err := tg.DecodeInputChannel(buf) diff --git a/tg/tl_input_chat_photo_gen.go b/tg/tl_input_chat_photo_gen.go index 29a5e3e20f..513ce3f5d8 100644 --- a/tg/tl_input_chat_photo_gen.go +++ b/tg/tl_input_chat_photo_gen.go @@ -627,6 +627,11 @@ const InputChatPhotoClassName = "InputChatPhoto" // // See https://core.telegram.org/type/InputChatPhoto for reference. // +// Constructors: +// - [InputChatPhotoEmpty] +// - [InputChatUploadedPhoto] +// - [InputChatPhoto] +// // Example: // // g, err := tg.DecodeInputChatPhoto(buf) diff --git a/tg/tl_input_check_password_srp_gen.go b/tg/tl_input_check_password_srp_gen.go index 24709a6d60..dfcb210c5b 100644 --- a/tg/tl_input_check_password_srp_gen.go +++ b/tg/tl_input_check_password_srp_gen.go @@ -341,6 +341,10 @@ const InputCheckPasswordSRPClassName = "InputCheckPasswordSRP" // // See https://core.telegram.org/type/InputCheckPasswordSRP for reference. // +// Constructors: +// - [InputCheckPasswordEmpty] +// - [InputCheckPasswordSRP] +// // Example: // // g, err := tg.DecodeInputCheckPasswordSRP(buf) diff --git a/tg/tl_input_collectible_gen.go b/tg/tl_input_collectible_gen.go index 6849ee2017..0342d86d28 100644 --- a/tg/tl_input_collectible_gen.go +++ b/tg/tl_input_collectible_gen.go @@ -314,6 +314,10 @@ const InputCollectibleClassName = "InputCollectible" // // See https://core.telegram.org/type/InputCollectible for reference. // +// Constructors: +// - [InputCollectibleUsername] +// - [InputCollectiblePhone] +// // Example: // // g, err := tg.DecodeInputCollectible(buf) diff --git a/tg/tl_input_dialog_peer_gen.go b/tg/tl_input_dialog_peer_gen.go index fea25b208f..56f859d281 100644 --- a/tg/tl_input_dialog_peer_gen.go +++ b/tg/tl_input_dialog_peer_gen.go @@ -319,6 +319,10 @@ const InputDialogPeerClassName = "InputDialogPeer" // // See https://core.telegram.org/type/InputDialogPeer for reference. // +// Constructors: +// - [InputDialogPeer] +// - [InputDialogPeerFolder] +// // Example: // // g, err := tg.DecodeInputDialogPeer(buf) diff --git a/tg/tl_input_document_gen.go b/tg/tl_input_document_gen.go index c3182f1eae..7e81c0b3db 100644 --- a/tg/tl_input_document_gen.go +++ b/tg/tl_input_document_gen.go @@ -335,6 +335,10 @@ const InputDocumentClassName = "InputDocument" // // See https://core.telegram.org/type/InputDocument for reference. // +// Constructors: +// - [InputDocumentEmpty] +// - [InputDocument] +// // Example: // // g, err := tg.DecodeInputDocument(buf) diff --git a/tg/tl_input_encrypted_file_gen.go b/tg/tl_input_encrypted_file_gen.go index 89f855ce24..2d9a10e0a4 100644 --- a/tg/tl_input_encrypted_file_gen.go +++ b/tg/tl_input_encrypted_file_gen.go @@ -721,6 +721,12 @@ const InputEncryptedFileClassName = "InputEncryptedFile" // // See https://core.telegram.org/type/InputEncryptedFile for reference. // +// Constructors: +// - [InputEncryptedFileEmpty] +// - [InputEncryptedFileUploaded] +// - [InputEncryptedFile] +// - [InputEncryptedFileBigUploaded] +// // Example: // // g, err := tg.DecodeInputEncryptedFile(buf) diff --git a/tg/tl_input_file_gen.go b/tg/tl_input_file_gen.go index e11e81e578..7eb9f57926 100644 --- a/tg/tl_input_file_gen.go +++ b/tg/tl_input_file_gen.go @@ -598,6 +598,11 @@ const InputFileClassName = "InputFile" // // See https://core.telegram.org/type/InputFile for reference. // +// Constructors: +// - [InputFile] +// - [InputFileBig] +// - [InputFileStoryDocument] +// // Example: // // g, err := tg.DecodeInputFile(buf) diff --git a/tg/tl_input_file_location_gen.go b/tg/tl_input_file_location_gen.go index 7a48b85e05..f4e207586c 100644 --- a/tg/tl_input_file_location_gen.go +++ b/tg/tl_input_file_location_gen.go @@ -2568,6 +2568,20 @@ const InputFileLocationClassName = "InputFileLocation" // // See https://core.telegram.org/type/InputFileLocation for reference. // +// Constructors: +// - [InputFileLocation] +// - [InputEncryptedFileLocation] +// - [InputDocumentFileLocation] +// - [InputSecureFileLocation] +// - [InputTakeoutFileLocation] +// - [InputPhotoFileLocation] +// - [InputPhotoLegacyFileLocation] +// - [InputPeerPhotoFileLocation] +// - [InputStickerSetThumb] +// - [InputGroupCallStream] +// - [InputPeerPhotoFileLocationLegacy] +// - [InputStickerSetThumbLegacy] +// // Example: // // g, err := tg.DecodeInputFileLocation(buf) diff --git a/tg/tl_input_game_gen.go b/tg/tl_input_game_gen.go index 9a40303d2b..4fb464b1c0 100644 --- a/tg/tl_input_game_gen.go +++ b/tg/tl_input_game_gen.go @@ -376,6 +376,10 @@ const InputGameClassName = "InputGame" // // See https://core.telegram.org/type/InputGame for reference. // +// Constructors: +// - [InputGameID] +// - [InputGameShortName] +// // Example: // // g, err := tg.DecodeInputGame(buf) diff --git a/tg/tl_input_geo_point_gen.go b/tg/tl_input_geo_point_gen.go index 771bd28fca..8488d49e92 100644 --- a/tg/tl_input_geo_point_gen.go +++ b/tg/tl_input_geo_point_gen.go @@ -371,6 +371,10 @@ const InputGeoPointClassName = "InputGeoPoint" // // See https://core.telegram.org/type/InputGeoPoint for reference. // +// Constructors: +// - [InputGeoPointEmpty] +// - [InputGeoPoint] +// // Example: // // g, err := tg.DecodeInputGeoPoint(buf) diff --git a/tg/tl_input_invoice_gen.go b/tg/tl_input_invoice_gen.go index 1417ba13f4..02c5801bb4 100644 --- a/tg/tl_input_invoice_gen.go +++ b/tg/tl_input_invoice_gen.go @@ -1506,6 +1506,16 @@ const InputInvoiceClassName = "InputInvoice" // // See https://core.telegram.org/type/InputInvoice for reference. // +// Constructors: +// - [InputInvoiceMessage] +// - [InputInvoiceSlug] +// - [InputInvoicePremiumGiftCode] +// - [InputInvoiceStars] +// - [InputInvoiceChatInviteSubscription] +// - [InputInvoiceStarGift] +// - [InputInvoiceStarGiftUpgrade] +// - [InputInvoiceStarGiftTransfer] +// // Example: // // g, err := tg.DecodeInputInvoice(buf) diff --git a/tg/tl_input_media_gen.go b/tg/tl_input_media_gen.go index 9b08968fd0..5cf0a8ec69 100644 --- a/tg/tl_input_media_gen.go +++ b/tg/tl_input_media_gen.go @@ -5078,6 +5078,26 @@ const InputMediaClassName = "InputMedia" // // See https://core.telegram.org/type/InputMedia for reference. // +// Constructors: +// - [InputMediaEmpty] +// - [InputMediaUploadedPhoto] +// - [InputMediaPhoto] +// - [InputMediaGeoPoint] +// - [InputMediaContact] +// - [InputMediaUploadedDocument] +// - [InputMediaDocument] +// - [InputMediaVenue] +// - [InputMediaPhotoExternal] +// - [InputMediaDocumentExternal] +// - [InputMediaGame] +// - [InputMediaInvoice] +// - [InputMediaGeoLive] +// - [InputMediaPoll] +// - [InputMediaDice] +// - [InputMediaStory] +// - [InputMediaWebPage] +// - [InputMediaPaidMedia] +// // Example: // // g, err := tg.DecodeInputMedia(buf) diff --git a/tg/tl_input_message_gen.go b/tg/tl_input_message_gen.go index 81f176f9cf..c4217edd8f 100644 --- a/tg/tl_input_message_gen.go +++ b/tg/tl_input_message_gen.go @@ -573,6 +573,12 @@ const InputMessageClassName = "InputMessage" // // See https://core.telegram.org/type/InputMessage for reference. // +// Constructors: +// - [InputMessageID] +// - [InputMessageReplyTo] +// - [InputMessagePinned] +// - [InputMessageCallbackQuery] +// // Example: // // g, err := tg.DecodeInputMessage(buf) diff --git a/tg/tl_input_notify_peer_gen.go b/tg/tl_input_notify_peer_gen.go index ab5fda6f57..5e957be35c 100644 --- a/tg/tl_input_notify_peer_gen.go +++ b/tg/tl_input_notify_peer_gen.go @@ -661,6 +661,13 @@ const InputNotifyPeerClassName = "InputNotifyPeer" // // See https://core.telegram.org/type/InputNotifyPeer for reference. // +// Constructors: +// - [InputNotifyPeer] +// - [InputNotifyUsers] +// - [InputNotifyChats] +// - [InputNotifyBroadcasts] +// - [InputNotifyForumTopic] +// // Example: // // g, err := tg.DecodeInputNotifyPeer(buf) diff --git a/tg/tl_input_payment_credentials_gen.go b/tg/tl_input_payment_credentials_gen.go index 934f1ec7b3..6c4c1c511c 100644 --- a/tg/tl_input_payment_credentials_gen.go +++ b/tg/tl_input_payment_credentials_gen.go @@ -661,6 +661,12 @@ const InputPaymentCredentialsClassName = "InputPaymentCredentials" // // See https://core.telegram.org/type/InputPaymentCredentials for reference. // +// Constructors: +// - [InputPaymentCredentialsSaved] +// - [InputPaymentCredentials] +// - [InputPaymentCredentialsApplePay] +// - [InputPaymentCredentialsGooglePay] +// // Example: // // g, err := tg.DecodeInputPaymentCredentials(buf) diff --git a/tg/tl_input_peer_gen.go b/tg/tl_input_peer_gen.go index 00c16b8e4b..fcfde21c24 100644 --- a/tg/tl_input_peer_gen.go +++ b/tg/tl_input_peer_gen.go @@ -1101,6 +1101,15 @@ const InputPeerClassName = "InputPeer" // // See https://core.telegram.org/type/InputPeer for reference. // +// Constructors: +// - [InputPeerEmpty] +// - [InputPeerSelf] +// - [InputPeerChat] +// - [InputPeerUser] +// - [InputPeerChannel] +// - [InputPeerUserFromMessage] +// - [InputPeerChannelFromMessage] +// // Example: // // g, err := tg.DecodeInputPeer(buf) diff --git a/tg/tl_input_photo_gen.go b/tg/tl_input_photo_gen.go index 98d93d0573..3d803c384e 100644 --- a/tg/tl_input_photo_gen.go +++ b/tg/tl_input_photo_gen.go @@ -335,6 +335,10 @@ const InputPhotoClassName = "InputPhoto" // // See https://core.telegram.org/type/InputPhoto for reference. // +// Constructors: +// - [InputPhotoEmpty] +// - [InputPhoto] +// // Example: // // g, err := tg.DecodeInputPhoto(buf) diff --git a/tg/tl_input_privacy_key_gen.go b/tg/tl_input_privacy_key_gen.go index 80d3e792d8..c959eb4bff 100644 --- a/tg/tl_input_privacy_key_gen.go +++ b/tg/tl_input_privacy_key_gen.go @@ -1284,6 +1284,20 @@ const InputPrivacyKeyClassName = "InputPrivacyKey" // // See https://core.telegram.org/type/InputPrivacyKey for reference. // +// Constructors: +// - [InputPrivacyKeyStatusTimestamp] +// - [InputPrivacyKeyChatInvite] +// - [InputPrivacyKeyPhoneCall] +// - [InputPrivacyKeyPhoneP2P] +// - [InputPrivacyKeyForwards] +// - [InputPrivacyKeyProfilePhoto] +// - [InputPrivacyKeyPhoneNumber] +// - [InputPrivacyKeyAddedByPhone] +// - [InputPrivacyKeyVoiceMessages] +// - [InputPrivacyKeyAbout] +// - [InputPrivacyKeyBirthday] +// - [InputPrivacyKeyStarGiftsAutoSave] +// // Example: // // g, err := tg.DecodeInputPrivacyKey(buf) diff --git a/tg/tl_input_privacy_rule_gen.go b/tg/tl_input_privacy_rule_gen.go index b44e645c5d..3b62f195e4 100644 --- a/tg/tl_input_privacy_rule_gen.go +++ b/tg/tl_input_privacy_rule_gen.go @@ -1474,6 +1474,20 @@ const InputPrivacyRuleClassName = "InputPrivacyRule" // // See https://core.telegram.org/type/InputPrivacyRule for reference. // +// Constructors: +// - [InputPrivacyValueAllowContacts] +// - [InputPrivacyValueAllowAll] +// - [InputPrivacyValueAllowUsers] +// - [InputPrivacyValueDisallowContacts] +// - [InputPrivacyValueDisallowAll] +// - [InputPrivacyValueDisallowUsers] +// - [InputPrivacyValueAllowChatParticipants] +// - [InputPrivacyValueDisallowChatParticipants] +// - [InputPrivacyValueAllowCloseFriends] +// - [InputPrivacyValueAllowPremium] +// - [InputPrivacyValueAllowBots] +// - [InputPrivacyValueDisallowBots] +// // Example: // // g, err := tg.DecodeInputPrivacyRule(buf) diff --git a/tg/tl_input_quick_reply_shortcut_gen.go b/tg/tl_input_quick_reply_shortcut_gen.go index cc0eccd056..47c75ff13a 100644 --- a/tg/tl_input_quick_reply_shortcut_gen.go +++ b/tg/tl_input_quick_reply_shortcut_gen.go @@ -314,6 +314,10 @@ const InputQuickReplyShortcutClassName = "InputQuickReplyShortcut" // // See https://core.telegram.org/type/InputQuickReplyShortcut for reference. // +// Constructors: +// - [InputQuickReplyShortcut] +// - [InputQuickReplyShortcutID] +// // Example: // // g, err := tg.DecodeInputQuickReplyShortcut(buf) diff --git a/tg/tl_input_reply_to_gen.go b/tg/tl_input_reply_to_gen.go index 31c15a4282..e427ac5b4f 100644 --- a/tg/tl_input_reply_to_gen.go +++ b/tg/tl_input_reply_to_gen.go @@ -647,6 +647,10 @@ const InputReplyToClassName = "InputReplyTo" // // See https://core.telegram.org/type/InputReplyTo for reference. // +// Constructors: +// - [InputReplyToMessage] +// - [InputReplyToStory] +// // Example: // // g, err := tg.DecodeInputReplyTo(buf) diff --git a/tg/tl_input_saved_star_gift_gen.go b/tg/tl_input_saved_star_gift_gen.go index 568b262eb8..42ecdbdca2 100644 --- a/tg/tl_input_saved_star_gift_gen.go +++ b/tg/tl_input_saved_star_gift_gen.go @@ -338,6 +338,10 @@ const InputSavedStarGiftClassName = "InputSavedStarGift" // // See https://core.telegram.org/type/InputSavedStarGift for reference. // +// Constructors: +// - [InputSavedStarGiftUser] +// - [InputSavedStarGiftChat] +// // Example: // // g, err := tg.DecodeInputSavedStarGift(buf) diff --git a/tg/tl_input_secure_file_gen.go b/tg/tl_input_secure_file_gen.go index 9b7755efeb..58cb096f45 100644 --- a/tg/tl_input_secure_file_gen.go +++ b/tg/tl_input_secure_file_gen.go @@ -450,6 +450,10 @@ const InputSecureFileClassName = "InputSecureFile" // // See https://core.telegram.org/type/InputSecureFile for reference. // +// Constructors: +// - [InputSecureFileUploaded] +// - [InputSecureFile] +// // Example: // // g, err := tg.DecodeInputSecureFile(buf) diff --git a/tg/tl_input_sticker_set_gen.go b/tg/tl_input_sticker_set_gen.go index 87448b8102..be59b2b66c 100644 --- a/tg/tl_input_sticker_set_gen.go +++ b/tg/tl_input_sticker_set_gen.go @@ -1310,6 +1310,19 @@ const InputStickerSetClassName = "InputStickerSet" // // See https://core.telegram.org/type/InputStickerSet for reference. // +// Constructors: +// - [InputStickerSetEmpty] +// - [InputStickerSetID] +// - [InputStickerSetShortName] +// - [InputStickerSetAnimatedEmoji] +// - [InputStickerSetDice] +// - [InputStickerSetAnimatedEmojiAnimations] +// - [InputStickerSetPremiumGifts] +// - [InputStickerSetEmojiGenericAnimations] +// - [InputStickerSetEmojiDefaultStatuses] +// - [InputStickerSetEmojiDefaultTopicIcons] +// - [InputStickerSetEmojiChannelDefaultStatuses] +// // Example: // // g, err := tg.DecodeInputStickerSet(buf) diff --git a/tg/tl_input_stickered_media_gen.go b/tg/tl_input_stickered_media_gen.go index 609a3f33ae..f836698a5f 100644 --- a/tg/tl_input_stickered_media_gen.go +++ b/tg/tl_input_stickered_media_gen.go @@ -318,6 +318,10 @@ const InputStickeredMediaClassName = "InputStickeredMedia" // // See https://core.telegram.org/type/InputStickeredMedia for reference. // +// Constructors: +// - [InputStickeredMediaPhoto] +// - [InputStickeredMediaDocument] +// // Example: // // g, err := tg.DecodeInputStickeredMedia(buf) diff --git a/tg/tl_input_store_payment_purpose_gen.go b/tg/tl_input_store_payment_purpose_gen.go index dbe17ad3f7..bb436f6e0f 100644 --- a/tg/tl_input_store_payment_purpose_gen.go +++ b/tg/tl_input_store_payment_purpose_gen.go @@ -2402,6 +2402,15 @@ const InputStorePaymentPurposeClassName = "InputStorePaymentPurpose" // // See https://core.telegram.org/type/InputStorePaymentPurpose for reference. // +// Constructors: +// - [InputStorePaymentPremiumSubscription] +// - [InputStorePaymentGiftPremium] +// - [InputStorePaymentPremiumGiftCode] +// - [InputStorePaymentPremiumGiveaway] +// - [InputStorePaymentStarsTopup] +// - [InputStorePaymentStarsGift] +// - [InputStorePaymentStarsGiveaway] +// // Example: // // g, err := tg.DecodeInputStorePaymentPurpose(buf) diff --git a/tg/tl_input_theme_gen.go b/tg/tl_input_theme_gen.go index 36f71d7ded..77d87932a2 100644 --- a/tg/tl_input_theme_gen.go +++ b/tg/tl_input_theme_gen.go @@ -338,6 +338,10 @@ const InputThemeClassName = "InputTheme" // // See https://core.telegram.org/type/InputTheme for reference. // +// Constructors: +// - [InputTheme] +// - [InputThemeSlug] +// // Example: // // g, err := tg.DecodeInputTheme(buf) diff --git a/tg/tl_input_user_gen.go b/tg/tl_input_user_gen.go index b13d020e98..0c4dcb45a2 100644 --- a/tg/tl_input_user_gen.go +++ b/tg/tl_input_user_gen.go @@ -604,6 +604,12 @@ const InputUserClassName = "InputUser" // // See https://core.telegram.org/type/InputUser for reference. // +// Constructors: +// - [InputUserEmpty] +// - [InputUserSelf] +// - [InputUser] +// - [InputUserFromMessage] +// // Example: // // g, err := tg.DecodeInputUser(buf) diff --git a/tg/tl_input_wall_paper_gen.go b/tg/tl_input_wall_paper_gen.go index fac353e1bb..3d61a1e63b 100644 --- a/tg/tl_input_wall_paper_gen.go +++ b/tg/tl_input_wall_paper_gen.go @@ -485,6 +485,11 @@ const InputWallPaperClassName = "InputWallPaper" // // See https://core.telegram.org/type/InputWallPaper for reference. // +// Constructors: +// - [InputWallPaper] +// - [InputWallPaperSlug] +// - [InputWallPaperNoFile] +// // Example: // // g, err := tg.DecodeInputWallPaper(buf) diff --git a/tg/tl_input_web_file_location_gen.go b/tg/tl_input_web_file_location_gen.go index e6d01c81b5..7e892aeb7c 100644 --- a/tg/tl_input_web_file_location_gen.go +++ b/tg/tl_input_web_file_location_gen.go @@ -807,6 +807,11 @@ const InputWebFileLocationClassName = "InputWebFileLocation" // // See https://core.telegram.org/type/InputWebFileLocation for reference. // +// Constructors: +// - [InputWebFileLocation] +// - [InputWebFileGeoPointLocation] +// - [InputWebFileAudioAlbumThumbLocation] +// // Example: // // g, err := tg.DecodeInputWebFileLocation(buf) diff --git a/tg/tl_ip_port_gen.go b/tg/tl_ip_port_gen.go index 8308b282a6..4b82c081fd 100644 --- a/tg/tl_ip_port_gen.go +++ b/tg/tl_ip_port_gen.go @@ -387,6 +387,10 @@ const IPPortClassName = "IpPort" // // See https://core.telegram.org/type/IpPort for reference. // +// Constructors: +// - [IPPort] +// - [IPPortSecret] +// // Example: // // g, err := tg.DecodeIPPort(buf) diff --git a/tg/tl_json_value_gen.go b/tg/tl_json_value_gen.go index 6a4edec423..4d5b462e75 100644 --- a/tg/tl_json_value_gen.go +++ b/tg/tl_json_value_gen.go @@ -853,6 +853,14 @@ const JSONValueClassName = "JSONValue" // // See https://core.telegram.org/type/JSONValue for reference. // +// Constructors: +// - [JSONNull] +// - [JSONBool] +// - [JSONNumber] +// - [JSONString] +// - [JSONArray] +// - [JSONObject] +// // Example: // // g, err := tg.DecodeJSONValue(buf) diff --git a/tg/tl_keyboard_button_gen.go b/tg/tl_keyboard_button_gen.go index fb426c8701..6eb4f3b72e 100644 --- a/tg/tl_keyboard_button_gen.go +++ b/tg/tl_keyboard_button_gen.go @@ -3634,6 +3634,26 @@ const KeyboardButtonClassName = "KeyboardButton" // // See https://core.telegram.org/type/KeyboardButton for reference. // +// Constructors: +// - [KeyboardButton] +// - [KeyboardButtonURL] +// - [KeyboardButtonCallback] +// - [KeyboardButtonRequestPhone] +// - [KeyboardButtonRequestGeoLocation] +// - [KeyboardButtonSwitchInline] +// - [KeyboardButtonGame] +// - [KeyboardButtonBuy] +// - [KeyboardButtonURLAuth] +// - [InputKeyboardButtonURLAuth] +// - [KeyboardButtonRequestPoll] +// - [InputKeyboardButtonUserProfile] +// - [KeyboardButtonUserProfile] +// - [KeyboardButtonWebView] +// - [KeyboardButtonSimpleWebView] +// - [KeyboardButtonRequestPeer] +// - [InputKeyboardButtonRequestPeer] +// - [KeyboardButtonCopy] +// // Example: // // g, err := tg.DecodeKeyboardButton(buf) diff --git a/tg/tl_lang_pack_string_gen.go b/tg/tl_lang_pack_string_gen.go index c5e0f33748..4b5d0c5244 100644 --- a/tg/tl_lang_pack_string_gen.go +++ b/tg/tl_lang_pack_string_gen.go @@ -763,6 +763,11 @@ const LangPackStringClassName = "LangPackString" // // See https://core.telegram.org/type/LangPackString for reference. // +// Constructors: +// - [LangPackString] +// - [LangPackStringPluralized] +// - [LangPackStringDeleted] +// // Example: // // g, err := tg.DecodeLangPackString(buf) diff --git a/tg/tl_media_area_gen.go b/tg/tl_media_area_gen.go index 410f013aa7..52e4ef2fc4 100644 --- a/tg/tl_media_area_gen.go +++ b/tg/tl_media_area_gen.go @@ -1981,6 +1981,17 @@ const MediaAreaClassName = "MediaArea" // // See https://core.telegram.org/type/MediaArea for reference. // +// Constructors: +// - [MediaAreaVenue] +// - [InputMediaAreaVenue] +// - [MediaAreaGeoPoint] +// - [MediaAreaSuggestedReaction] +// - [MediaAreaChannelPost] +// - [InputMediaAreaChannelPost] +// - [MediaAreaURL] +// - [MediaAreaWeather] +// - [MediaAreaStarGift] +// // Example: // // g, err := tg.DecodeMediaArea(buf) diff --git a/tg/tl_message_action_gen.go b/tg/tl_message_action_gen.go index b347c2d277..b3d98868e6 100644 --- a/tg/tl_message_action_gen.go +++ b/tg/tl_message_action_gen.go @@ -10600,6 +10600,56 @@ const MessageActionClassName = "MessageAction" // // See https://core.telegram.org/type/MessageAction for reference. // +// Constructors: +// - [MessageActionEmpty] +// - [MessageActionChatCreate] +// - [MessageActionChatEditTitle] +// - [MessageActionChatEditPhoto] +// - [MessageActionChatDeletePhoto] +// - [MessageActionChatAddUser] +// - [MessageActionChatDeleteUser] +// - [MessageActionChatJoinedByLink] +// - [MessageActionChannelCreate] +// - [MessageActionChatMigrateTo] +// - [MessageActionChannelMigrateFrom] +// - [MessageActionPinMessage] +// - [MessageActionHistoryClear] +// - [MessageActionGameScore] +// - [MessageActionPaymentSentMe] +// - [MessageActionPaymentSent] +// - [MessageActionPhoneCall] +// - [MessageActionScreenshotTaken] +// - [MessageActionCustomAction] +// - [MessageActionBotAllowed] +// - [MessageActionSecureValuesSentMe] +// - [MessageActionSecureValuesSent] +// - [MessageActionContactSignUp] +// - [MessageActionGeoProximityReached] +// - [MessageActionGroupCall] +// - [MessageActionInviteToGroupCall] +// - [MessageActionSetMessagesTTL] +// - [MessageActionGroupCallScheduled] +// - [MessageActionSetChatTheme] +// - [MessageActionChatJoinedByRequest] +// - [MessageActionWebViewDataSentMe] +// - [MessageActionWebViewDataSent] +// - [MessageActionGiftPremium] +// - [MessageActionTopicCreate] +// - [MessageActionTopicEdit] +// - [MessageActionSuggestProfilePhoto] +// - [MessageActionRequestedPeer] +// - [MessageActionSetChatWallPaper] +// - [MessageActionGiftCode] +// - [MessageActionGiveawayLaunch] +// - [MessageActionGiveawayResults] +// - [MessageActionBoostApply] +// - [MessageActionRequestedPeerSentMe] +// - [MessageActionPaymentRefunded] +// - [MessageActionGiftStars] +// - [MessageActionPrizeStars] +// - [MessageActionStarGift] +// - [MessageActionStarGiftUnique] +// // Example: // // g, err := tg.DecodeMessageAction(buf) diff --git a/tg/tl_message_entity_gen.go b/tg/tl_message_entity_gen.go index 254c18d640..fb7f54c6f1 100644 --- a/tg/tl_message_entity_gen.go +++ b/tg/tl_message_entity_gen.go @@ -3808,6 +3808,29 @@ const MessageEntityClassName = "MessageEntity" // // See https://core.telegram.org/type/MessageEntity for reference. // +// Constructors: +// - [MessageEntityUnknown] +// - [MessageEntityMention] +// - [MessageEntityHashtag] +// - [MessageEntityBotCommand] +// - [MessageEntityURL] +// - [MessageEntityEmail] +// - [MessageEntityBold] +// - [MessageEntityItalic] +// - [MessageEntityCode] +// - [MessageEntityPre] +// - [MessageEntityTextURL] +// - [MessageEntityMentionName] +// - [InputMessageEntityMentionName] +// - [MessageEntityPhone] +// - [MessageEntityCashtag] +// - [MessageEntityUnderline] +// - [MessageEntityStrike] +// - [MessageEntityBankCard] +// - [MessageEntitySpoiler] +// - [MessageEntityCustomEmoji] +// - [MessageEntityBlockquote] +// // Example: // // g, err := tg.DecodeMessageEntity(buf) diff --git a/tg/tl_message_extended_media_gen.go b/tg/tl_message_extended_media_gen.go index 130300fa52..01b56cc2ed 100644 --- a/tg/tl_message_extended_media_gen.go +++ b/tg/tl_message_extended_media_gen.go @@ -513,6 +513,10 @@ const MessageExtendedMediaClassName = "MessageExtendedMedia" // // See https://core.telegram.org/type/MessageExtendedMedia for reference. // +// Constructors: +// - [MessageExtendedMediaPreview] +// - [MessageExtendedMedia] +// // Example: // // g, err := tg.DecodeMessageExtendedMedia(buf) diff --git a/tg/tl_message_gen.go b/tg/tl_message_gen.go index b67951b8cc..411b31cfa3 100644 --- a/tg/tl_message_gen.go +++ b/tg/tl_message_gen.go @@ -2895,6 +2895,11 @@ const MessageClassName = "Message" // // See https://core.telegram.org/type/Message for reference. // +// Constructors: +// - [MessageEmpty] +// - [Message] +// - [MessageService] +// // Example: // // g, err := tg.DecodeMessage(buf) diff --git a/tg/tl_message_media_gen.go b/tg/tl_message_media_gen.go index 2ece36559d..a6fff5aba2 100644 --- a/tg/tl_message_media_gen.go +++ b/tg/tl_message_media_gen.go @@ -4898,6 +4898,25 @@ const MessageMediaClassName = "MessageMedia" // // See https://core.telegram.org/type/MessageMedia for reference. // +// Constructors: +// - [MessageMediaEmpty] +// - [MessageMediaPhoto] +// - [MessageMediaGeo] +// - [MessageMediaContact] +// - [MessageMediaUnsupported] +// - [MessageMediaDocument] +// - [MessageMediaWebPage] +// - [MessageMediaVenue] +// - [MessageMediaGame] +// - [MessageMediaInvoice] +// - [MessageMediaGeoLive] +// - [MessageMediaPoll] +// - [MessageMediaDice] +// - [MessageMediaStory] +// - [MessageMediaGiveaway] +// - [MessageMediaGiveawayResults] +// - [MessageMediaPaidMedia] +// // Example: // // g, err := tg.DecodeMessageMedia(buf) diff --git a/tg/tl_message_peer_vote_gen.go b/tg/tl_message_peer_vote_gen.go index 9e2b85ee14..37353b8254 100644 --- a/tg/tl_message_peer_vote_gen.go +++ b/tg/tl_message_peer_vote_gen.go @@ -610,6 +610,11 @@ const MessagePeerVoteClassName = "MessagePeerVote" // // See https://core.telegram.org/type/MessagePeerVote for reference. // +// Constructors: +// - [MessagePeerVote] +// - [MessagePeerVoteInputOption] +// - [MessagePeerVoteMultiple] +// // Example: // // g, err := tg.DecodeMessagePeerVote(buf) diff --git a/tg/tl_message_reply_header_gen.go b/tg/tl_message_reply_header_gen.go index b24a14deb3..4f83cfe9e8 100644 --- a/tg/tl_message_reply_header_gen.go +++ b/tg/tl_message_reply_header_gen.go @@ -883,6 +883,10 @@ const MessageReplyHeaderClassName = "MessageReplyHeader" // // See https://core.telegram.org/type/MessageReplyHeader for reference. // +// Constructors: +// - [MessageReplyHeader] +// - [MessageReplyStoryHeader] +// // Example: // // g, err := tg.DecodeMessageReplyHeader(buf) diff --git a/tg/tl_messages_all_stickers_gen.go b/tg/tl_messages_all_stickers_gen.go index 91fcfd1a24..d4924b8683 100644 --- a/tg/tl_messages_all_stickers_gen.go +++ b/tg/tl_messages_all_stickers_gen.go @@ -320,6 +320,10 @@ const MessagesAllStickersClassName = "messages.AllStickers" // // See https://core.telegram.org/type/messages.AllStickers for reference. // +// Constructors: +// - [MessagesAllStickersNotModified] +// - [MessagesAllStickers] +// // Example: // // g, err := tg.DecodeMessagesAllStickers(buf) diff --git a/tg/tl_messages_available_effects_gen.go b/tg/tl_messages_available_effects_gen.go index 7e6a18c389..58336b3a86 100644 --- a/tg/tl_messages_available_effects_gen.go +++ b/tg/tl_messages_available_effects_gen.go @@ -376,6 +376,10 @@ const MessagesAvailableEffectsClassName = "messages.AvailableEffects" // // See https://core.telegram.org/type/messages.AvailableEffects for reference. // +// Constructors: +// - [MessagesAvailableEffectsNotModified] +// - [MessagesAvailableEffects] +// // Example: // // g, err := tg.DecodeMessagesAvailableEffects(buf) diff --git a/tg/tl_messages_available_reactions_gen.go b/tg/tl_messages_available_reactions_gen.go index a051140bd6..b7400f9db6 100644 --- a/tg/tl_messages_available_reactions_gen.go +++ b/tg/tl_messages_available_reactions_gen.go @@ -326,6 +326,10 @@ const MessagesAvailableReactionsClassName = "messages.AvailableReactions" // // See https://core.telegram.org/type/messages.AvailableReactions for reference. // +// Constructors: +// - [MessagesAvailableReactionsNotModified] +// - [MessagesAvailableReactions] +// // Example: // // g, err := tg.DecodeMessagesAvailableReactions(buf) diff --git a/tg/tl_messages_chats_gen.go b/tg/tl_messages_chats_gen.go index 62a7740e77..3013c11404 100644 --- a/tg/tl_messages_chats_gen.go +++ b/tg/tl_messages_chats_gen.go @@ -384,6 +384,10 @@ const MessagesChatsClassName = "messages.Chats" // // See https://core.telegram.org/type/messages.Chats for reference. // +// Constructors: +// - [MessagesChats] +// - [MessagesChatsSlice] +// // Example: // // g, err := tg.DecodeMessagesChats(buf) diff --git a/tg/tl_messages_dh_config_gen.go b/tg/tl_messages_dh_config_gen.go index cefbaa25d1..8579e641cc 100644 --- a/tg/tl_messages_dh_config_gen.go +++ b/tg/tl_messages_dh_config_gen.go @@ -395,6 +395,10 @@ const MessagesDhConfigClassName = "messages.DhConfig" // // See https://core.telegram.org/type/messages.DhConfig for reference. // +// Constructors: +// - [MessagesDhConfigNotModified] +// - [MessagesDhConfig] +// // Example: // // g, err := tg.DecodeMessagesDhConfig(buf) diff --git a/tg/tl_messages_dialogs_gen.go b/tg/tl_messages_dialogs_gen.go index 7cd9120ba9..1e4dc0a9e4 100644 --- a/tg/tl_messages_dialogs_gen.go +++ b/tg/tl_messages_dialogs_gen.go @@ -816,6 +816,11 @@ const MessagesDialogsClassName = "messages.Dialogs" // // See https://core.telegram.org/type/messages.Dialogs for reference. // +// Constructors: +// - [MessagesDialogs] +// - [MessagesDialogsSlice] +// - [MessagesDialogsNotModified] +// // Example: // // g, err := tg.DecodeMessagesDialogs(buf) diff --git a/tg/tl_messages_emoji_groups_gen.go b/tg/tl_messages_emoji_groups_gen.go index e4ab993056..9a206bfd00 100644 --- a/tg/tl_messages_emoji_groups_gen.go +++ b/tg/tl_messages_emoji_groups_gen.go @@ -337,6 +337,10 @@ const MessagesEmojiGroupsClassName = "messages.EmojiGroups" // // See https://core.telegram.org/type/messages.EmojiGroups for reference. // +// Constructors: +// - [MessagesEmojiGroupsNotModified] +// - [MessagesEmojiGroups] +// // Example: // // g, err := tg.DecodeMessagesEmojiGroups(buf) diff --git a/tg/tl_messages_exported_chat_invite_gen.go b/tg/tl_messages_exported_chat_invite_gen.go index db225e9c1f..e53d7248fe 100644 --- a/tg/tl_messages_exported_chat_invite_gen.go +++ b/tg/tl_messages_exported_chat_invite_gen.go @@ -450,6 +450,10 @@ const MessagesExportedChatInviteClassName = "messages.ExportedChatInvite" // // See https://core.telegram.org/type/messages.ExportedChatInvite for reference. // +// Constructors: +// - [MessagesExportedChatInvite] +// - [MessagesExportedChatInviteReplaced] +// // Example: // // g, err := tg.DecodeMessagesExportedChatInvite(buf) diff --git a/tg/tl_messages_faved_stickers_gen.go b/tg/tl_messages_faved_stickers_gen.go index 2307794594..4f9b268f63 100644 --- a/tg/tl_messages_faved_stickers_gen.go +++ b/tg/tl_messages_faved_stickers_gen.go @@ -370,6 +370,10 @@ const MessagesFavedStickersClassName = "messages.FavedStickers" // // See https://core.telegram.org/type/messages.FavedStickers for reference. // +// Constructors: +// - [MessagesFavedStickersNotModified] +// - [MessagesFavedStickers] +// // Example: // // g, err := tg.DecodeMessagesFavedStickers(buf) diff --git a/tg/tl_messages_featured_stickers_gen.go b/tg/tl_messages_featured_stickers_gen.go index ed46b013e3..354dc2a9ae 100644 --- a/tg/tl_messages_featured_stickers_gen.go +++ b/tg/tl_messages_featured_stickers_gen.go @@ -484,6 +484,10 @@ const MessagesFeaturedStickersClassName = "messages.FeaturedStickers" // // See https://core.telegram.org/type/messages.FeaturedStickers for reference. // +// Constructors: +// - [MessagesFeaturedStickersNotModified] +// - [MessagesFeaturedStickers] +// // Example: // // g, err := tg.DecodeMessagesFeaturedStickers(buf) diff --git a/tg/tl_messages_filter_gen.go b/tg/tl_messages_filter_gen.go index cd7e181039..0c38e7fa5d 100644 --- a/tg/tl_messages_filter_gen.go +++ b/tg/tl_messages_filter_gen.go @@ -1837,6 +1837,25 @@ const MessagesFilterClassName = "MessagesFilter" // // See https://core.telegram.org/type/MessagesFilter for reference. // +// Constructors: +// - [InputMessagesFilterEmpty] +// - [InputMessagesFilterPhotos] +// - [InputMessagesFilterVideo] +// - [InputMessagesFilterPhotoVideo] +// - [InputMessagesFilterDocument] +// - [InputMessagesFilterURL] +// - [InputMessagesFilterGif] +// - [InputMessagesFilterVoice] +// - [InputMessagesFilterMusic] +// - [InputMessagesFilterChatPhotos] +// - [InputMessagesFilterPhoneCalls] +// - [InputMessagesFilterRoundVoice] +// - [InputMessagesFilterRoundVideo] +// - [InputMessagesFilterMyMentions] +// - [InputMessagesFilterGeo] +// - [InputMessagesFilterContacts] +// - [InputMessagesFilterPinned] +// // Example: // // g, err := tg.DecodeMessagesFilter(buf) diff --git a/tg/tl_messages_found_sticker_sets_gen.go b/tg/tl_messages_found_sticker_sets_gen.go index 01adbcb941..60c7385385 100644 --- a/tg/tl_messages_found_sticker_sets_gen.go +++ b/tg/tl_messages_found_sticker_sets_gen.go @@ -328,6 +328,10 @@ const MessagesFoundStickerSetsClassName = "messages.FoundStickerSets" // // See https://core.telegram.org/type/messages.FoundStickerSets for reference. // +// Constructors: +// - [MessagesFoundStickerSetsNotModified] +// - [MessagesFoundStickerSets] +// // Example: // // g, err := tg.DecodeMessagesFoundStickerSets(buf) diff --git a/tg/tl_messages_found_stickers_gen.go b/tg/tl_messages_found_stickers_gen.go index 063cdc034a..7cc152461b 100644 --- a/tg/tl_messages_found_stickers_gen.go +++ b/tg/tl_messages_found_stickers_gen.go @@ -478,6 +478,10 @@ const MessagesFoundStickersClassName = "messages.FoundStickers" // // See https://core.telegram.org/type/messages.FoundStickers for reference. // +// Constructors: +// - [MessagesFoundStickersNotModified] +// - [MessagesFoundStickers] +// // Example: // // g, err := tg.DecodeMessagesFoundStickers(buf) diff --git a/tg/tl_messages_messages_gen.go b/tg/tl_messages_messages_gen.go index e735098cb7..17f2ff5286 100644 --- a/tg/tl_messages_messages_gen.go +++ b/tg/tl_messages_messages_gen.go @@ -1349,6 +1349,12 @@ const MessagesMessagesClassName = "messages.Messages" // // See https://core.telegram.org/type/messages.Messages for reference. // +// Constructors: +// - [MessagesMessages] +// - [MessagesMessagesSlice] +// - [MessagesChannelMessages] +// - [MessagesMessagesNotModified] +// // Example: // // g, err := tg.DecodeMessagesMessages(buf) diff --git a/tg/tl_messages_quick_replies_gen.go b/tg/tl_messages_quick_replies_gen.go index a6f6dad03d..8425b505d6 100644 --- a/tg/tl_messages_quick_replies_gen.go +++ b/tg/tl_messages_quick_replies_gen.go @@ -446,6 +446,10 @@ const MessagesQuickRepliesClassName = "messages.QuickReplies" // // See https://core.telegram.org/type/messages.QuickReplies for reference. // +// Constructors: +// - [MessagesQuickReplies] +// - [MessagesQuickRepliesNotModified] +// // Example: // // g, err := tg.DecodeMessagesQuickReplies(buf) diff --git a/tg/tl_messages_reactions_gen.go b/tg/tl_messages_reactions_gen.go index cb3fcb2527..bbb92ee916 100644 --- a/tg/tl_messages_reactions_gen.go +++ b/tg/tl_messages_reactions_gen.go @@ -334,6 +334,10 @@ const MessagesReactionsClassName = "messages.Reactions" // // See https://core.telegram.org/type/messages.Reactions for reference. // +// Constructors: +// - [MessagesReactionsNotModified] +// - [MessagesReactions] +// // Example: // // g, err := tg.DecodeMessagesReactions(buf) diff --git a/tg/tl_messages_recent_stickers_gen.go b/tg/tl_messages_recent_stickers_gen.go index 43ff94e24a..42ed270a50 100644 --- a/tg/tl_messages_recent_stickers_gen.go +++ b/tg/tl_messages_recent_stickers_gen.go @@ -410,6 +410,10 @@ const MessagesRecentStickersClassName = "messages.RecentStickers" // // See https://core.telegram.org/type/messages.RecentStickers for reference. // +// Constructors: +// - [MessagesRecentStickersNotModified] +// - [MessagesRecentStickers] +// // Example: // // g, err := tg.DecodeMessagesRecentStickers(buf) diff --git a/tg/tl_messages_saved_dialogs_gen.go b/tg/tl_messages_saved_dialogs_gen.go index 19d468f1e4..f99dfc9282 100644 --- a/tg/tl_messages_saved_dialogs_gen.go +++ b/tg/tl_messages_saved_dialogs_gen.go @@ -812,6 +812,11 @@ const MessagesSavedDialogsClassName = "messages.SavedDialogs" // // See https://core.telegram.org/type/messages.SavedDialogs for reference. // +// Constructors: +// - [MessagesSavedDialogs] +// - [MessagesSavedDialogsSlice] +// - [MessagesSavedDialogsNotModified] +// // Example: // // g, err := tg.DecodeMessagesSavedDialogs(buf) diff --git a/tg/tl_messages_saved_gifs_gen.go b/tg/tl_messages_saved_gifs_gen.go index 9941ea9d7a..febb50469f 100644 --- a/tg/tl_messages_saved_gifs_gen.go +++ b/tg/tl_messages_saved_gifs_gen.go @@ -328,6 +328,10 @@ const MessagesSavedGifsClassName = "messages.SavedGifs" // // See https://core.telegram.org/type/messages.SavedGifs for reference. // +// Constructors: +// - [MessagesSavedGifsNotModified] +// - [MessagesSavedGifs] +// // Example: // // g, err := tg.DecodeMessagesSavedGifs(buf) diff --git a/tg/tl_messages_saved_reaction_tags_gen.go b/tg/tl_messages_saved_reaction_tags_gen.go index a5371e2a20..cd7a96a2e3 100644 --- a/tg/tl_messages_saved_reaction_tags_gen.go +++ b/tg/tl_messages_saved_reaction_tags_gen.go @@ -326,6 +326,10 @@ const MessagesSavedReactionTagsClassName = "messages.SavedReactionTags" // // See https://core.telegram.org/type/messages.SavedReactionTags for reference. // +// Constructors: +// - [MessagesSavedReactionTagsNotModified] +// - [MessagesSavedReactionTags] +// // Example: // // g, err := tg.DecodeMessagesSavedReactionTags(buf) diff --git a/tg/tl_messages_sent_encrypted_message_gen.go b/tg/tl_messages_sent_encrypted_message_gen.go index 4bf81fa931..c236a13017 100644 --- a/tg/tl_messages_sent_encrypted_message_gen.go +++ b/tg/tl_messages_sent_encrypted_message_gen.go @@ -340,6 +340,10 @@ const MessagesSentEncryptedMessageClassName = "messages.SentEncryptedMessage" // // See https://core.telegram.org/type/messages.SentEncryptedMessage for reference. // +// Constructors: +// - [MessagesSentEncryptedMessage] +// - [MessagesSentEncryptedFile] +// // Example: // // g, err := tg.DecodeMessagesSentEncryptedMessage(buf) diff --git a/tg/tl_messages_sponsored_messages_gen.go b/tg/tl_messages_sponsored_messages_gen.go index 22f3f83fc8..bc040b3fb8 100644 --- a/tg/tl_messages_sponsored_messages_gen.go +++ b/tg/tl_messages_sponsored_messages_gen.go @@ -460,6 +460,10 @@ const MessagesSponsoredMessagesClassName = "messages.SponsoredMessages" // // See https://core.telegram.org/type/messages.SponsoredMessages for reference. // +// Constructors: +// - [MessagesSponsoredMessages] +// - [MessagesSponsoredMessagesEmpty] +// // Example: // // g, err := tg.DecodeMessagesSponsoredMessages(buf) diff --git a/tg/tl_messages_sticker_set_gen.go b/tg/tl_messages_sticker_set_gen.go index bb7f7d6390..438c59a5e3 100644 --- a/tg/tl_messages_sticker_set_gen.go +++ b/tg/tl_messages_sticker_set_gen.go @@ -409,6 +409,10 @@ const MessagesStickerSetClassName = "messages.StickerSet" // // See https://core.telegram.org/type/messages.StickerSet for reference. // +// Constructors: +// - [MessagesStickerSet] +// - [MessagesStickerSetNotModified] +// // Example: // // g, err := tg.DecodeMessagesStickerSet(buf) diff --git a/tg/tl_messages_sticker_set_install_result_gen.go b/tg/tl_messages_sticker_set_install_result_gen.go index 0f0af2b889..193997122d 100644 --- a/tg/tl_messages_sticker_set_install_result_gen.go +++ b/tg/tl_messages_sticker_set_install_result_gen.go @@ -303,6 +303,10 @@ const MessagesStickerSetInstallResultClassName = "messages.StickerSetInstallResu // // See https://core.telegram.org/type/messages.StickerSetInstallResult for reference. // +// Constructors: +// - [MessagesStickerSetInstallResultSuccess] +// - [MessagesStickerSetInstallResultArchive] +// // Example: // // g, err := tg.DecodeMessagesStickerSetInstallResult(buf) diff --git a/tg/tl_messages_stickers_gen.go b/tg/tl_messages_stickers_gen.go index 5a1a9b843b..68cfcd50a5 100644 --- a/tg/tl_messages_stickers_gen.go +++ b/tg/tl_messages_stickers_gen.go @@ -328,6 +328,10 @@ const MessagesStickersClassName = "messages.Stickers" // // See https://core.telegram.org/type/messages.Stickers for reference. // +// Constructors: +// - [MessagesStickersNotModified] +// - [MessagesStickers] +// // Example: // // g, err := tg.DecodeMessagesStickers(buf) diff --git a/tg/tl_notification_sound_gen.go b/tg/tl_notification_sound_gen.go index f53a90754e..f78e7e3716 100644 --- a/tg/tl_notification_sound_gen.go +++ b/tg/tl_notification_sound_gen.go @@ -543,6 +543,12 @@ const NotificationSoundClassName = "NotificationSound" // // See https://core.telegram.org/type/NotificationSound for reference. // +// Constructors: +// - [NotificationSoundDefault] +// - [NotificationSoundNone] +// - [NotificationSoundLocal] +// - [NotificationSoundRingtone] +// // Example: // // g, err := tg.DecodeNotificationSound(buf) diff --git a/tg/tl_notify_peer_gen.go b/tg/tl_notify_peer_gen.go index d6aeb3b54e..78fad9f151 100644 --- a/tg/tl_notify_peer_gen.go +++ b/tg/tl_notify_peer_gen.go @@ -658,6 +658,13 @@ const NotifyPeerClassName = "NotifyPeer" // // See https://core.telegram.org/type/NotifyPeer for reference. // +// Constructors: +// - [NotifyPeer] +// - [NotifyUsers] +// - [NotifyChats] +// - [NotifyBroadcasts] +// - [NotifyForumTopic] +// // Example: // // g, err := tg.DecodeNotifyPeer(buf) diff --git a/tg/tl_page_block_gen.go b/tg/tl_page_block_gen.go index d76989d29a..a30f9da074 100644 --- a/tg/tl_page_block_gen.go +++ b/tg/tl_page_block_gen.go @@ -5433,6 +5433,37 @@ const PageBlockClassName = "PageBlock" // // See https://core.telegram.org/type/PageBlock for reference. // +// Constructors: +// - [PageBlockUnsupported] +// - [PageBlockTitle] +// - [PageBlockSubtitle] +// - [PageBlockAuthorDate] +// - [PageBlockHeader] +// - [PageBlockSubheader] +// - [PageBlockParagraph] +// - [PageBlockPreformatted] +// - [PageBlockFooter] +// - [PageBlockDivider] +// - [PageBlockAnchor] +// - [PageBlockList] +// - [PageBlockBlockquote] +// - [PageBlockPullquote] +// - [PageBlockPhoto] +// - [PageBlockVideo] +// - [PageBlockCover] +// - [PageBlockEmbed] +// - [PageBlockEmbedPost] +// - [PageBlockCollage] +// - [PageBlockSlideshow] +// - [PageBlockChannel] +// - [PageBlockAudio] +// - [PageBlockKicker] +// - [PageBlockTable] +// - [PageBlockOrderedList] +// - [PageBlockDetails] +// - [PageBlockRelatedArticles] +// - [PageBlockMap] +// // Example: // // g, err := tg.DecodePageBlock(buf) diff --git a/tg/tl_page_list_item_gen.go b/tg/tl_page_list_item_gen.go index aee43c9fa4..5e8ebd79ef 100644 --- a/tg/tl_page_list_item_gen.go +++ b/tg/tl_page_list_item_gen.go @@ -336,6 +336,10 @@ const PageListItemClassName = "PageListItem" // // See https://core.telegram.org/type/PageListItem for reference. // +// Constructors: +// - [PageListItemText] +// - [PageListItemBlocks] +// // Example: // // g, err := tg.DecodePageListItem(buf) diff --git a/tg/tl_page_list_ordered_item_gen.go b/tg/tl_page_list_ordered_item_gen.go index e91ee6ff00..e66353891f 100644 --- a/tg/tl_page_list_ordered_item_gen.go +++ b/tg/tl_page_list_ordered_item_gen.go @@ -393,6 +393,10 @@ const PageListOrderedItemClassName = "PageListOrderedItem" // // See https://core.telegram.org/type/PageListOrderedItem for reference. // +// Constructors: +// - [PageListOrderedItemText] +// - [PageListOrderedItemBlocks] +// // Example: // // g, err := tg.DecodePageListOrderedItem(buf) diff --git a/tg/tl_password_kdf_algo_gen.go b/tg/tl_password_kdf_algo_gen.go index 9957aa6d60..1c1277eea7 100644 --- a/tg/tl_password_kdf_algo_gen.go +++ b/tg/tl_password_kdf_algo_gen.go @@ -374,6 +374,10 @@ const PasswordKdfAlgoClassName = "PasswordKdfAlgo" // // See https://core.telegram.org/type/PasswordKdfAlgo for reference. // +// Constructors: +// - [PasswordKdfAlgoUnknown] +// - [PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow] +// // Example: // // g, err := tg.DecodePasswordKdfAlgo(buf) diff --git a/tg/tl_payments_giveaway_info_gen.go b/tg/tl_payments_giveaway_info_gen.go index 8cfd8ab86b..03ecaee34e 100644 --- a/tg/tl_payments_giveaway_info_gen.go +++ b/tg/tl_payments_giveaway_info_gen.go @@ -863,6 +863,10 @@ const PaymentsGiveawayInfoClassName = "payments.GiveawayInfo" // // See https://core.telegram.org/type/payments.GiveawayInfo for reference. // +// Constructors: +// - [PaymentsGiveawayInfo] +// - [PaymentsGiveawayInfoResults] +// // Example: // // g, err := tg.DecodePaymentsGiveawayInfo(buf) diff --git a/tg/tl_payments_payment_form_gen.go b/tg/tl_payments_payment_form_gen.go index 29fc8360b9..6e204c2541 100644 --- a/tg/tl_payments_payment_form_gen.go +++ b/tg/tl_payments_payment_form_gen.go @@ -1345,6 +1345,11 @@ const PaymentsPaymentFormClassName = "payments.PaymentForm" // // See https://core.telegram.org/type/payments.PaymentForm for reference. // +// Constructors: +// - [PaymentsPaymentForm] +// - [PaymentsPaymentFormStars] +// - [PaymentsPaymentFormStarGift] +// // Example: // // g, err := tg.DecodePaymentsPaymentForm(buf) diff --git a/tg/tl_payments_payment_receipt_gen.go b/tg/tl_payments_payment_receipt_gen.go index 5b3c1934fd..06efac384b 100644 --- a/tg/tl_payments_payment_receipt_gen.go +++ b/tg/tl_payments_payment_receipt_gen.go @@ -1120,6 +1120,10 @@ const PaymentsPaymentReceiptClassName = "payments.PaymentReceipt" // // See https://core.telegram.org/type/payments.PaymentReceipt for reference. // +// Constructors: +// - [PaymentsPaymentReceipt] +// - [PaymentsPaymentReceiptStars] +// // Example: // // g, err := tg.DecodePaymentsPaymentReceipt(buf) diff --git a/tg/tl_payments_payment_result_gen.go b/tg/tl_payments_payment_result_gen.go index e24c91f3cc..76c1b25fb4 100644 --- a/tg/tl_payments_payment_result_gen.go +++ b/tg/tl_payments_payment_result_gen.go @@ -313,6 +313,10 @@ const PaymentsPaymentResultClassName = "payments.PaymentResult" // // See https://core.telegram.org/type/payments.PaymentResult for reference. // +// Constructors: +// - [PaymentsPaymentResult] +// - [PaymentsPaymentVerificationNeeded] +// // Example: // // g, err := tg.DecodePaymentsPaymentResult(buf) diff --git a/tg/tl_payments_star_gifts_gen.go b/tg/tl_payments_star_gifts_gen.go index 351294e64b..7b02853110 100644 --- a/tg/tl_payments_star_gifts_gen.go +++ b/tg/tl_payments_star_gifts_gen.go @@ -334,6 +334,10 @@ const PaymentsStarGiftsClassName = "payments.StarGifts" // // See https://core.telegram.org/type/payments.StarGifts for reference. // +// Constructors: +// - [PaymentsStarGiftsNotModified] +// - [PaymentsStarGifts] +// // Example: // // g, err := tg.DecodePaymentsStarGifts(buf) diff --git a/tg/tl_peer_gen.go b/tg/tl_peer_gen.go index 1ed6a0b8ed..8879cb64f5 100644 --- a/tg/tl_peer_gen.go +++ b/tg/tl_peer_gen.go @@ -443,6 +443,11 @@ const PeerClassName = "Peer" // // See https://core.telegram.org/type/Peer for reference. // +// Constructors: +// - [PeerUser] +// - [PeerChat] +// - [PeerChannel] +// // Example: // // g, err := tg.DecodePeer(buf) diff --git a/tg/tl_peer_located_gen.go b/tg/tl_peer_located_gen.go index fedb7d681b..f542c51e99 100644 --- a/tg/tl_peer_located_gen.go +++ b/tg/tl_peer_located_gen.go @@ -367,6 +367,10 @@ const PeerLocatedClassName = "PeerLocated" // // See https://core.telegram.org/type/PeerLocated for reference. // +// Constructors: +// - [PeerLocated] +// - [PeerSelfLocated] +// // Example: // // g, err := tg.DecodePeerLocated(buf) diff --git a/tg/tl_phone_call_discard_reason_gen.go b/tg/tl_phone_call_discard_reason_gen.go index f288a624a5..adb024bf5f 100644 --- a/tg/tl_phone_call_discard_reason_gen.go +++ b/tg/tl_phone_call_discard_reason_gen.go @@ -580,6 +580,13 @@ const PhoneCallDiscardReasonClassName = "PhoneCallDiscardReason" // // See https://core.telegram.org/type/PhoneCallDiscardReason for reference. // +// Constructors: +// - [PhoneCallDiscardReasonMissed] +// - [PhoneCallDiscardReasonDisconnect] +// - [PhoneCallDiscardReasonHangup] +// - [PhoneCallDiscardReasonBusy] +// - [PhoneCallDiscardReasonAllowGroupCall] +// // Example: // // g, err := tg.DecodePhoneCallDiscardReason(buf) diff --git a/tg/tl_phone_call_gen.go b/tg/tl_phone_call_gen.go index 6f7bf45013..151e3fead2 100644 --- a/tg/tl_phone_call_gen.go +++ b/tg/tl_phone_call_gen.go @@ -2413,6 +2413,14 @@ const PhoneCallClassName = "PhoneCall" // // See https://core.telegram.org/type/PhoneCall for reference. // +// Constructors: +// - [PhoneCallEmpty] +// - [PhoneCallWaiting] +// - [PhoneCallRequested] +// - [PhoneCallAccepted] +// - [PhoneCall] +// - [PhoneCallDiscarded] +// // Example: // // g, err := tg.DecodePhoneCall(buf) diff --git a/tg/tl_phone_connection_gen.go b/tg/tl_phone_connection_gen.go index 4514106242..7f441d2aef 100644 --- a/tg/tl_phone_connection_gen.go +++ b/tg/tl_phone_connection_gen.go @@ -698,6 +698,10 @@ const PhoneConnectionClassName = "PhoneConnection" // // See https://core.telegram.org/type/PhoneConnection for reference. // +// Constructors: +// - [PhoneConnection] +// - [PhoneConnectionWebrtc] +// // Example: // // g, err := tg.DecodePhoneConnection(buf) diff --git a/tg/tl_photo_gen.go b/tg/tl_photo_gen.go index 88086ad183..2be924842e 100644 --- a/tg/tl_photo_gen.go +++ b/tg/tl_photo_gen.go @@ -602,6 +602,10 @@ const PhotoClassName = "Photo" // // See https://core.telegram.org/type/Photo for reference. // +// Constructors: +// - [PhotoEmpty] +// - [Photo] +// // Example: // // g, err := tg.DecodePhoto(buf) diff --git a/tg/tl_photo_size_gen.go b/tg/tl_photo_size_gen.go index 4710f59aab..f158032ce5 100644 --- a/tg/tl_photo_size_gen.go +++ b/tg/tl_photo_size_gen.go @@ -1175,6 +1175,14 @@ const PhotoSizeClassName = "PhotoSize" // // See https://core.telegram.org/type/PhotoSize for reference. // +// Constructors: +// - [PhotoSizeEmpty] +// - [PhotoSize] +// - [PhotoCachedSize] +// - [PhotoStrippedSize] +// - [PhotoSizeProgressive] +// - [PhotoPathSize] +// // Example: // // g, err := tg.DecodePhotoSize(buf) diff --git a/tg/tl_photos_photos_gen.go b/tg/tl_photos_photos_gen.go index ac6e398395..af7b268188 100644 --- a/tg/tl_photos_photos_gen.go +++ b/tg/tl_photos_photos_gen.go @@ -481,6 +481,10 @@ const PhotosPhotosClassName = "photos.Photos" // // See https://core.telegram.org/type/photos.Photos for reference. // +// Constructors: +// - [PhotosPhotos] +// - [PhotosPhotosSlice] +// // Example: // // g, err := tg.DecodePhotosPhotos(buf) diff --git a/tg/tl_post_interaction_counters_gen.go b/tg/tl_post_interaction_counters_gen.go index 5b2671f4f3..c58765bbbb 100644 --- a/tg/tl_post_interaction_counters_gen.go +++ b/tg/tl_post_interaction_counters_gen.go @@ -470,6 +470,10 @@ const PostInteractionCountersClassName = "PostInteractionCounters" // // See https://core.telegram.org/type/PostInteractionCounters for reference. // +// Constructors: +// - [PostInteractionCountersMessage] +// - [PostInteractionCountersStory] +// // Example: // // g, err := tg.DecodePostInteractionCounters(buf) diff --git a/tg/tl_prepaid_giveaway_gen.go b/tg/tl_prepaid_giveaway_gen.go index 7af1a3b671..38e381b5a5 100644 --- a/tg/tl_prepaid_giveaway_gen.go +++ b/tg/tl_prepaid_giveaway_gen.go @@ -512,6 +512,10 @@ const PrepaidGiveawayClassName = "PrepaidGiveaway" // // See https://core.telegram.org/type/PrepaidGiveaway for reference. // +// Constructors: +// - [PrepaidGiveaway] +// - [PrepaidStarsGiveaway] +// // Example: // // g, err := tg.DecodePrepaidGiveaway(buf) diff --git a/tg/tl_privacy_key_gen.go b/tg/tl_privacy_key_gen.go index 12fcb4fd37..8789cb72b7 100644 --- a/tg/tl_privacy_key_gen.go +++ b/tg/tl_privacy_key_gen.go @@ -1281,6 +1281,20 @@ const PrivacyKeyClassName = "PrivacyKey" // // See https://core.telegram.org/type/PrivacyKey for reference. // +// Constructors: +// - [PrivacyKeyStatusTimestamp] +// - [PrivacyKeyChatInvite] +// - [PrivacyKeyPhoneCall] +// - [PrivacyKeyPhoneP2P] +// - [PrivacyKeyForwards] +// - [PrivacyKeyProfilePhoto] +// - [PrivacyKeyPhoneNumber] +// - [PrivacyKeyAddedByPhone] +// - [PrivacyKeyVoiceMessages] +// - [PrivacyKeyAbout] +// - [PrivacyKeyBirthday] +// - [PrivacyKeyStarGiftsAutoSave] +// // Example: // // g, err := tg.DecodePrivacyKey(buf) diff --git a/tg/tl_privacy_rule_gen.go b/tg/tl_privacy_rule_gen.go index 1c0fab9ed1..5aaa60b2ca 100644 --- a/tg/tl_privacy_rule_gen.go +++ b/tg/tl_privacy_rule_gen.go @@ -1454,6 +1454,20 @@ const PrivacyRuleClassName = "PrivacyRule" // // See https://core.telegram.org/type/PrivacyRule for reference. // +// Constructors: +// - [PrivacyValueAllowContacts] +// - [PrivacyValueAllowAll] +// - [PrivacyValueAllowUsers] +// - [PrivacyValueDisallowContacts] +// - [PrivacyValueDisallowAll] +// - [PrivacyValueDisallowUsers] +// - [PrivacyValueAllowChatParticipants] +// - [PrivacyValueDisallowChatParticipants] +// - [PrivacyValueAllowCloseFriends] +// - [PrivacyValueAllowPremium] +// - [PrivacyValueAllowBots] +// - [PrivacyValueDisallowBots] +// // Example: // // g, err := tg.DecodePrivacyRule(buf) diff --git a/tg/tl_public_forward_gen.go b/tg/tl_public_forward_gen.go index 6d22e990b5..87493e55a1 100644 --- a/tg/tl_public_forward_gen.go +++ b/tg/tl_public_forward_gen.go @@ -356,6 +356,10 @@ const PublicForwardClassName = "PublicForward" // // See https://core.telegram.org/type/PublicForward for reference. // +// Constructors: +// - [PublicForwardMessage] +// - [PublicForwardStory] +// // Example: // // g, err := tg.DecodePublicForward(buf) diff --git a/tg/tl_reaction_gen.go b/tg/tl_reaction_gen.go index 0f488d77a2..e20b52aa51 100644 --- a/tg/tl_reaction_gen.go +++ b/tg/tl_reaction_gen.go @@ -521,6 +521,12 @@ const ReactionClassName = "Reaction" // // See https://core.telegram.org/type/Reaction for reference. // +// Constructors: +// - [ReactionEmpty] +// - [ReactionEmoji] +// - [ReactionCustomEmoji] +// - [ReactionPaid] +// // Example: // // g, err := tg.DecodeReaction(buf) diff --git a/tg/tl_reaction_notifications_from_gen.go b/tg/tl_reaction_notifications_from_gen.go index 6babc34d7e..a505b41766 100644 --- a/tg/tl_reaction_notifications_from_gen.go +++ b/tg/tl_reaction_notifications_from_gen.go @@ -242,6 +242,10 @@ const ReactionNotificationsFromClassName = "ReactionNotificationsFrom" // // See https://core.telegram.org/type/ReactionNotificationsFrom for reference. // +// Constructors: +// - [ReactionNotificationsFromContacts] +// - [ReactionNotificationsFromAll] +// // Example: // // g, err := tg.DecodeReactionNotificationsFrom(buf) diff --git a/tg/tl_recent_me_url_gen.go b/tg/tl_recent_me_url_gen.go index 379b56ccba..7e6c2e0132 100644 --- a/tg/tl_recent_me_url_gen.go +++ b/tg/tl_recent_me_url_gen.go @@ -831,6 +831,13 @@ const RecentMeURLClassName = "RecentMeUrl" // // See https://core.telegram.org/type/RecentMeUrl for reference. // +// Constructors: +// - [RecentMeURLUnknown] +// - [RecentMeURLUser] +// - [RecentMeURLChat] +// - [RecentMeURLChatInvite] +// - [RecentMeURLStickerSet] +// // Example: // // g, err := tg.DecodeRecentMeURL(buf) diff --git a/tg/tl_reply_markup_gen.go b/tg/tl_reply_markup_gen.go index 5bb68916b3..52f5798537 100644 --- a/tg/tl_reply_markup_gen.go +++ b/tg/tl_reply_markup_gen.go @@ -981,6 +981,12 @@ const ReplyMarkupClassName = "ReplyMarkup" // // See https://core.telegram.org/type/ReplyMarkup for reference. // +// Constructors: +// - [ReplyKeyboardHide] +// - [ReplyKeyboardForceReply] +// - [ReplyKeyboardMarkup] +// - [ReplyInlineMarkup] +// // Example: // // g, err := tg.DecodeReplyMarkup(buf) diff --git a/tg/tl_report_reason_gen.go b/tg/tl_report_reason_gen.go index 3021ae55bd..2315c9485c 100644 --- a/tg/tl_report_reason_gen.go +++ b/tg/tl_report_reason_gen.go @@ -1058,6 +1058,18 @@ const ReportReasonClassName = "ReportReason" // // See https://core.telegram.org/type/ReportReason for reference. // +// Constructors: +// - [InputReportReasonSpam] +// - [InputReportReasonViolence] +// - [InputReportReasonPornography] +// - [InputReportReasonChildAbuse] +// - [InputReportReasonOther] +// - [InputReportReasonCopyright] +// - [InputReportReasonGeoIrrelevant] +// - [InputReportReasonFake] +// - [InputReportReasonIllegalDrugs] +// - [InputReportReasonPersonalDetails] +// // Example: // // g, err := tg.DecodeReportReason(buf) diff --git a/tg/tl_report_result_gen.go b/tg/tl_report_result_gen.go index 88b43b79c9..ce47e1edc2 100644 --- a/tg/tl_report_result_gen.go +++ b/tg/tl_report_result_gen.go @@ -525,6 +525,11 @@ const ReportResultClassName = "ReportResult" // // See https://core.telegram.org/type/ReportResult for reference. // +// Constructors: +// - [ReportResultChooseOption] +// - [ReportResultAddComment] +// - [ReportResultReported] +// // Example: // // g, err := tg.DecodeReportResult(buf) diff --git a/tg/tl_request_peer_type_gen.go b/tg/tl_request_peer_type_gen.go index da2a835246..670c8e068f 100644 --- a/tg/tl_request_peer_type_gen.go +++ b/tg/tl_request_peer_type_gen.go @@ -983,6 +983,11 @@ const RequestPeerTypeClassName = "RequestPeerType" // // See https://core.telegram.org/type/RequestPeerType for reference. // +// Constructors: +// - [RequestPeerTypeUser] +// - [RequestPeerTypeChat] +// - [RequestPeerTypeBroadcast] +// // Example: // // g, err := tg.DecodeRequestPeerType(buf) diff --git a/tg/tl_requested_peer_gen.go b/tg/tl_requested_peer_gen.go index 5f57f9360f..93a595c591 100644 --- a/tg/tl_requested_peer_gen.go +++ b/tg/tl_requested_peer_gen.go @@ -977,6 +977,11 @@ const RequestedPeerClassName = "RequestedPeer" // // See https://core.telegram.org/type/RequestedPeer for reference. // +// Constructors: +// - [RequestedPeerUser] +// - [RequestedPeerChat] +// - [RequestedPeerChannel] +// // Example: // // g, err := tg.DecodeRequestedPeer(buf) diff --git a/tg/tl_rich_text_gen.go b/tg/tl_rich_text_gen.go index 202aa88fa0..7632c31d7f 100644 --- a/tg/tl_rich_text_gen.go +++ b/tg/tl_rich_text_gen.go @@ -2437,6 +2437,24 @@ const RichTextClassName = "RichText" // // See https://core.telegram.org/type/RichText for reference. // +// Constructors: +// - [TextEmpty] +// - [TextPlain] +// - [TextBold] +// - [TextItalic] +// - [TextUnderline] +// - [TextStrike] +// - [TextFixed] +// - [TextURL] +// - [TextEmail] +// - [TextConcat] +// - [TextSubscript] +// - [TextSuperscript] +// - [TextMarked] +// - [TextPhone] +// - [TextImage] +// - [TextAnchor] +// // Example: // // g, err := tg.DecodeRichText(buf) diff --git a/tg/tl_secure_file_gen.go b/tg/tl_secure_file_gen.go index 5491f70deb..999471701c 100644 --- a/tg/tl_secure_file_gen.go +++ b/tg/tl_secure_file_gen.go @@ -441,6 +441,10 @@ const SecureFileClassName = "SecureFile" // // See https://core.telegram.org/type/SecureFile for reference. // +// Constructors: +// - [SecureFileEmpty] +// - [SecureFile] +// // Example: // // g, err := tg.DecodeSecureFile(buf) diff --git a/tg/tl_secure_password_kdf_algo_gen.go b/tg/tl_secure_password_kdf_algo_gen.go index e20bb4e28c..a5347f7565 100644 --- a/tg/tl_secure_password_kdf_algo_gen.go +++ b/tg/tl_secure_password_kdf_algo_gen.go @@ -412,6 +412,11 @@ const SecurePasswordKdfAlgoClassName = "SecurePasswordKdfAlgo" // // See https://core.telegram.org/type/SecurePasswordKdfAlgo for reference. // +// Constructors: +// - [SecurePasswordKdfAlgoUnknown] +// - [SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000] +// - [SecurePasswordKdfAlgoSHA512] +// // Example: // // g, err := tg.DecodeSecurePasswordKdfAlgo(buf) diff --git a/tg/tl_secure_plain_data_gen.go b/tg/tl_secure_plain_data_gen.go index 8eb34e1620..24d06afa22 100644 --- a/tg/tl_secure_plain_data_gen.go +++ b/tg/tl_secure_plain_data_gen.go @@ -316,6 +316,10 @@ const SecurePlainDataClassName = "SecurePlainData" // // See https://core.telegram.org/type/SecurePlainData for reference. // +// Constructors: +// - [SecurePlainPhone] +// - [SecurePlainEmail] +// // Example: // // g, err := tg.DecodeSecurePlainData(buf) diff --git a/tg/tl_secure_required_type_gen.go b/tg/tl_secure_required_type_gen.go index 715d9e6940..7e69562ff6 100644 --- a/tg/tl_secure_required_type_gen.go +++ b/tg/tl_secure_required_type_gen.go @@ -462,6 +462,10 @@ const SecureRequiredTypeClassName = "SecureRequiredType" // // See https://core.telegram.org/type/SecureRequiredType for reference. // +// Constructors: +// - [SecureRequiredType] +// - [SecureRequiredTypeOneOf] +// // Example: // // g, err := tg.DecodeSecureRequiredType(buf) diff --git a/tg/tl_secure_value_error_gen.go b/tg/tl_secure_value_error_gen.go index fa25b3e68f..ce6e52d3aa 100644 --- a/tg/tl_secure_value_error_gen.go +++ b/tg/tl_secure_value_error_gen.go @@ -1924,6 +1924,17 @@ const SecureValueErrorClassName = "SecureValueError" // // See https://core.telegram.org/type/SecureValueError for reference. // +// Constructors: +// - [SecureValueErrorData] +// - [SecureValueErrorFrontSide] +// - [SecureValueErrorReverseSide] +// - [SecureValueErrorSelfie] +// - [SecureValueErrorFile] +// - [SecureValueErrorFiles] +// - [SecureValueError] +// - [SecureValueErrorTranslationFile] +// - [SecureValueErrorTranslationFiles] +// // Example: // // g, err := tg.DecodeSecureValueError(buf) diff --git a/tg/tl_secure_value_type_gen.go b/tg/tl_secure_value_type_gen.go index c7c38ece8c..62b7b95e2c 100644 --- a/tg/tl_secure_value_type_gen.go +++ b/tg/tl_secure_value_type_gen.go @@ -1370,6 +1370,21 @@ const SecureValueTypeClassName = "SecureValueType" // // See https://core.telegram.org/type/SecureValueType for reference. // +// Constructors: +// - [SecureValueTypePersonalDetails] +// - [SecureValueTypePassport] +// - [SecureValueTypeDriverLicense] +// - [SecureValueTypeIdentityCard] +// - [SecureValueTypeInternalPassport] +// - [SecureValueTypeAddress] +// - [SecureValueTypeUtilityBill] +// - [SecureValueTypeBankStatement] +// - [SecureValueTypeRentalAgreement] +// - [SecureValueTypePassportRegistration] +// - [SecureValueTypeTemporaryRegistration] +// - [SecureValueTypePhone] +// - [SecureValueTypeEmail] +// // Example: // // g, err := tg.DecodeSecureValueType(buf) diff --git a/tg/tl_send_message_action_gen.go b/tg/tl_send_message_action_gen.go index ace02c4464..474c31e2c4 100644 --- a/tg/tl_send_message_action_gen.go +++ b/tg/tl_send_message_action_gen.go @@ -2204,6 +2204,26 @@ const SendMessageActionClassName = "SendMessageAction" // // See https://core.telegram.org/type/SendMessageAction for reference. // +// Constructors: +// - [SendMessageTypingAction] +// - [SendMessageCancelAction] +// - [SendMessageRecordVideoAction] +// - [SendMessageUploadVideoAction] +// - [SendMessageRecordAudioAction] +// - [SendMessageUploadAudioAction] +// - [SendMessageUploadPhotoAction] +// - [SendMessageUploadDocumentAction] +// - [SendMessageGeoLocationAction] +// - [SendMessageChooseContactAction] +// - [SendMessageGamePlayAction] +// - [SendMessageRecordRoundAction] +// - [SendMessageUploadRoundAction] +// - [SpeakingInGroupCallAction] +// - [SendMessageHistoryImportAction] +// - [SendMessageChooseStickerAction] +// - [SendMessageEmojiInteraction] +// - [SendMessageEmojiInteractionSeen] +// // Example: // // g, err := tg.DecodeSendMessageAction(buf) diff --git a/tg/tl_star_gift_attribute_gen.go b/tg/tl_star_gift_attribute_gen.go index f6b3d1d887..528b655258 100644 --- a/tg/tl_star_gift_attribute_gen.go +++ b/tg/tl_star_gift_attribute_gen.go @@ -978,6 +978,12 @@ const StarGiftAttributeClassName = "StarGiftAttribute" // // See https://core.telegram.org/type/StarGiftAttribute for reference. // +// Constructors: +// - [StarGiftAttributeModel] +// - [StarGiftAttributePattern] +// - [StarGiftAttributeBackdrop] +// - [StarGiftAttributeOriginalDetails] +// // Example: // // g, err := tg.DecodeStarGiftAttribute(buf) diff --git a/tg/tl_star_gift_gen.go b/tg/tl_star_gift_gen.go index faa3c64971..be156c01b2 100644 --- a/tg/tl_star_gift_gen.go +++ b/tg/tl_star_gift_gen.go @@ -1124,6 +1124,10 @@ const StarGiftClassName = "StarGift" // // See https://core.telegram.org/type/StarGift for reference. // +// Constructors: +// - [StarGift] +// - [StarGiftUnique] +// // Example: // // g, err := tg.DecodeStarGift(buf) diff --git a/tg/tl_stars_transaction_peer_gen.go b/tg/tl_stars_transaction_peer_gen.go index a7d3adae27..b8152f8707 100644 --- a/tg/tl_stars_transaction_peer_gen.go +++ b/tg/tl_stars_transaction_peer_gen.go @@ -930,6 +930,16 @@ const StarsTransactionPeerClassName = "StarsTransactionPeer" // // See https://core.telegram.org/type/StarsTransactionPeer for reference. // +// Constructors: +// - [StarsTransactionPeerUnsupported] +// - [StarsTransactionPeerAppStore] +// - [StarsTransactionPeerPlayMarket] +// - [StarsTransactionPeerPremiumBot] +// - [StarsTransactionPeerFragment] +// - [StarsTransactionPeer] +// - [StarsTransactionPeerAds] +// - [StarsTransactionPeerAPI] +// // Example: // // g, err := tg.DecodeStarsTransactionPeer(buf) diff --git a/tg/tl_stats_graph_gen.go b/tg/tl_stats_graph_gen.go index b90d93959a..cc1c76e5e8 100644 --- a/tg/tl_stats_graph_gen.go +++ b/tg/tl_stats_graph_gen.go @@ -523,6 +523,11 @@ const StatsGraphClassName = "StatsGraph" // // See https://core.telegram.org/type/StatsGraph for reference. // +// Constructors: +// - [StatsGraphAsync] +// - [StatsGraphError] +// - [StatsGraph] +// // Example: // // g, err := tg.DecodeStatsGraph(buf) diff --git a/tg/tl_sticker_set_covered_gen.go b/tg/tl_sticker_set_covered_gen.go index 133f621841..f4cf845db6 100644 --- a/tg/tl_sticker_set_covered_gen.go +++ b/tg/tl_sticker_set_covered_gen.go @@ -800,6 +800,12 @@ const StickerSetCoveredClassName = "StickerSetCovered" // // See https://core.telegram.org/type/StickerSetCovered for reference. // +// Constructors: +// - [StickerSetCovered] +// - [StickerSetMultiCovered] +// - [StickerSetFullCovered] +// - [StickerSetNoCovered] +// // Example: // // g, err := tg.DecodeStickerSetCovered(buf) diff --git a/tg/tl_storage_file_type_gen.go b/tg/tl_storage_file_type_gen.go index ce1836091c..394ad1fe3e 100644 --- a/tg/tl_storage_file_type_gen.go +++ b/tg/tl_storage_file_type_gen.go @@ -1058,6 +1058,18 @@ const StorageFileTypeClassName = "storage.FileType" // // See https://core.telegram.org/type/storage.FileType for reference. // +// Constructors: +// - [StorageFileUnknown] +// - [StorageFilePartial] +// - [StorageFileJpeg] +// - [StorageFileGif] +// - [StorageFilePng] +// - [StorageFilePdf] +// - [StorageFileMp3] +// - [StorageFileMov] +// - [StorageFileMp4] +// - [StorageFileWebp] +// // Example: // // g, err := tg.DecodeStorageFileType(buf) diff --git a/tg/tl_stories_all_stories_gen.go b/tg/tl_stories_all_stories_gen.go index 48b4c107f3..74eea8c97e 100644 --- a/tg/tl_stories_all_stories_gen.go +++ b/tg/tl_stories_all_stories_gen.go @@ -623,6 +623,10 @@ const StoriesAllStoriesClassName = "stories.AllStories" // // See https://core.telegram.org/type/stories.AllStories for reference. // +// Constructors: +// - [StoriesAllStoriesNotModified] +// - [StoriesAllStories] +// // Example: // // g, err := tg.DecodeStoriesAllStories(buf) diff --git a/tg/tl_story_item_gen.go b/tg/tl_story_item_gen.go index 5db612a51e..71c10a830a 100644 --- a/tg/tl_story_item_gen.go +++ b/tg/tl_story_item_gen.go @@ -1484,6 +1484,11 @@ const StoryItemClassName = "StoryItem" // // See https://core.telegram.org/type/StoryItem for reference. // +// Constructors: +// - [StoryItemDeleted] +// - [StoryItemSkipped] +// - [StoryItem] +// // Example: // // g, err := tg.DecodeStoryItem(buf) diff --git a/tg/tl_story_reaction_gen.go b/tg/tl_story_reaction_gen.go index 347ec4e0f6..7798e51d00 100644 --- a/tg/tl_story_reaction_gen.go +++ b/tg/tl_story_reaction_gen.go @@ -549,6 +549,11 @@ const StoryReactionClassName = "StoryReaction" // // See https://core.telegram.org/type/StoryReaction for reference. // +// Constructors: +// - [StoryReaction] +// - [StoryReactionPublicForward] +// - [StoryReactionPublicRepost] +// // Example: // // g, err := tg.DecodeStoryReaction(buf) diff --git a/tg/tl_story_view_gen.go b/tg/tl_story_view_gen.go index 4d67c2c0b9..13fa9c73ad 100644 --- a/tg/tl_story_view_gen.go +++ b/tg/tl_story_view_gen.go @@ -862,6 +862,11 @@ const StoryViewClassName = "StoryView" // // See https://core.telegram.org/type/StoryView for reference. // +// Constructors: +// - [StoryView] +// - [StoryViewPublicForward] +// - [StoryViewPublicRepost] +// // Example: // // g, err := tg.DecodeStoryView(buf) diff --git a/tg/tl_top_peer_category_gen.go b/tg/tl_top_peer_category_gen.go index 31e31e112e..86163c81c4 100644 --- a/tg/tl_top_peer_category_gen.go +++ b/tg/tl_top_peer_category_gen.go @@ -959,6 +959,17 @@ const TopPeerCategoryClassName = "TopPeerCategory" // // See https://core.telegram.org/type/TopPeerCategory for reference. // +// Constructors: +// - [TopPeerCategoryBotsPM] +// - [TopPeerCategoryBotsInline] +// - [TopPeerCategoryCorrespondents] +// - [TopPeerCategoryGroups] +// - [TopPeerCategoryChannels] +// - [TopPeerCategoryPhoneCalls] +// - [TopPeerCategoryForwardUsers] +// - [TopPeerCategoryForwardChats] +// - [TopPeerCategoryBotsApp] +// // Example: // // g, err := tg.DecodeTopPeerCategory(buf) diff --git a/tg/tl_update_gen.go b/tg/tl_update_gen.go index 34a7af535a..fcc52e976d 100644 --- a/tg/tl_update_gen.go +++ b/tg/tl_update_gen.go @@ -28620,6 +28620,149 @@ const UpdateClassName = "Update" // // See https://core.telegram.org/type/Update for reference. // +// Constructors: +// - [UpdateNewMessage] +// - [UpdateMessageID] +// - [UpdateDeleteMessages] +// - [UpdateUserTyping] +// - [UpdateChatUserTyping] +// - [UpdateChatParticipants] +// - [UpdateUserStatus] +// - [UpdateUserName] +// - [UpdateNewAuthorization] +// - [UpdateNewEncryptedMessage] +// - [UpdateEncryptedChatTyping] +// - [UpdateEncryption] +// - [UpdateEncryptedMessagesRead] +// - [UpdateChatParticipantAdd] +// - [UpdateChatParticipantDelete] +// - [UpdateDCOptions] +// - [UpdateNotifySettings] +// - [UpdateServiceNotification] +// - [UpdatePrivacy] +// - [UpdateUserPhone] +// - [UpdateReadHistoryInbox] +// - [UpdateReadHistoryOutbox] +// - [UpdateWebPage] +// - [UpdateReadMessagesContents] +// - [UpdateChannelTooLong] +// - [UpdateChannel] +// - [UpdateNewChannelMessage] +// - [UpdateReadChannelInbox] +// - [UpdateDeleteChannelMessages] +// - [UpdateChannelMessageViews] +// - [UpdateChatParticipantAdmin] +// - [UpdateNewStickerSet] +// - [UpdateStickerSetsOrder] +// - [UpdateStickerSets] +// - [UpdateSavedGifs] +// - [UpdateBotInlineQuery] +// - [UpdateBotInlineSend] +// - [UpdateEditChannelMessage] +// - [UpdateBotCallbackQuery] +// - [UpdateEditMessage] +// - [UpdateInlineBotCallbackQuery] +// - [UpdateReadChannelOutbox] +// - [UpdateDraftMessage] +// - [UpdateReadFeaturedStickers] +// - [UpdateRecentStickers] +// - [UpdateConfig] +// - [UpdatePtsChanged] +// - [UpdateChannelWebPage] +// - [UpdateDialogPinned] +// - [UpdatePinnedDialogs] +// - [UpdateBotWebhookJSON] +// - [UpdateBotWebhookJSONQuery] +// - [UpdateBotShippingQuery] +// - [UpdateBotPrecheckoutQuery] +// - [UpdatePhoneCall] +// - [UpdateLangPackTooLong] +// - [UpdateLangPack] +// - [UpdateFavedStickers] +// - [UpdateChannelReadMessagesContents] +// - [UpdateContactsReset] +// - [UpdateChannelAvailableMessages] +// - [UpdateDialogUnreadMark] +// - [UpdateMessagePoll] +// - [UpdateChatDefaultBannedRights] +// - [UpdateFolderPeers] +// - [UpdatePeerSettings] +// - [UpdatePeerLocated] +// - [UpdateNewScheduledMessage] +// - [UpdateDeleteScheduledMessages] +// - [UpdateTheme] +// - [UpdateGeoLiveViewed] +// - [UpdateLoginToken] +// - [UpdateMessagePollVote] +// - [UpdateDialogFilter] +// - [UpdateDialogFilterOrder] +// - [UpdateDialogFilters] +// - [UpdatePhoneCallSignalingData] +// - [UpdateChannelMessageForwards] +// - [UpdateReadChannelDiscussionInbox] +// - [UpdateReadChannelDiscussionOutbox] +// - [UpdatePeerBlocked] +// - [UpdateChannelUserTyping] +// - [UpdatePinnedMessages] +// - [UpdatePinnedChannelMessages] +// - [UpdateChat] +// - [UpdateGroupCallParticipants] +// - [UpdateGroupCall] +// - [UpdatePeerHistoryTTL] +// - [UpdateChatParticipant] +// - [UpdateChannelParticipant] +// - [UpdateBotStopped] +// - [UpdateGroupCallConnection] +// - [UpdateBotCommands] +// - [UpdatePendingJoinRequests] +// - [UpdateBotChatInviteRequester] +// - [UpdateMessageReactions] +// - [UpdateAttachMenuBots] +// - [UpdateWebViewResultSent] +// - [UpdateBotMenuButton] +// - [UpdateSavedRingtones] +// - [UpdateTranscribedAudio] +// - [UpdateReadFeaturedEmojiStickers] +// - [UpdateUserEmojiStatus] +// - [UpdateRecentEmojiStatuses] +// - [UpdateRecentReactions] +// - [UpdateMoveStickerSetToTop] +// - [UpdateMessageExtendedMedia] +// - [UpdateChannelPinnedTopic] +// - [UpdateChannelPinnedTopics] +// - [UpdateUser] +// - [UpdateAutoSaveSettings] +// - [UpdateStory] +// - [UpdateReadStories] +// - [UpdateStoryID] +// - [UpdateStoriesStealthMode] +// - [UpdateSentStoryReaction] +// - [UpdateBotChatBoost] +// - [UpdateChannelViewForumAsMessages] +// - [UpdatePeerWallpaper] +// - [UpdateBotMessageReaction] +// - [UpdateBotMessageReactions] +// - [UpdateSavedDialogPinned] +// - [UpdatePinnedSavedDialogs] +// - [UpdateSavedReactionTags] +// - [UpdateSMSJob] +// - [UpdateQuickReplies] +// - [UpdateNewQuickReply] +// - [UpdateDeleteQuickReply] +// - [UpdateQuickReplyMessage] +// - [UpdateDeleteQuickReplyMessages] +// - [UpdateBotBusinessConnect] +// - [UpdateBotNewBusinessMessage] +// - [UpdateBotEditBusinessMessage] +// - [UpdateBotDeleteBusinessMessage] +// - [UpdateNewStoryReaction] +// - [UpdateBroadcastRevenueTransactions] +// - [UpdateStarsBalance] +// - [UpdateBusinessBotCallbackQuery] +// - [UpdateStarsRevenueStatus] +// - [UpdateBotPurchasedPaidMedia] +// - [UpdatePaidReactionPrivacy] +// // Example: // // g, err := tg.DecodeUpdate(buf) diff --git a/tg/tl_updates_channel_difference_gen.go b/tg/tl_updates_channel_difference_gen.go index 892b33aae1..c4dae17ee9 100644 --- a/tg/tl_updates_channel_difference_gen.go +++ b/tg/tl_updates_channel_difference_gen.go @@ -1134,6 +1134,11 @@ const UpdatesChannelDifferenceClassName = "updates.ChannelDifference" // // See https://core.telegram.org/type/updates.ChannelDifference for reference. // +// Constructors: +// - [UpdatesChannelDifferenceEmpty] +// - [UpdatesChannelDifferenceTooLong] +// - [UpdatesChannelDifference] +// // Example: // // g, err := tg.DecodeUpdatesChannelDifference(buf) diff --git a/tg/tl_updates_difference_gen.go b/tg/tl_updates_difference_gen.go index a0ab764c71..01d44ed1b3 100644 --- a/tg/tl_updates_difference_gen.go +++ b/tg/tl_updates_difference_gen.go @@ -1111,6 +1111,12 @@ const UpdatesDifferenceClassName = "updates.Difference" // // See https://core.telegram.org/type/updates.Difference for reference. // +// Constructors: +// - [UpdatesDifferenceEmpty] +// - [UpdatesDifference] +// - [UpdatesDifferenceSlice] +// - [UpdatesDifferenceTooLong] +// // Example: // // g, err := tg.DecodeUpdatesDifference(buf) diff --git a/tg/tl_updates_gen.go b/tg/tl_updates_gen.go index 1b0c922643..05164f9f65 100644 --- a/tg/tl_updates_gen.go +++ b/tg/tl_updates_gen.go @@ -2882,6 +2882,15 @@ const UpdatesClassName = "Updates" // // See https://core.telegram.org/type/Updates for reference. // +// Constructors: +// - [UpdatesTooLong] +// - [UpdateShortMessage] +// - [UpdateShortChatMessage] +// - [UpdateShort] +// - [UpdatesCombined] +// - [Updates] +// - [UpdateShortSentMessage] +// // Example: // // g, err := tg.DecodeUpdates(buf) diff --git a/tg/tl_upload_cdn_file_gen.go b/tg/tl_upload_cdn_file_gen.go index 9de0670efd..73538b291d 100644 --- a/tg/tl_upload_cdn_file_gen.go +++ b/tg/tl_upload_cdn_file_gen.go @@ -318,6 +318,10 @@ const UploadCDNFileClassName = "upload.CdnFile" // // See https://core.telegram.org/type/upload.CdnFile for reference. // +// Constructors: +// - [UploadCDNFileReuploadNeeded] +// - [UploadCDNFile] +// // Example: // // g, err := tg.DecodeUploadCDNFile(buf) diff --git a/tg/tl_upload_file_gen.go b/tg/tl_upload_file_gen.go index b33c88d3f1..77f506e4fc 100644 --- a/tg/tl_upload_file_gen.go +++ b/tg/tl_upload_file_gen.go @@ -508,6 +508,10 @@ const UploadFileClassName = "upload.File" // // See https://core.telegram.org/type/upload.File for reference. // +// Constructors: +// - [UploadFile] +// - [UploadFileCDNRedirect] +// // Example: // // g, err := tg.DecodeUploadFile(buf) diff --git a/tg/tl_url_auth_result_gen.go b/tg/tl_url_auth_result_gen.go index e367872db7..28c6864d88 100644 --- a/tg/tl_url_auth_result_gen.go +++ b/tg/tl_url_auth_result_gen.go @@ -512,6 +512,11 @@ const URLAuthResultClassName = "UrlAuthResult" // // See https://core.telegram.org/type/UrlAuthResult for reference. // +// Constructors: +// - [URLAuthResultRequest] +// - [URLAuthResultAccepted] +// - [URLAuthResultDefault] +// // Example: // // g, err := tg.DecodeURLAuthResult(buf) diff --git a/tg/tl_user_gen.go b/tg/tl_user_gen.go index b0a35b7e2e..6f5c534450 100644 --- a/tg/tl_user_gen.go +++ b/tg/tl_user_gen.go @@ -2310,6 +2310,10 @@ const UserClassName = "User" // // See https://core.telegram.org/type/User for reference. // +// Constructors: +// - [UserEmpty] +// - [User] +// // Example: // // g, err := tg.DecodeUser(buf) diff --git a/tg/tl_user_profile_photo_gen.go b/tg/tl_user_profile_photo_gen.go index eda44116ed..644daaa3d3 100644 --- a/tg/tl_user_profile_photo_gen.go +++ b/tg/tl_user_profile_photo_gen.go @@ -451,6 +451,10 @@ const UserProfilePhotoClassName = "UserProfilePhoto" // // See https://core.telegram.org/type/UserProfilePhoto for reference. // +// Constructors: +// - [UserProfilePhotoEmpty] +// - [UserProfilePhoto] +// // Example: // // g, err := tg.DecodeUserProfilePhoto(buf) diff --git a/tg/tl_user_status_gen.go b/tg/tl_user_status_gen.go index 18824102fa..8b8d880b07 100644 --- a/tg/tl_user_status_gen.go +++ b/tg/tl_user_status_gen.go @@ -920,6 +920,14 @@ const UserStatusClassName = "UserStatus" // // See https://core.telegram.org/type/UserStatus for reference. // +// Constructors: +// - [UserStatusEmpty] +// - [UserStatusOnline] +// - [UserStatusOffline] +// - [UserStatusRecently] +// - [UserStatusLastWeek] +// - [UserStatusLastMonth] +// // Example: // // g, err := tg.DecodeUserStatus(buf) diff --git a/tg/tl_users_users_gen.go b/tg/tl_users_users_gen.go index 238b710185..579f62baf1 100644 --- a/tg/tl_users_users_gen.go +++ b/tg/tl_users_users_gen.go @@ -379,6 +379,10 @@ const UsersUsersClassName = "users.Users" // // See https://core.telegram.org/type/users.Users for reference. // +// Constructors: +// - [UsersUsers] +// - [UsersUsersSlice] +// // Example: // // g, err := tg.DecodeUsersUsers(buf) diff --git a/tg/tl_video_size_gen.go b/tg/tl_video_size_gen.go index 372a2afc62..18056bf5f7 100644 --- a/tg/tl_video_size_gen.go +++ b/tg/tl_video_size_gen.go @@ -730,6 +730,11 @@ const VideoSizeClassName = "VideoSize" // // See https://core.telegram.org/type/VideoSize for reference. // +// Constructors: +// - [VideoSize] +// - [VideoSizeEmojiMarkup] +// - [VideoSizeStickerMarkup] +// // Example: // // g, err := tg.DecodeVideoSize(buf) diff --git a/tg/tl_wall_paper_gen.go b/tg/tl_wall_paper_gen.go index dd531a4ec3..ec9824b8a5 100644 --- a/tg/tl_wall_paper_gen.go +++ b/tg/tl_wall_paper_gen.go @@ -759,6 +759,10 @@ const WallPaperClassName = "WallPaper" // // See https://core.telegram.org/type/WallPaper for reference. // +// Constructors: +// - [WallPaper] +// - [WallPaperNoFile] +// // Example: // // g, err := tg.DecodeWallPaper(buf) diff --git a/tg/tl_web_document_gen.go b/tg/tl_web_document_gen.go index f6bebb5032..88f1246107 100644 --- a/tg/tl_web_document_gen.go +++ b/tg/tl_web_document_gen.go @@ -546,6 +546,10 @@ const WebDocumentClassName = "WebDocument" // // See https://core.telegram.org/type/WebDocument for reference. // +// Constructors: +// - [WebDocument] +// - [WebDocumentNoProxy] +// // Example: // // g, err := tg.DecodeWebDocument(buf) diff --git a/tg/tl_web_page_attribute_gen.go b/tg/tl_web_page_attribute_gen.go index e6f318c560..74e52697d9 100644 --- a/tg/tl_web_page_attribute_gen.go +++ b/tg/tl_web_page_attribute_gen.go @@ -937,6 +937,12 @@ const WebPageAttributeClassName = "WebPageAttribute" // // See https://core.telegram.org/type/WebPageAttribute for reference. // +// Constructors: +// - [WebPageAttributeTheme] +// - [WebPageAttributeStory] +// - [WebPageAttributeStickerSet] +// - [WebPageAttributeUniqueStarGift] +// // Example: // // g, err := tg.DecodeWebPageAttribute(buf) diff --git a/tg/tl_web_page_gen.go b/tg/tl_web_page_gen.go index b3eb6d4522..80e8a770c1 100644 --- a/tg/tl_web_page_gen.go +++ b/tg/tl_web_page_gen.go @@ -1641,6 +1641,12 @@ const WebPageClassName = "WebPage" // // See https://core.telegram.org/type/WebPage for reference. // +// Constructors: +// - [WebPageEmpty] +// - [WebPagePending] +// - [WebPage] +// - [WebPageNotModified] +// // Example: // // g, err := tg.DecodeWebPage(buf) From dcb0119687d6df4f228117f95fda3f0b96eb4bec Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Mon, 3 Feb 2025 18:35:44 +0300 Subject: [PATCH 05/17] chore(deps): upd getdoc --- examples/go.sum | 3 +-- go.mod | 4 ++-- go.sum | 8 ++++---- tg/tl_messages_send_paid_reaction_gen.go | 8 ++++---- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/examples/go.sum b/examples/go.sum index c3619b24fd..8bfb08ad0a 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -75,8 +75,7 @@ github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovk github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/ogen-go/ogen v1.8.1 h1:7TZ+oIeLkcBiyl0qu0fHPrFUrGWDj3Fi/zKSWg2i2Tg= -github.com/ogen-go/ogen v1.8.1/go.mod h1:2ShRm6u/nXUHuwdVKv2SeaG8enBKPKAE3kSbHwwFh6o= +github.com/ogen-go/ogen v1.9.0 h1:n+lDQpiSFYC9G4hTvuNVWnqmIP0LR8ws0faDn9jX3hU= github.com/ogen-go/ogen v1.9.0/go.mod h1:vkHpuRyzjdfuRCy81EShi4t9sIgZDcNPGmiDKipRloc= github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= diff --git a/go.mod b/go.mod index f6f2ab28c7..aa179529bd 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/go-faster/xor v1.0.0 github.com/go-openapi/inflect v0.21.0 github.com/google/uuid v1.6.0 - github.com/gotd/getdoc v0.47.0 + github.com/gotd/getdoc v0.48.0 github.com/gotd/ige v0.2.2 github.com/gotd/neo v0.1.5 github.com/gotd/tl v0.4.0 @@ -42,7 +42,7 @@ require ( github.com/dlclark/regexp2 v1.11.4 // indirect github.com/fatih/color v1.18.0 // indirect github.com/ghodss/yaml v1.0.0 // indirect - github.com/go-faster/sdk v0.18.0 // indirect + github.com/go-faster/sdk v0.22.0 // indirect github.com/go-faster/yaml v0.4.6 // indirect github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect diff --git a/go.sum b/go.sum index f47bae85b7..07a1d05c15 100644 --- a/go.sum +++ b/go.sum @@ -21,8 +21,8 @@ github.com/go-faster/errors v0.7.1 h1:MkJTnDoEdi9pDabt1dpWf7AA8/BaSYZqibYyhZ20AY github.com/go-faster/errors v0.7.1/go.mod h1:5ySTjWFiphBs07IKuiL69nxdfd5+fzh1u7FPGZP2quo= github.com/go-faster/jx v1.1.0 h1:ZsW3wD+snOdmTDy9eIVgQdjUpXRRV4rqW8NS3t+20bg= github.com/go-faster/jx v1.1.0/go.mod h1:vKDNikrKoyUmpzaJ0OkIkRQClNHFX/nF3dnTJZb3skg= -github.com/go-faster/sdk v0.18.0 h1:zHwbVfjRO1lkovWxubl75XJdT7hW1mQMrjRtuSgQ0m8= -github.com/go-faster/sdk v0.18.0/go.mod h1:IWvsQ1GvPtmylD6hzo5myM7kpBEQu43gyC3tcbXC3Q8= +github.com/go-faster/sdk v0.22.0 h1:s/Pq3lJ00MrHMoEUzeAemPz7kXzfETw2iN6outyOHoY= +github.com/go-faster/sdk v0.22.0/go.mod h1:UJWFlbuRJHmXJwl4JxStMbbIZtMAz4fxrD4CnuDXCIc= github.com/go-faster/xor v0.3.0/go.mod h1:x5CaDY9UKErKzqfRfFZdfu+OSTfoZny3w5Ak7UxcipQ= github.com/go-faster/xor v1.0.0 h1:2o8vTOgErSGHP3/7XwA5ib1FTtUsNtwCoLLBjl31X38= github.com/go-faster/xor v1.0.0/go.mod h1:x5CaDY9UKErKzqfRfFZdfu+OSTfoZny3w5Ak7UxcipQ= @@ -39,8 +39,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/gotd/getdoc v0.47.0 h1:lQmDcxP+3t+hYci/krHURecvtF1uvk/UmoV4r7zc6Dc= -github.com/gotd/getdoc v0.47.0/go.mod h1:lTJpE9q9HXkmVRI6VqE2EBY4LZ5dQflRocnweG8ffMU= +github.com/gotd/getdoc v0.48.0 h1:oo0C/tNHOwZsuW5egYhrD4XLtlAnz2ubSfz6tdh0FEM= +github.com/gotd/getdoc v0.48.0/go.mod h1:w5IDi4f2qAfBjk7CmzVKpTRU1/jGSZinwZ2Gxej1XvA= github.com/gotd/ige v0.2.2 h1:XQ9dJZwBfDnOGSTxKXBGP4gMud3Qku2ekScRjDWWfEk= github.com/gotd/ige v0.2.2/go.mod h1:tuCRb+Y5Y3eNTo3ypIfNpQ4MFjrnONiL2jN2AKZXmb0= github.com/gotd/neo v0.1.5 h1:oj0iQfMbGClP8xI59x7fE/uHoTJD7NZH9oV1WNuPukQ= diff --git a/tg/tl_messages_send_paid_reaction_gen.go b/tg/tl_messages_send_paid_reaction_gen.go index 50d50ba133..59d4ceeb42 100644 --- a/tg/tl_messages_send_paid_reaction_gen.go +++ b/tg/tl_messages_send_paid_reaction_gen.go @@ -58,10 +58,10 @@ type MessagesSendPaidReactionRequest struct { // Unique client message ID required to prevent message resending RandomID int64 // Each post with star reactions has a leaderboard with the top senders, but users can - // opt out of appearing there if they prefer more privacy. If the user explicitly chose - // to make their paid reaction(s) private, pass boolTrue¹ to messages.sendPaidReaction² - // private. If the user explicitly chose to make their paid reaction(s) private, pass - // boolFalse³ to messages.sendPaidReaction⁴.private. If the user did not make any + // opt out of appearing there if they prefer more privacy.If the user explicitly chose to + // make their paid reaction(s) private, pass boolTrue¹ to messages.sendPaidReaction² + // private.If the user explicitly chose to make their paid reaction(s) not private, pass + // boolFalse³ to messages.sendPaidReaction⁴.private.If the user did not make any // explicit choice about the privacy of their paid reaction(s) (i.e. when reacting by // clicking on an existing star reaction on a message), do not populate the messages // sendPaidReaction⁵.private flag. From 78d0a3ddbf75558f6edb694c997a9395acdeda8d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 5 Feb 2025 07:26:38 +0000 Subject: [PATCH 06/17] chore(deps): bump golang.org/x/sync in the golang group Bumps the golang group with 1 update: [golang.org/x/sync](https://github.com/golang/sync). Updates `golang.org/x/sync` from 0.10.0 to 0.11.0 - [Commits](https://github.com/golang/sync/compare/v0.10.0...v0.11.0) --- updated-dependencies: - dependency-name: golang.org/x/sync dependency-type: direct:production update-type: version-update:semver-minor dependency-group: golang ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index aa179529bd..05750c2156 100644 --- a/go.mod +++ b/go.mod @@ -27,7 +27,7 @@ require ( go.uber.org/zap v1.27.0 golang.org/x/crypto v0.32.0 golang.org/x/net v0.34.0 - golang.org/x/sync v0.10.0 + golang.org/x/sync v0.11.0 golang.org/x/tools v0.29.0 gopkg.in/yaml.v3 v3.0.1 nhooyr.io/websocket v1.8.17 diff --git a/go.sum b/go.sum index 07a1d05c15..9ed9487af4 100644 --- a/go.sum +++ b/go.sum @@ -139,8 +139,9 @@ golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w= +golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= From a24fcaebf72937635f5c58a964de9d9554d4c1fd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Feb 2025 07:16:18 +0000 Subject: [PATCH 07/17] chore(deps): bump golang.org/x/crypto in the golang group Bumps the golang group with 1 update: [golang.org/x/crypto](https://github.com/golang/crypto). Updates `golang.org/x/crypto` from 0.32.0 to 0.33.0 - [Commits](https://github.com/golang/crypto/compare/v0.32.0...v0.33.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: direct:production update-type: version-update:semver-minor dependency-group: golang ... Signed-off-by: dependabot[bot] --- go.mod | 6 +++--- go.sum | 11 ++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index 05750c2156..8a085a4f98 100644 --- a/go.mod +++ b/go.mod @@ -25,7 +25,7 @@ require ( go.uber.org/atomic v1.11.0 go.uber.org/multierr v1.11.0 go.uber.org/zap v1.27.0 - golang.org/x/crypto v0.32.0 + golang.org/x/crypto v0.33.0 golang.org/x/net v0.34.0 golang.org/x/sync v0.11.0 golang.org/x/tools v0.29.0 @@ -55,7 +55,7 @@ require ( go.uber.org/ratelimit v0.3.1 // indirect golang.org/x/exp v0.0.0-20230725093048-515e97ebf090 // indirect golang.org/x/mod v0.22.0 // indirect - golang.org/x/sys v0.29.0 // indirect - golang.org/x/text v0.21.0 // indirect + golang.org/x/sys v0.30.0 // indirect + golang.org/x/text v0.22.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect ) diff --git a/go.sum b/go.sum index 9ed9487af4..e3d758dea8 100644 --- a/go.sum +++ b/go.sum @@ -110,8 +110,8 @@ golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliY golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= -golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc= -golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc= +golang.org/x/crypto v0.33.0 h1:IOBPskki6Lysi0lo9qQvbxiQ+FvsCC/YWOecCHAixus= +golang.org/x/crypto v0.33.0/go.mod h1:bVdXmD7IV/4GdElGPozy6U7lWdRXA4qyRVGJV57uQ5M= golang.org/x/exp v0.0.0-20230725093048-515e97ebf090 h1:Di6/M8l0O2lCLc6VVRWhgCiApHV8MnQurBnFSHsQtNY= golang.org/x/exp v0.0.0-20230725093048-515e97ebf090/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= @@ -155,8 +155,8 @@ golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU= -golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc= +golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -174,8 +174,9 @@ golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= +golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM= +golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= From 10c035449487b0eea9a177871acdf8d8ee937d59 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Feb 2025 07:38:05 +0000 Subject: [PATCH 08/17] chore(deps): bump github.com/ogen-go/ogen from 1.9.0 to 1.10.0 Bumps [github.com/ogen-go/ogen](https://github.com/ogen-go/ogen) from 1.9.0 to 1.10.0. - [Release notes](https://github.com/ogen-go/ogen/releases) - [Commits](https://github.com/ogen-go/ogen/compare/v1.9.0...v1.10.0) --- updated-dependencies: - dependency-name: github.com/ogen-go/ogen dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 8a085a4f98..c770999fba 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,7 @@ require ( github.com/gotd/tl v0.4.0 github.com/k0kubun/pp/v3 v3.4.1 github.com/klauspost/compress v1.17.11 - github.com/ogen-go/ogen v1.9.0 + github.com/ogen-go/ogen v1.10.0 github.com/rogpeppe/go-internal v1.13.1 github.com/stretchr/testify v1.10.0 go.opentelemetry.io/otel v1.34.0 diff --git a/go.sum b/go.sum index e3d758dea8..c78c2bd0f5 100644 --- a/go.sum +++ b/go.sum @@ -63,8 +63,8 @@ github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovk github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/ogen-go/ogen v1.9.0 h1:n+lDQpiSFYC9G4hTvuNVWnqmIP0LR8ws0faDn9jX3hU= -github.com/ogen-go/ogen v1.9.0/go.mod h1:vkHpuRyzjdfuRCy81EShi4t9sIgZDcNPGmiDKipRloc= +github.com/ogen-go/ogen v1.10.0 h1:x3ukRtq/pdn/k8+pYBtqWceVASiSmgK9M5lrH89Q+04= +github.com/ogen-go/ogen v1.10.0/go.mod h1:WExXrswerPzGWD0NpzBFsz+5eQIbP7HAtZUmpV8dqqI= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= From d15c69677419db1ece2fd4bd64eafb021eb6b240 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Feb 2025 07:12:46 +0000 Subject: [PATCH 09/17] chore(deps): bump golang.org/x/tools in /_tools in the golang group Bumps the golang group in /_tools with 1 update: [golang.org/x/tools](https://github.com/golang/tools). Updates `golang.org/x/tools` from 0.29.0 to 0.30.0 - [Release notes](https://github.com/golang/tools/releases) - [Commits](https://github.com/golang/tools/compare/v0.29.0...v0.30.0) --- updated-dependencies: - dependency-name: golang.org/x/tools dependency-type: direct:production update-type: version-update:semver-minor dependency-group: golang ... Signed-off-by: dependabot[bot] --- _tools/go.mod | 6 +++--- _tools/go.sum | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/_tools/go.mod b/_tools/go.mod index 4aa4a75bd0..4da3103a77 100644 --- a/_tools/go.mod +++ b/_tools/go.mod @@ -4,9 +4,9 @@ go 1.22.0 toolchain go1.22.8 -require golang.org/x/tools v0.29.0 +require golang.org/x/tools v0.30.0 require ( - golang.org/x/mod v0.22.0 // indirect - golang.org/x/sync v0.10.0 // indirect + golang.org/x/mod v0.23.0 // indirect + golang.org/x/sync v0.11.0 // indirect ) diff --git a/_tools/go.sum b/_tools/go.sum index 6a0eeea792..68d0914a62 100644 --- a/_tools/go.sum +++ b/_tools/go.sum @@ -1,8 +1,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -golang.org/x/mod v0.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4= -golang.org/x/mod v0.22.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= -golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= -golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/tools v0.29.0 h1:Xx0h3TtM9rzQpQuR4dKLrdglAmCEN5Oi+P74JdhdzXE= -golang.org/x/tools v0.29.0/go.mod h1:KMQVMRsVxU6nHCFXrBPhDB8XncLNLM0lIy/F14RP588= +golang.org/x/mod v0.23.0 h1:Zb7khfcRGKk+kqfxFaP5tZqCnDZMjC5VtUBs87Hr6QM= +golang.org/x/mod v0.23.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= +golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w= +golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/tools v0.30.0 h1:BgcpHewrV5AUp2G9MebG4XPFI1E2W41zU1SaqVA9vJY= +golang.org/x/tools v0.30.0/go.mod h1:c347cR/OJfw5TI+GfX7RUPNMdDRRbjvYTS0jPyvsVtY= From 175f4b0a1d01de837f8e60ac9227cd09d4856dfd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Feb 2025 07:25:22 +0000 Subject: [PATCH 10/17] chore(deps): bump the golang group with 2 updates Bumps the golang group with 2 updates: [golang.org/x/net](https://github.com/golang/net) and [golang.org/x/tools](https://github.com/golang/tools). Updates `golang.org/x/net` from 0.34.0 to 0.35.0 - [Commits](https://github.com/golang/net/compare/v0.34.0...v0.35.0) Updates `golang.org/x/tools` from 0.29.0 to 0.30.0 - [Release notes](https://github.com/golang/tools/releases) - [Commits](https://github.com/golang/tools/compare/v0.29.0...v0.30.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor dependency-group: golang - dependency-name: golang.org/x/tools dependency-type: direct:production update-type: version-update:semver-minor dependency-group: golang ... Signed-off-by: dependabot[bot] --- go.mod | 6 +++--- go.sum | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index c770999fba..ece386de45 100644 --- a/go.mod +++ b/go.mod @@ -26,9 +26,9 @@ require ( go.uber.org/multierr v1.11.0 go.uber.org/zap v1.27.0 golang.org/x/crypto v0.33.0 - golang.org/x/net v0.34.0 + golang.org/x/net v0.35.0 golang.org/x/sync v0.11.0 - golang.org/x/tools v0.29.0 + golang.org/x/tools v0.30.0 gopkg.in/yaml.v3 v3.0.1 nhooyr.io/websocket v1.8.17 rsc.io/qr v0.2.0 @@ -54,7 +54,7 @@ require ( go.opentelemetry.io/auto/sdk v1.1.0 // indirect go.uber.org/ratelimit v0.3.1 // indirect golang.org/x/exp v0.0.0-20230725093048-515e97ebf090 // indirect - golang.org/x/mod v0.22.0 // indirect + golang.org/x/mod v0.23.0 // indirect golang.org/x/sys v0.30.0 // indirect golang.org/x/text v0.22.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/go.sum b/go.sum index c78c2bd0f5..ffa15af7fa 100644 --- a/go.sum +++ b/go.sum @@ -119,8 +119,8 @@ golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= -golang.org/x/mod v0.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4= -golang.org/x/mod v0.22.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= +golang.org/x/mod v0.23.0 h1:Zb7khfcRGKk+kqfxFaP5tZqCnDZMjC5VtUBs87Hr6QM= +golang.org/x/mod v0.23.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= @@ -130,8 +130,8 @@ golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= -golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0= -golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k= +golang.org/x/net v0.35.0 h1:T5GQRQb2y08kTAByq9L4/bz8cipCdA8FbRTXewonqY8= +golang.org/x/net v0.35.0/go.mod h1:EglIi67kWsHKlRzzVMUD93VMSWGFOMSZgxFjparz1Qk= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -183,8 +183,8 @@ golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= -golang.org/x/tools v0.29.0 h1:Xx0h3TtM9rzQpQuR4dKLrdglAmCEN5Oi+P74JdhdzXE= -golang.org/x/tools v0.29.0/go.mod h1:KMQVMRsVxU6nHCFXrBPhDB8XncLNLM0lIy/F14RP588= +golang.org/x/tools v0.30.0 h1:BgcpHewrV5AUp2G9MebG4XPFI1E2W41zU1SaqVA9vJY= +golang.org/x/tools v0.30.0/go.mod h1:c347cR/OJfw5TI+GfX7RUPNMdDRRbjvYTS0jPyvsVtY= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= From ba267a2831af70286e4fc65b46062e33ee66cd51 Mon Sep 17 00:00:00 2001 From: Dmitriy Pominov <6616639+dpominov@users.noreply.github.com> Date: Tue, 11 Feb 2025 16:00:19 +0300 Subject: [PATCH 11/17] feat(deeplink): support business chat links --- telegram/internal/deeplink/deeplink.go | 23 +++++++++ telegram/internal/deeplink/deeplink_test.go | 54 ++++++++++++++++++++- 2 files changed, 75 insertions(+), 2 deletions(-) diff --git a/telegram/internal/deeplink/deeplink.go b/telegram/internal/deeplink/deeplink.go index 2962bc97a1..645b712566 100644 --- a/telegram/internal/deeplink/deeplink.go +++ b/telegram/internal/deeplink/deeplink.go @@ -30,6 +30,16 @@ const ( // t.me/+{hash} // Join Type = "join" + + // BusinessChat is deeplink like + // + // tg:message?slug={slug} + // tg://message?slug={slug} + // https://t.me/m/{slug} + // https://telegram.me/m/{slug} + // + // See https://core.telegram.org/api/links#business-chat-links + BusinessChat Type = "message" ) // DeepLink represents Telegram deeplink. @@ -51,6 +61,8 @@ func (d DeepLink) validate() error { return ensureParam(d.Args, "domain") case Join: return ensureParam(d.Args, "invite") + case BusinessChat: + return ensureParam(d.Args, "slug") default: return errors.Errorf("unsupported deeplink %q", d.Type) } @@ -69,6 +81,11 @@ func parseTg(u *url.URL) (DeepLink, error) { Type: Join, Args: query, }, nil + case BusinessChat: + return DeepLink{ + Type: BusinessChat, + Args: query, + }, nil } return DeepLink{}, errors.Errorf("unsupported deeplink %q", u.String()) @@ -102,6 +119,12 @@ func parseHTTPS(u *url.URL) (DeepLink, error) { Type: Join, Args: query, }, nil + case "m": + query.Set("slug", base) + return DeepLink{ + Type: BusinessChat, + Args: query, + }, nil case "": return DeepLink{}, errors.Errorf("unsupported deeplink %q", u.String()) } diff --git a/telegram/internal/deeplink/deeplink_test.go b/telegram/internal/deeplink/deeplink_test.go index 5dcb85852b..58ab1b89c7 100644 --- a/telegram/internal/deeplink/deeplink_test.go +++ b/telegram/internal/deeplink/deeplink_test.go @@ -21,6 +21,7 @@ func join(arg string) DeepLink { }, } } + func resolve(arg string) DeepLink { return DeepLink{ Type: Resolve, @@ -30,6 +31,15 @@ func resolve(arg string) DeepLink { } } +func businessChat(arg string) DeepLink { + return DeepLink{ + Type: BusinessChat, + Args: map[string][]string{ + "slug": {arg}, + }, + } +} + func joinSuite() map[string][]testCase { expect := join("AAAAAAAAAAAAAAAAAA") return map[string][]testCase{ @@ -124,9 +134,49 @@ func resolveSuite() map[string][]testCase { } } +func businessChatSuite() map[string][]testCase { + expect := businessChat("gotd_ru") + return map[string][]testCase{ + "Test": { + {expect, `t.me/m/gotd_ru/`, false}, + {expect, `https://t.me/m/gotd_ru/`, false}, + {expect, `https://telegram.me/m/gotd_ru`, false}, + {expect, `https://telegram.dog/m/gotd_ru`, false}, + {expect, `tg:message?&&&&&&&slug=gotd_ru`, false}, + {expect, `tg://message?slug=gotd_ru`, false}, + + {DeepLink{}, `https://t.co/m/gotd_ru`, true}, + {DeepLink{}, `rt://message?slug=AAAAAAAAAAAAAAAAAA`, true}, + }, + "TDLib": { + // https://github.com/tdlib/td/blob/28c6f2e9c045372d50217919bf5768b7fbbe0294/test/link.cpp#L734-L750 + // Positive + {businessChat("abacaba"), "t.me/m/abacaba", false}, + {businessChat("aba aba"), "t.me/m/aba%20aba", false}, + {businessChat("123456a"), "t.me/m/123456a", false}, + {businessChat("12345678901"), "t.me/m/12345678901", false}, + {businessChat("123456"), "t.me/m/123456", false}, + {businessChat("123456"), "t.me/m/123456/123123/12/31/a/s//21w/?asdas#test", false}, + {businessChat("abcdef"), "tg:message?slug=abcdef", false}, + {businessChat("abc0ef"), "tg:message?slug=abc%30ef", false}, + + // Negative + {DeepLink{}, "t.me/m?slug=abcdef", true}, + {DeepLink{}, "t.me/m", true}, + {DeepLink{}, "t.me/m/", true}, + {DeepLink{}, "t.me/m//abcdef", true}, + {DeepLink{}, "t.me/m?/abcdef", true}, + {DeepLink{}, "t.me/m/?abcdef", true}, + {DeepLink{}, "t.me/m/#abcdef", true}, + {DeepLink{}, "tg://message?slug=", true}, + }, + } +} + var typeSuites = map[string]map[string][]testCase{ - "Join": joinSuite(), - "Resolve": resolveSuite(), + "Join": joinSuite(), + "Resolve": resolveSuite(), + "BusinessChat": businessChatSuite(), } func TestParseDeeplink(t *testing.T) { From 045fc4c4c622602d74df492fbc6e0aae6bedd067 Mon Sep 17 00:00:00 2001 From: GitHub Date: Thu, 13 Feb 2025 07:45:11 +0000 Subject: [PATCH 12/17] feat(schema): update Telegram to the latest layer --- _schema/tdlib.tl | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/_schema/tdlib.tl b/_schema/tdlib.tl index c83bbda4f9..e7ba497a11 100644 --- a/_schema/tdlib.tl +++ b/_schema/tdlib.tl @@ -1,8 +1,8 @@ // Code generated by ./cmd/dltl, DO NOT EDIT. // // Source: https://raw.githubusercontent.com/tdlib/td/master/td/generate/scheme/telegram_api.tl -// Layer: 198 -// SHA256: ad5ec432e829ea5b398344a83e0695f92ea9e8db8874d3d78757b6843baead10 +// Layer: 199 +// SHA256: 9edecb656ccddc867f363d2da6126754a2ce30f7caa1dc20e71c5e2b777c87e4 int#a8509bda ? = Int; @@ -47,6 +47,8 @@ invokeWithGooglePlayIntegrityPrefix#1df92984 nonce:string token:string = Error; invokeWithApnsSecretPrefix#dae54f8 nonce:string secret:string = Error; +invokeWithReCaptchaPrefix#adbb0f94 token:string = Error; + ---types--- @@ -788,7 +790,7 @@ updateStarsRevenueStatus#a584b019 peer:Peer status:StarsRevenueStatus = Update; updateBotPurchasedPaidMedia#283bd312 user_id:long payload:string qts:int = Update; -updatePaidReactionPrivacy#51ca7aec private:Bool = Update; +updatePaidReactionPrivacy#8b725fce private:PaidReactionPrivacy = Update; updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State; @@ -1062,7 +1064,7 @@ webPageEmpty#211a1788 flags:# id:long url:flags.0?string = WebPage; webPagePending#b0d13e47 flags:# id:long url:flags.0?string date:int = WebPage; -webPage#e89c45b2 flags:# has_large_media:flags.13?true id:long url:string display_url:string hash:int type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document cached_page:flags.10?Page attributes:flags.12?Vector = WebPage; +webPage#e89c45b2 flags:# has_large_media:flags.13?true video_cover_photo:flags.14?true id:long url:string display_url:string hash:int type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document cached_page:flags.10?Page attributes:flags.12?Vector = WebPage; webPageNotModified#7311ca11 flags:# cached_page_views:flags.0?int = WebPage; @@ -2776,7 +2778,7 @@ starsGiveawayWinnersOption#54236209 flags:# default:flags.0?true users:int per_u starGift#2cc73c8 flags:# limited:flags.0?true sold_out:flags.1?true birthday:flags.2?true id:long sticker:Document stars:long availability_remains:flags.0?int availability_total:flags.0?int convert_stars:long first_sale_date:flags.1?int last_sale_date:flags.1?int upgrade_stars:flags.3?long = StarGift; -starGiftUnique#f2fe7e4a flags:# id:long title:string slug:string num:int owner_id:flags.0?Peer owner_name:flags.1?string owner_address:flags.2?string attributes:Vector availability_issued:int availability_total:int = StarGift; +starGiftUnique#5c62d151 flags:# id:long title:string slug:string num:int owner_id:flags.0?Peer owner_name:flags.1?string owner_address:flags.2?string attributes:Vector availability_issued:int availability_total:int gift_address:flags.3?string = StarGift; payments.starGiftsNotModified#a388a368 = payments.StarGifts; @@ -2842,6 +2844,12 @@ inputSavedStarGiftChat#f101aa7f peer:InputPeer saved_id:long = InputSavedStarGif payments.starGiftWithdrawalUrl#84aa3a9c url:string = payments.StarGiftWithdrawalUrl; +paidReactionPrivacyDefault#206ad49e = PaidReactionPrivacy; + +paidReactionPrivacyAnonymous#1f0c1ad9 = PaidReactionPrivacy; + +paidReactionPrivacyPeer#dc6cfcf0 peer:InputPeer = PaidReactionPrivacy; + ---functions--- @@ -2865,6 +2873,8 @@ invokeWithGooglePlayIntegrity#1df92984 {X:Type} nonce:string token:string query: invokeWithApnsSecret#dae54f8 {X:Type} nonce:string secret:string query:!X = X; +invokeWithReCaptcha#adbb0f94 {X:Type} token:string query:!X = X; + auth.sendCode#a677244f phone_number:string api_id:int api_hash:string settings:CodeSettings = auth.SentCode; auth.signUp#aac7b717 flags:# no_joined_notifications:flags.0?true phone_number:string phone_code_hash:string first_name:string last_name:string = auth.Authorization; @@ -3625,9 +3635,9 @@ messages.getFactCheck#b9cdc5ee peer:InputPeer msg_id:Vector = Vector Date: Thu, 13 Feb 2025 12:26:44 +0300 Subject: [PATCH 13/17] ci: disable again --- .github/workflows/e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index a4a1276a46..9026f2366d 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -45,7 +45,7 @@ jobs: GOTD_TEST_EXTERNAL: 1 GOTD_MTPROXY_ADDR: "127.0.0.1:3128" TEST_ACCOUNTS_BROKEN: 1 # use external test accounts - TEST_ACCOUNT_MANAGER_DISABLED: 0 + TEST_ACCOUNT_MANAGER_DISABLED: 1 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_JOB_ID: ${{ github.job }} GITHUB_RUN_ID: ${{ github.run_id }} From 9973321d13e56ccb50b68941009f2486009de3d0 Mon Sep 17 00:00:00 2001 From: Dmitriy Pominov <6616639+dpominov@users.noreply.github.com> Date: Thu, 13 Feb 2025 20:32:00 +0300 Subject: [PATCH 14/17] fix(peers): panic in peers.InmemoryCaches --- telegram/peers/memory_storage.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/telegram/peers/memory_storage.go b/telegram/peers/memory_storage.go index d439917893..a0510e9d8c 100644 --- a/telegram/peers/memory_storage.go +++ b/telegram/peers/memory_storage.go @@ -108,7 +108,7 @@ type InmemoryCache struct { func (f *InmemoryCache) SaveUsers(ctx context.Context, users ...*tg.User) error { f.usersMux.Lock() defer f.usersMux.Unlock() - if f.channelsFull == nil { + if f.users == nil { f.users = map[int64]*tg.User{} } @@ -123,7 +123,7 @@ func (f *InmemoryCache) SaveUsers(ctx context.Context, users ...*tg.User) error func (f *InmemoryCache) SaveUserFulls(ctx context.Context, users ...*tg.UserFull) error { f.usersFullMux.Lock() defer f.usersFullMux.Unlock() - if f.channelsFull == nil { + if f.usersFull == nil { f.usersFull = map[int64]*tg.UserFull{} } @@ -156,7 +156,7 @@ func (f *InmemoryCache) FindUserFull(ctx context.Context, id int64) (*tg.UserFul func (f *InmemoryCache) SaveChats(ctx context.Context, chats ...*tg.Chat) error { f.chatsMux.Lock() defer f.chatsMux.Unlock() - if f.channelsFull == nil { + if f.chats == nil { f.chats = map[int64]*tg.Chat{} } @@ -171,7 +171,7 @@ func (f *InmemoryCache) SaveChats(ctx context.Context, chats ...*tg.Chat) error func (f *InmemoryCache) SaveChatFulls(ctx context.Context, chats ...*tg.ChatFull) error { f.chatsFullMux.Lock() defer f.chatsFullMux.Unlock() - if f.channelsFull == nil { + if f.chatsFull == nil { f.chatsFull = map[int64]*tg.ChatFull{} } @@ -204,7 +204,7 @@ func (f *InmemoryCache) FindChatFull(ctx context.Context, id int64) (*tg.ChatFul func (f *InmemoryCache) SaveChannels(ctx context.Context, channels ...*tg.Channel) error { f.channelsMux.Lock() defer f.channelsMux.Unlock() - if f.channelsFull == nil { + if f.channels == nil { f.channels = map[int64]*tg.Channel{} } From 18aa3746206df951e0d5823a569601a286723e90 Mon Sep 17 00:00:00 2001 From: Dmitriy Pominov <6616639+dpominov@users.noreply.github.com> Date: Tue, 11 Feb 2025 19:49:48 +0300 Subject: [PATCH 15/17] refactor(deeplink): making the deeplink package public --- telegram/{internal => }/deeplink/deeplink.go | 0 telegram/{internal => }/deeplink/deeplink_fuzz_test.go | 0 telegram/{internal => }/deeplink/deeplink_test.go | 0 telegram/{internal => }/deeplink/domain.go | 0 telegram/{internal => }/deeplink/domain_test.go | 0 telegram/message/join.go | 2 +- telegram/message/peer/resolve.go | 2 +- telegram/peers/join.go | 2 +- telegram/peers/resolve.go | 2 +- 9 files changed, 4 insertions(+), 4 deletions(-) rename telegram/{internal => }/deeplink/deeplink.go (100%) rename telegram/{internal => }/deeplink/deeplink_fuzz_test.go (100%) rename telegram/{internal => }/deeplink/deeplink_test.go (100%) rename telegram/{internal => }/deeplink/domain.go (100%) rename telegram/{internal => }/deeplink/domain_test.go (100%) diff --git a/telegram/internal/deeplink/deeplink.go b/telegram/deeplink/deeplink.go similarity index 100% rename from telegram/internal/deeplink/deeplink.go rename to telegram/deeplink/deeplink.go diff --git a/telegram/internal/deeplink/deeplink_fuzz_test.go b/telegram/deeplink/deeplink_fuzz_test.go similarity index 100% rename from telegram/internal/deeplink/deeplink_fuzz_test.go rename to telegram/deeplink/deeplink_fuzz_test.go diff --git a/telegram/internal/deeplink/deeplink_test.go b/telegram/deeplink/deeplink_test.go similarity index 100% rename from telegram/internal/deeplink/deeplink_test.go rename to telegram/deeplink/deeplink_test.go diff --git a/telegram/internal/deeplink/domain.go b/telegram/deeplink/domain.go similarity index 100% rename from telegram/internal/deeplink/domain.go rename to telegram/deeplink/domain.go diff --git a/telegram/internal/deeplink/domain_test.go b/telegram/deeplink/domain_test.go similarity index 100% rename from telegram/internal/deeplink/domain_test.go rename to telegram/deeplink/domain_test.go diff --git a/telegram/message/join.go b/telegram/message/join.go index f52f2496b8..231070265a 100644 --- a/telegram/message/join.go +++ b/telegram/message/join.go @@ -5,7 +5,7 @@ import ( "github.com/go-faster/errors" - "github.com/gotd/td/telegram/internal/deeplink" + "github.com/gotd/td/telegram/deeplink" "github.com/gotd/td/telegram/message/peer" "github.com/gotd/td/tg" "github.com/gotd/td/tgerr" diff --git a/telegram/message/peer/resolve.go b/telegram/message/peer/resolve.go index ef9d7b349f..4789e2c451 100644 --- a/telegram/message/peer/resolve.go +++ b/telegram/message/peer/resolve.go @@ -7,7 +7,7 @@ import ( "github.com/go-faster/errors" "github.com/gotd/td/ascii" - "github.com/gotd/td/telegram/internal/deeplink" + "github.com/gotd/td/telegram/deeplink" "github.com/gotd/td/tg" ) diff --git a/telegram/peers/join.go b/telegram/peers/join.go index 27ca7a921d..f542c77f99 100644 --- a/telegram/peers/join.go +++ b/telegram/peers/join.go @@ -5,7 +5,7 @@ import ( "github.com/go-faster/errors" - "github.com/gotd/td/telegram/internal/deeplink" + "github.com/gotd/td/telegram/deeplink" "github.com/gotd/td/tg" ) diff --git a/telegram/peers/resolve.go b/telegram/peers/resolve.go index d741abed2d..121fde700b 100644 --- a/telegram/peers/resolve.go +++ b/telegram/peers/resolve.go @@ -7,7 +7,7 @@ import ( "github.com/go-faster/errors" "github.com/gotd/td/ascii" - "github.com/gotd/td/telegram/internal/deeplink" + "github.com/gotd/td/telegram/deeplink" "github.com/gotd/td/tg" ) From 7b51e72fe402fe9dd004fa2f7580940f70d5a70d Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Thu, 13 Feb 2025 21:02:05 +0300 Subject: [PATCH 16/17] ci: disable again --- .github/workflows/e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 9026f2366d..755d1367f0 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -42,7 +42,7 @@ jobs: - name: Run tests run: go test -v -run ^TestExternalE2E ./... env: - GOTD_TEST_EXTERNAL: 1 + GOTD_TEST_EXTERNAL: 0 GOTD_MTPROXY_ADDR: "127.0.0.1:3128" TEST_ACCOUNTS_BROKEN: 1 # use external test accounts TEST_ACCOUNT_MANAGER_DISABLED: 1 From 14773853bd08fc2d90bc54c57454d828270ad621 Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Thu, 13 Feb 2025 21:03:56 +0300 Subject: [PATCH 17/17] chore: deps --- examples/go.mod | 18 +++++++++--------- examples/go.sum | 9 +++++++++ 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/examples/go.mod b/examples/go.mod index 3143778b6e..064b83b3b6 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -11,8 +11,8 @@ require ( go.etcd.io/bbolt v1.3.9 go.uber.org/atomic v1.11.0 go.uber.org/zap v1.27.0 - golang.org/x/sync v0.10.0 - golang.org/x/term v0.28.0 + golang.org/x/sync v0.11.0 + golang.org/x/term v0.29.0 golang.org/x/time v0.5.0 gopkg.in/natefinch/lumberjack.v2 v2.2.1 ) @@ -44,7 +44,7 @@ require ( github.com/kr/text v0.2.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect - github.com/ogen-go/ogen v1.9.0 // indirect + github.com/ogen-go/ogen v1.10.0 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/prometheus/client_golang v1.19.0 // indirect github.com/prometheus/client_model v0.5.0 // indirect @@ -56,13 +56,13 @@ require ( go.opentelemetry.io/otel/metric v1.34.0 // indirect go.opentelemetry.io/otel/trace v1.34.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.32.0 // indirect + golang.org/x/crypto v0.33.0 // indirect golang.org/x/exp v0.0.0-20230725093048-515e97ebf090 // indirect - golang.org/x/mod v0.22.0 // indirect - golang.org/x/net v0.34.0 // indirect - golang.org/x/sys v0.29.0 // indirect - golang.org/x/text v0.21.0 // indirect - golang.org/x/tools v0.29.0 // indirect + golang.org/x/mod v0.23.0 // indirect + golang.org/x/net v0.35.0 // indirect + golang.org/x/sys v0.30.0 // indirect + golang.org/x/text v0.22.0 // indirect + golang.org/x/tools v0.30.0 // indirect google.golang.org/protobuf v1.33.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect rsc.io/qr v0.2.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index 8bfb08ad0a..a1acb511fb 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -77,6 +77,7 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/ogen-go/ogen v1.9.0 h1:n+lDQpiSFYC9G4hTvuNVWnqmIP0LR8ws0faDn9jX3hU= github.com/ogen-go/ogen v1.9.0/go.mod h1:vkHpuRyzjdfuRCy81EShi4t9sIgZDcNPGmiDKipRloc= +github.com/ogen-go/ogen v1.10.0/go.mod h1:WExXrswerPzGWD0NpzBFsz+5eQIbP7HAtZUmpV8dqqI= github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= @@ -124,24 +125,28 @@ golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc= golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc= +golang.org/x/crypto v0.33.0/go.mod h1:bVdXmD7IV/4GdElGPozy6U7lWdRXA4qyRVGJV57uQ5M= golang.org/x/exp v0.0.0-20230725093048-515e97ebf090 h1:Di6/M8l0O2lCLc6VVRWhgCiApHV8MnQurBnFSHsQtNY= golang.org/x/exp v0.0.0-20230725093048-515e97ebf090/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4= golang.org/x/mod v0.22.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= +golang.org/x/mod v0.23.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0= golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k= +golang.org/x/net v0.35.0/go.mod h1:EglIi67kWsHKlRzzVMUD93VMSWGFOMSZgxFjparz1Qk= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -149,12 +154,15 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU= golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.28.0 h1:/Ts8HFuMR2E6IP/jlo7QVLZHggjKQbhu/7H0LJFr3Gg= golang.org/x/term v0.28.0/go.mod h1:Sw/lC2IAUZ92udQNf3WodGtn4k/XoLyZoh8v/8uiwek= +golang.org/x/term v0.29.0/go.mod h1:6bl4lRlvVuDgSf3179VpIxBF0o10JUpXWOnI7nErv7s= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= +golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY= golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -163,6 +171,7 @@ golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roY golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.29.0 h1:Xx0h3TtM9rzQpQuR4dKLrdglAmCEN5Oi+P74JdhdzXE= golang.org/x/tools v0.29.0/go.mod h1:KMQVMRsVxU6nHCFXrBPhDB8XncLNLM0lIy/F14RP588= +golang.org/x/tools v0.30.0/go.mod h1:c347cR/OJfw5TI+GfX7RUPNMdDRRbjvYTS0jPyvsVtY= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=