diff --git a/examples/go.mod b/examples/go.mod index 20bd961ddf..df33510869 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -13,8 +13,8 @@ require ( go.etcd.io/bbolt v1.3.7 go.uber.org/atomic v1.11.0 go.uber.org/zap v1.26.0 - golang.org/x/sync v0.5.0 - golang.org/x/term v0.15.0 + golang.org/x/sync v0.6.0 + golang.org/x/term v0.16.0 golang.org/x/time v0.3.0 gopkg.in/natefinch/lumberjack.v2 v2.2.1 ) @@ -39,13 +39,13 @@ require ( github.com/pkg/errors v0.9.1 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/segmentio/asm v1.2.0 // indirect - go.opentelemetry.io/otel v1.21.0 // indirect - go.opentelemetry.io/otel/trace v1.21.0 // indirect + go.opentelemetry.io/otel v1.22.0 // indirect + go.opentelemetry.io/otel/trace v1.22.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.17.0 // indirect + golang.org/x/crypto v0.18.0 // indirect golang.org/x/exp v0.0.0-20230116083435-1de6713980de // indirect - golang.org/x/net v0.19.0 // indirect - golang.org/x/sys v0.15.0 // indirect + golang.org/x/net v0.20.0 // indirect + golang.org/x/sys v0.16.0 // indirect nhooyr.io/websocket v1.8.10 // indirect rsc.io/qr v0.2.0 // indirect ) diff --git a/examples/go.sum b/examples/go.sum index 73b0516851..afc11ea40b 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -232,8 +232,10 @@ go.etcd.io/bbolt v1.3.7 h1:j+zJOnnEjF/kyHlDDgGnVL/AIqIJPq8UoB2GSNfkUfQ= go.etcd.io/bbolt v1.3.7/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= go.opentelemetry.io/otel v1.21.0 h1:hzLeKBZEL7Okw2mGzZ0cc4k/A7Fta0uoPgaJCr8fsFc= go.opentelemetry.io/otel v1.21.0/go.mod h1:QZzNPQPm1zLX4gZK4cMi+71eaorMSGT3A4znnUvNNEo= +go.opentelemetry.io/otel v1.22.0/go.mod h1:eoV4iAi3Ea8LkAEI9+GFT44O6T/D0GWAVFyZVCC6pMI= go.opentelemetry.io/otel/trace v1.21.0 h1:WD9i5gzvoUPuXIXH24ZNBudiarZDKuekPqi/E8fpfLc= go.opentelemetry.io/otel/trace v1.21.0/go.mod h1:LGbsEB0f9LGjN+OZaQQ26sohbOmiMR+BaslueVtS/qQ= +go.opentelemetry.io/otel/trace v1.22.0/go.mod h1:RbbHXVqKES9QhzZq/fE5UnOSILqRt40a21sPw2He1xo= go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= go.uber.org/goleak v1.2.0 h1:xqgm/S+aQvhWFTtR0XK3Jvg7z8kGV8P4X14IzwN3Eqk= @@ -249,6 +251,7 @@ 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.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k= golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20200513190911-00229845015e/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= @@ -280,6 +283,7 @@ golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -290,6 +294,7 @@ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE= golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -309,8 +314,10 @@ golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210909193231-528a39cd75f3/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4= golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= +golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= diff --git a/go.mod b/go.mod index 2ad249f8fc..da027e391e 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/go-faster/jx v1.1.0 github.com/go-faster/xor v1.0.0 github.com/go-openapi/inflect v0.19.0 - github.com/gotd/getdoc v0.38.0 + github.com/gotd/getdoc v0.39.0 github.com/gotd/ige v0.2.2 github.com/gotd/neo v0.1.5 github.com/gotd/tl v0.4.0 diff --git a/go.sum b/go.sum index 7927fde841..96ebdb3e20 100644 --- a/go.sum +++ b/go.sum @@ -20,8 +20,8 @@ github.com/go-openapi/inflect v0.19.0 h1:9jCH9scKIbHeV9m12SmPilScz6krDxKRasNNSNP github.com/go-openapi/inflect v0.19.0/go.mod h1:lHpZVlpIQqLyKwJ4N+YSc9hchQy/i12fJykb83CRBH4= 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/gotd/getdoc v0.38.0 h1:BPrcITTIRwabFJ5EVh7fJYrm4i0ZRuhbBLD4iE8I03Q= -github.com/gotd/getdoc v0.38.0/go.mod h1:nJwLqv5cBIre9AfVje+ui4hNEXmCt7OMLtl4I/QZjv8= +github.com/gotd/getdoc v0.39.0 h1:fY8bbtulSDJem94MZJ1uw1J36whuSBCeH+GcRVVrvLs= +github.com/gotd/getdoc v0.39.0/go.mod h1:nJwLqv5cBIre9AfVje+ui4hNEXmCt7OMLtl4I/QZjv8= 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_account_get_channel_default_emoji_statuses_gen.go b/tg/tl_account_get_channel_default_emoji_statuses_gen.go index 544468d1e5..bbb035b2b0 100644 --- a/tg/tl_account_get_channel_default_emoji_statuses_gen.go +++ b/tg/tl_account_get_channel_default_emoji_statuses_gen.go @@ -32,10 +32,17 @@ var ( ) // AccountGetChannelDefaultEmojiStatusesRequest represents TL type `account.getChannelDefaultEmojiStatuses#7727a7d5`. +// Get a list of default suggested channel emoji statuses¹. +// +// Links: +// 1. https://core.telegram.org/api/emoji-status // // See https://core.telegram.org/method/account.getChannelDefaultEmojiStatuses for reference. type AccountGetChannelDefaultEmojiStatusesRequest struct { - // Hash field of AccountGetChannelDefaultEmojiStatusesRequest. + // Hash for pagination, for more info click here¹ + // + // Links: + // 1) https://core.telegram.org/api/offsets#hash-generation Hash int64 } @@ -161,8 +168,13 @@ func (g *AccountGetChannelDefaultEmojiStatusesRequest) GetHash() (value int64) { } // AccountGetChannelDefaultEmojiStatuses invokes method account.getChannelDefaultEmojiStatuses#7727a7d5 returning error if any. +// Get a list of default suggested channel emoji statuses¹. +// +// Links: +// 1. https://core.telegram.org/api/emoji-status // // See https://core.telegram.org/method/account.getChannelDefaultEmojiStatuses for reference. +// Can be used by bots. func (c *Client) AccountGetChannelDefaultEmojiStatuses(ctx context.Context, hash int64) (AccountEmojiStatusesClass, error) { var result AccountEmojiStatusesBox diff --git a/tg/tl_account_get_channel_restricted_status_emojis_gen.go b/tg/tl_account_get_channel_restricted_status_emojis_gen.go index a806efc30d..e177ab8465 100644 --- a/tg/tl_account_get_channel_restricted_status_emojis_gen.go +++ b/tg/tl_account_get_channel_restricted_status_emojis_gen.go @@ -32,10 +32,19 @@ var ( ) // AccountGetChannelRestrictedStatusEmojisRequest represents TL type `account.getChannelRestrictedStatusEmojis#35a9e0d5`. +// Returns fetch the full list of custom emoji IDs »¹ that cannot be used in channel +// emoji statuses »². +// +// Links: +// 1. https://core.telegram.org/api/custom-emoji +// 2. https://core.telegram.org/api/emoji-status // // See https://core.telegram.org/method/account.getChannelRestrictedStatusEmojis for reference. type AccountGetChannelRestrictedStatusEmojisRequest struct { - // Hash field of AccountGetChannelRestrictedStatusEmojisRequest. + // Hash for pagination, for more info click here¹ + // + // Links: + // 1) https://core.telegram.org/api/offsets#hash-generation Hash int64 } @@ -161,8 +170,15 @@ func (g *AccountGetChannelRestrictedStatusEmojisRequest) GetHash() (value int64) } // AccountGetChannelRestrictedStatusEmojis invokes method account.getChannelRestrictedStatusEmojis#35a9e0d5 returning error if any. +// Returns fetch the full list of custom emoji IDs »¹ that cannot be used in channel +// emoji statuses »². +// +// Links: +// 1. https://core.telegram.org/api/custom-emoji +// 2. https://core.telegram.org/api/emoji-status // // See https://core.telegram.org/method/account.getChannelRestrictedStatusEmojis for reference. +// Can be used by bots. func (c *Client) AccountGetChannelRestrictedStatusEmojis(ctx context.Context, hash int64) (EmojiListClass, error) { var result EmojiListBox diff --git a/tg/tl_account_get_chat_themes_gen.go b/tg/tl_account_get_chat_themes_gen.go index 183d1814a0..828484bfb8 100644 --- a/tg/tl_account_get_chat_themes_gen.go +++ b/tg/tl_account_get_chat_themes_gen.go @@ -32,7 +32,10 @@ var ( ) // AccountGetChatThemesRequest represents TL type `account.getChatThemes#d638de89`. -// Get all available chat themes +// Get all available chat themes »¹. +// +// Links: +// 1. https://core.telegram.org/api/themes // // See https://core.telegram.org/method/account.getChatThemes for reference. type AccountGetChatThemesRequest struct { @@ -165,7 +168,10 @@ func (g *AccountGetChatThemesRequest) GetHash() (value int64) { } // AccountGetChatThemes invokes method account.getChatThemes#d638de89 returning error if any. -// Get all available chat themes +// Get all available chat themes »¹. +// +// Links: +// 1. https://core.telegram.org/api/themes // // See https://core.telegram.org/method/account.getChatThemes for reference. func (c *Client) AccountGetChatThemes(ctx context.Context, hash int64) (AccountThemesClass, error) { diff --git a/tg/tl_auto_download_settings_gen.go b/tg/tl_auto_download_settings_gen.go index ad9b3d238a..8f2a88959c 100644 --- a/tg/tl_auto_download_settings_gen.go +++ b/tg/tl_auto_download_settings_gen.go @@ -64,9 +64,11 @@ type AutoDownloadSettings struct { FileSizeMax int64 // Maximum suggested bitrate for uploading videos VideoUploadMaxbitrate int - // SmallQueueActiveOperationsMax field of AutoDownloadSettings. + // A limit, specifying the maximum number of files that should be downloaded in parallel + // from the same DC, for files smaller than 20MB. SmallQueueActiveOperationsMax int - // LargeQueueActiveOperationsMax field of AutoDownloadSettings. + // A limit, specifying the maximum number of files that should be downloaded in parallel + // from the same DC, for files bigger than 20MB. LargeQueueActiveOperationsMax int } diff --git a/tg/tl_channel_admin_log_event_action_gen.go b/tg/tl_channel_admin_log_event_action_gen.go index 282428b874..5006ade053 100644 --- a/tg/tl_channel_admin_log_event_action_gen.go +++ b/tg/tl_channel_admin_log_event_action_gen.go @@ -6708,12 +6708,16 @@ func (c *ChannelAdminLogEventActionToggleAntiSpam) GetNewValue() (value bool) { } // ChannelAdminLogEventActionChangePeerColor represents TL type `channelAdminLogEventActionChangePeerColor#5796e780`. +// The message accent color¹ was changed +// +// Links: +// 1. https://core.telegram.org/api/colors // // See https://core.telegram.org/constructor/channelAdminLogEventActionChangePeerColor for reference. type ChannelAdminLogEventActionChangePeerColor struct { - // PrevValue field of ChannelAdminLogEventActionChangePeerColor. + // Previous accent palette PrevValue PeerColor - // NewValue field of ChannelAdminLogEventActionChangePeerColor. + // New accent palette NewValue PeerColor } @@ -6871,12 +6875,16 @@ func (c *ChannelAdminLogEventActionChangePeerColor) GetNewValue() (value PeerCol } // ChannelAdminLogEventActionChangeProfilePeerColor represents TL type `channelAdminLogEventActionChangeProfilePeerColor#5e477b25`. +// The profile accent color¹ was changed +// +// Links: +// 1. https://core.telegram.org/api/colors // // See https://core.telegram.org/constructor/channelAdminLogEventActionChangeProfilePeerColor for reference. type ChannelAdminLogEventActionChangeProfilePeerColor struct { - // PrevValue field of ChannelAdminLogEventActionChangeProfilePeerColor. + // Previous accent palette PrevValue PeerColor - // NewValue field of ChannelAdminLogEventActionChangeProfilePeerColor. + // New accent palette NewValue PeerColor } @@ -7034,12 +7042,16 @@ func (c *ChannelAdminLogEventActionChangeProfilePeerColor) GetNewValue() (value } // ChannelAdminLogEventActionChangeWallpaper represents TL type `channelAdminLogEventActionChangeWallpaper#31bb5d52`. +// The wallpaper¹ was changed +// +// Links: +// 1. https://core.telegram.org/api/wallpapers // // See https://core.telegram.org/constructor/channelAdminLogEventActionChangeWallpaper for reference. type ChannelAdminLogEventActionChangeWallpaper struct { - // PrevValue field of ChannelAdminLogEventActionChangeWallpaper. + // Previous wallpaper PrevValue WallPaperClass - // NewValue field of ChannelAdminLogEventActionChangeWallpaper. + // New wallpaper NewValue WallPaperClass } @@ -7207,12 +7219,16 @@ func (c *ChannelAdminLogEventActionChangeWallpaper) GetNewValue() (value WallPap } // ChannelAdminLogEventActionChangeEmojiStatus represents TL type `channelAdminLogEventActionChangeEmojiStatus#3ea9feb1`. +// The emoji status¹ was changed +// +// Links: +// 1. https://core.telegram.org/api/emoji-status // // See https://core.telegram.org/constructor/channelAdminLogEventActionChangeEmojiStatus for reference. type ChannelAdminLogEventActionChangeEmojiStatus struct { - // PrevValue field of ChannelAdminLogEventActionChangeEmojiStatus. + // Previous emoji status PrevValue EmojiStatusClass - // NewValue field of ChannelAdminLogEventActionChangeEmojiStatus. + // New emoji status NewValue EmojiStatusClass } diff --git a/tg/tl_channels_update_color_gen.go b/tg/tl_channels_update_color_gen.go index 2fbdc8ac54..e1c15ebdcd 100644 --- a/tg/tl_channels_update_color_gen.go +++ b/tg/tl_channels_update_color_gen.go @@ -44,11 +44,13 @@ type ChannelsUpdateColorRequest struct { // Links: // 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags bin.Fields - // ForProfile field of ChannelsUpdateColorRequest. + // Whether to change the accent color emoji pattern of the profile page; otherwise, the + // accent color and emoji pattern of messages will be changed. ForProfile bool // Channel whose accent color should be changed. Channel InputChannelClass - // ID of the accent color palette »¹ to use (not RGB24, see here »² for more info). + // ID of the accent color palette »¹ to use (not RGB24, see here »² for more info); + // if not set, the default palette is used. // // Links: // 1) https://core.telegram.org/api/colors diff --git a/tg/tl_channels_update_emoji_status_gen.go b/tg/tl_channels_update_emoji_status_gen.go index b6583048a9..c999f0fad9 100644 --- a/tg/tl_channels_update_emoji_status_gen.go +++ b/tg/tl_channels_update_emoji_status_gen.go @@ -32,12 +32,22 @@ var ( ) // ChannelsUpdateEmojiStatusRequest represents TL type `channels.updateEmojiStatus#f0d3e6a8`. +// Set an emoji status¹ for a channel. +// +// Links: +// 1. https://core.telegram.org/api/emoji-status // // See https://core.telegram.org/method/channels.updateEmojiStatus for reference. type ChannelsUpdateEmojiStatusRequest struct { - // Channel field of ChannelsUpdateEmojiStatusRequest. + // The channel, must have at least channel_emoji_status_level_min boosts¹. + // + // Links: + // 1) https://core.telegram.org/api/config#channel-emoji-status-level-min Channel InputChannelClass - // EmojiStatus field of ChannelsUpdateEmojiStatusRequest. + // Emoji status¹ to set + // + // Links: + // 1) https://core.telegram.org/api/emoji-status EmojiStatus EmojiStatusClass } @@ -208,8 +218,13 @@ func (u *ChannelsUpdateEmojiStatusRequest) GetEmojiStatusAsNotEmpty() (NotEmptyE } // ChannelsUpdateEmojiStatus invokes method channels.updateEmojiStatus#f0d3e6a8 returning error if any. +// Set an emoji status¹ for a channel. +// +// Links: +// 1. https://core.telegram.org/api/emoji-status // // See https://core.telegram.org/method/channels.updateEmojiStatus for reference. +// Can be used by bots. func (c *Client) ChannelsUpdateEmojiStatus(ctx context.Context, request *ChannelsUpdateEmojiStatusRequest) (UpdatesClass, error) { var result UpdatesBox diff --git a/tg/tl_chat_full_gen.go b/tg/tl_chat_full_gen.go index 9c7604a797..26a8eca85d 100644 --- a/tg/tl_chat_full_gen.go +++ b/tg/tl_chat_full_gen.go @@ -1271,7 +1271,10 @@ type ChannelFull struct { // // Use SetStories and GetStories helpers. Stories PeerStories - // Wallpaper field of ChannelFull. + // Wallpaper¹ + // + // Links: + // 1) https://core.telegram.org/api/wallpapers // // Use SetWallpaper and GetWallpaper helpers. Wallpaper WallPaperClass diff --git a/tg/tl_chat_gen.go b/tg/tl_chat_gen.go index 2a2671f287..cbe4b3a4af 100644 --- a/tg/tl_chat_gen.go +++ b/tg/tl_chat_gen.go @@ -1159,15 +1159,24 @@ type Channel struct { // // Use SetColor and GetColor helpers. Color PeerColor - // ProfileColor field of Channel. + // The channel's profile color¹. + // + // Links: + // 1) https://core.telegram.org/api/colors // // Use SetProfileColor and GetProfileColor helpers. ProfileColor PeerColor - // EmojiStatus field of Channel. + // Emoji status¹ + // + // Links: + // 1) https://core.telegram.org/api/emoji-status // // Use SetEmojiStatus and GetEmojiStatus helpers. EmojiStatus EmojiStatusClass - // Level field of Channel. + // Boost level¹ + // + // Links: + // 1) https://core.telegram.org/api/boost // // Use SetLevel and GetLevel helpers. Level int diff --git a/tg/tl_contacts_get_contact_ids_gen.go b/tg/tl_contacts_get_contact_ids_gen.go index 8df039384c..30b12dfb7c 100644 --- a/tg/tl_contacts_get_contact_ids_gen.go +++ b/tg/tl_contacts_get_contact_ids_gen.go @@ -32,7 +32,9 @@ var ( ) // ContactsGetContactIDsRequest represents TL type `contacts.getContactIDs#7adc669d`. -// Get contact by telegram IDs +// Get the telegram IDs of all contacts. +// Returns an array of Telegram user IDs for all contacts (0 if a contact does not have +// an associated Telegram account or have hidden their account using privacy settings). // // See https://core.telegram.org/method/contacts.getContactIDs for reference. type ContactsGetContactIDsRequest struct { @@ -165,7 +167,9 @@ func (g *ContactsGetContactIDsRequest) GetHash() (value int64) { } // ContactsGetContactIDs invokes method contacts.getContactIDs#7adc669d returning error if any. -// Get contact by telegram IDs +// Get the telegram IDs of all contacts. +// Returns an array of Telegram user IDs for all contacts (0 if a contact does not have +// an associated Telegram account or have hidden their account using privacy settings). // // See https://core.telegram.org/method/contacts.getContactIDs for reference. func (c *Client) ContactsGetContactIDs(ctx context.Context, hash int64) ([]int, error) { diff --git a/tg/tl_contacts_get_statuses_gen.go b/tg/tl_contacts_get_statuses_gen.go index 8171ded1aa..0c51cb7183 100644 --- a/tg/tl_contacts_get_statuses_gen.go +++ b/tg/tl_contacts_get_statuses_gen.go @@ -32,7 +32,8 @@ var ( ) // ContactsGetStatusesRequest represents TL type `contacts.getStatuses#c4a353ee`. -// Returns the list of contact statuses. +// Use this method to obtain the online statuses of all contacts with an accessible +// associated Telegram account. // // See https://core.telegram.org/method/contacts.getStatuses for reference. type ContactsGetStatusesRequest struct { @@ -129,7 +130,8 @@ func (g *ContactsGetStatusesRequest) DecodeBare(b *bin.Buffer) error { } // ContactsGetStatuses invokes method contacts.getStatuses#c4a353ee returning error if any. -// Returns the list of contact statuses. +// Use this method to obtain the online statuses of all contacts with an accessible +// associated Telegram account. // // See https://core.telegram.org/method/contacts.getStatuses for reference. func (c *Client) ContactsGetStatuses(ctx context.Context) ([]ContactStatus, error) { diff --git a/tg/tl_contacts_reset_saved_gen.go b/tg/tl_contacts_reset_saved_gen.go index d049d09865..a2da2e6141 100644 --- a/tg/tl_contacts_reset_saved_gen.go +++ b/tg/tl_contacts_reset_saved_gen.go @@ -32,7 +32,7 @@ var ( ) // ContactsResetSavedRequest represents TL type `contacts.resetSaved#879537f1`. -// Delete saved contacts +// Removes all contacts without an associated Telegram account. // // See https://core.telegram.org/method/contacts.resetSaved for reference. type ContactsResetSavedRequest struct { @@ -129,7 +129,7 @@ func (r *ContactsResetSavedRequest) DecodeBare(b *bin.Buffer) error { } // ContactsResetSaved invokes method contacts.resetSaved#879537f1 returning error if any. -// Delete saved contacts +// Removes all contacts without an associated Telegram account. // // See https://core.telegram.org/method/contacts.resetSaved for reference. func (c *Client) ContactsResetSaved(ctx context.Context) (bool, error) { diff --git a/tg/tl_help_peer_color_option_gen.go b/tg/tl_help_peer_color_option_gen.go index df1e72cc84..b273dc39bc 100644 --- a/tg/tl_help_peer_color_option_gen.go +++ b/tg/tl_help_peer_color_option_gen.go @@ -60,7 +60,11 @@ type HelpPeerColorOption struct { // // Use SetDarkColors and GetDarkColors helpers. DarkColors HelpPeerColorSetClass - // ChannelMinLevel field of HelpPeerColorOption. + // Channels can use this palette only after reaching at least the boost level¹ specified + // in this field. + // + // Links: + // 1) https://core.telegram.org/api/boost // // Use SetChannelMinLevel and GetChannelMinLevel helpers. ChannelMinLevel int diff --git a/tg/tl_input_reply_to_gen.go b/tg/tl_input_reply_to_gen.go index e5efa9b198..872f6e4475 100644 --- a/tg/tl_input_reply_to_gen.go +++ b/tg/tl_input_reply_to_gen.go @@ -56,7 +56,11 @@ type InputReplyToMessage struct { // // Use SetReplyToPeerID and GetReplyToPeerID helpers. ReplyToPeerID InputPeerClass - // Used to quote-reply to only a certain section (specified here) of the original message. + // Used to quote-reply to only a certain section (specified here) of the original message + // The maximum UTF-8 length for quotes is specified in the quote_length_max¹ config key. + // + // Links: + // 1) https://core.telegram.org/api/config#quote-length-max // // Use SetQuoteText and GetQuoteText helpers. QuoteText string diff --git a/tg/tl_input_sticker_set_gen.go b/tg/tl_input_sticker_set_gen.go index f844560b1d..87448b8102 100644 --- a/tg/tl_input_sticker_set_gen.go +++ b/tg/tl_input_sticker_set_gen.go @@ -1199,6 +1199,10 @@ func (i *InputStickerSetEmojiDefaultTopicIcons) DecodeBare(b *bin.Buffer) error } // InputStickerSetEmojiChannelDefaultStatuses represents TL type `inputStickerSetEmojiChannelDefaultStatuses#49748553`. +// Default custom emoji status¹ stickerset for channel statuses +// +// Links: +// 1. https://core.telegram.org/api/emoji-status // // See https://core.telegram.org/constructor/inputStickerSetEmojiChannelDefaultStatuses for reference. type InputStickerSetEmojiChannelDefaultStatuses struct { diff --git a/tg/tl_input_store_payment_purpose_gen.go b/tg/tl_input_store_payment_purpose_gen.go index 31b8cfdc27..de5ffda72f 100644 --- a/tg/tl_input_store_payment_purpose_gen.go +++ b/tg/tl_input_store_payment_purpose_gen.go @@ -761,7 +761,12 @@ type InputStorePaymentPremiumGiveaway struct { // If set, only new subscribers starting from the giveaway creation date will be able to // participate to the giveaway. OnlyNewSubscribers bool - // WinnersAreVisible field of InputStorePaymentPremiumGiveaway. + // If set, giveaway winners are public and will be listed in a + // messageMediaGiveawayResults¹ message that will be automatically sent to the channel + // once the giveaway ends. + // + // Links: + // 1) https://core.telegram.org/constructor/messageMediaGiveawayResults WinnersAreVisible bool // The channel starting the giveaway, that the user must join to participate, that will // receive the giveaway boosts¹; see here »² for more info on giveaways. @@ -784,7 +789,7 @@ type InputStorePaymentPremiumGiveaway struct { // // Use SetCountriesISO2 and GetCountriesISO2 helpers. CountriesISO2 []string - // PrizeDescription field of InputStorePaymentPremiumGiveaway. + // Can contain a textual description of additional giveaway prizes. // // Use SetPrizeDescription and GetPrizeDescription helpers. PrizeDescription string diff --git a/tg/tl_keyboard_button_gen.go b/tg/tl_keyboard_button_gen.go index d606e431b7..2f7054eac4 100644 --- a/tg/tl_keyboard_button_gen.go +++ b/tg/tl_keyboard_button_gen.go @@ -2878,7 +2878,7 @@ func (k *KeyboardButtonSimpleWebView) GetURL() (value string) { } // KeyboardButtonRequestPeer represents TL type `keyboardButtonRequestPeer#53d7bfd8`. -// Prompts the user to select and share a peer with the bot using messages +// Prompts the user to select and share one or more peers with the bot using messages // sendBotRequestedPeer¹ // // Links: @@ -2895,10 +2895,10 @@ type KeyboardButtonRequestPeer struct { ButtonID int // Filtering criteria to use for the peer selection list shown to the user. The list // should display all existing peers of the specified type, and should also offer an - // option for the user to create and immediately use a peer of the specified type, if - // needed. + // option for the user to create and immediately use one or more (up to max_quantity) + // peers of the specified type, if needed. PeerType RequestPeerTypeClass - // MaxQuantity field of KeyboardButtonRequestPeer. + // Maximum number of peers that can be chosne. MaxQuantity int } diff --git a/tg/tl_media_area_gen.go b/tg/tl_media_area_gen.go index a5d25f3742..78b718e10a 100644 --- a/tg/tl_media_area_gen.go +++ b/tg/tl_media_area_gen.go @@ -971,14 +971,16 @@ func (m *MediaAreaSuggestedReaction) GetReaction() (value ReactionClass) { } // MediaAreaChannelPost represents TL type `mediaAreaChannelPost#770416af`. +// Represents a channel post. // // See https://core.telegram.org/constructor/mediaAreaChannelPost for reference. type MediaAreaChannelPost struct { - // Coordinates field of MediaAreaChannelPost. + // The size and location of the media area corresponding to the location sticker on top + // of the story media. Coordinates MediaAreaCoordinates - // ChannelID field of MediaAreaChannelPost. + // The channel that posted the message ChannelID int64 - // MsgID field of MediaAreaChannelPost. + // ID of the channel message MsgID int } @@ -1159,14 +1161,16 @@ func (m *MediaAreaChannelPost) GetMsgID() (value int) { } // InputMediaAreaChannelPost represents TL type `inputMediaAreaChannelPost#2271f2bf`. +// Represents a channel post // // See https://core.telegram.org/constructor/inputMediaAreaChannelPost for reference. type InputMediaAreaChannelPost struct { - // Coordinates field of InputMediaAreaChannelPost. + // The size and location of the media area corresponding to the location sticker on top + // of the story media. Coordinates MediaAreaCoordinates - // Channel field of InputMediaAreaChannelPost. + // The channel that posted the message Channel InputChannelClass - // MsgID field of InputMediaAreaChannelPost. + // ID of the channel message MsgID int } diff --git a/tg/tl_message_action_gen.go b/tg/tl_message_action_gen.go index 020c1bb98c..8615773c7b 100644 --- a/tg/tl_message_action_gen.go +++ b/tg/tl_message_action_gen.go @@ -6453,8 +6453,8 @@ func (m *MessageActionSuggestProfilePhoto) GetPhoto() (value PhotoClass) { } // MessageActionRequestedPeer represents TL type `messageActionRequestedPeer#31518e9b`. -// Contains info about a peer that the user shared with the bot after clicking on a -// keyboardButtonRequestPeer¹ button. +// Contains info about one or more peers that the user shared with the bot after clicking +// on a keyboardButtonRequestPeer¹ button. // // Links: // 1. https://core.telegram.org/constructor/keyboardButtonRequestPeer @@ -6466,7 +6466,7 @@ type MessageActionRequestedPeer struct { // Links: // 1) https://core.telegram.org/constructor/keyboardButtonRequestPeer ButtonID int - // Peers field of MessageActionRequestedPeer. + // The shared peers Peers []PeerClass } @@ -6937,19 +6937,29 @@ type MessageActionGiftCode struct { // Links: // 1) https://core.telegram.org/api/links#premium-giftcode-links Slug string - // Currency field of MessageActionGiftCode. + // Three-letter ISO 4217 currency¹ code + // + // Links: + // 1) https://core.telegram.org/bots/payments#supported-currencies // // Use SetCurrency and GetCurrency helpers. Currency string - // Amount field of MessageActionGiftCode. + // Total price in the smallest units of the currency (integer, not float/double). For + // example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in + // currencies.json¹, it shows the number of digits past the decimal point for each + // currency (2 for the majority of currencies). + // + // Links: + // 1) https://core.telegram.org/bots/payments/currencies.json // // Use SetAmount and GetAmount helpers. Amount int64 - // CryptoCurrency field of MessageActionGiftCode. + // If set, the gift was made using the specified cryptocurrency. // // Use SetCryptoCurrency and GetCryptoCurrency helpers. CryptoCurrency string - // CryptoAmount field of MessageActionGiftCode. + // If crypto_currency is set, contains the paid amount, in the smallest units of the + // cryptocurrency. // // Use SetCryptoAmount and GetCryptoAmount helpers. CryptoAmount int64 diff --git a/tg/tl_message_media_gen.go b/tg/tl_message_media_gen.go index c64a8570bf..19d3cd7c03 100644 --- a/tg/tl_message_media_gen.go +++ b/tg/tl_message_media_gen.go @@ -3491,7 +3491,12 @@ type MessageMediaGiveaway struct { // If set, only new subscribers starting from the giveaway creation date will be able to // participate to the giveaway. OnlyNewSubscribers bool - // WinnersAreVisible field of MessageMediaGiveaway. + // If set, giveaway winners are public and will be listed in a + // messageMediaGiveawayResults¹ message that will be automatically sent to the channel + // once the giveaway ends. + // + // Links: + // 1) https://core.telegram.org/constructor/messageMediaGiveawayResults WinnersAreVisible bool // The channels that the user must join to participate in the giveaway. Channels []int64 @@ -3501,7 +3506,7 @@ type MessageMediaGiveaway struct { // // Use SetCountriesISO2 and GetCountriesISO2 helpers. CountriesISO2 []string - // PrizeDescription field of MessageMediaGiveaway. + // Can contain a textual description of additional giveaway prizes. // // Use SetPrizeDescription and GetPrizeDescription helpers. PrizeDescription string @@ -3917,36 +3922,53 @@ func (m *MessageMediaGiveaway) GetUntilDate() (value int) { } // MessageMediaGiveawayResults represents TL type `messageMediaGiveawayResults#c6991068`. +// A giveaway¹ with public winners has finished, this constructor contains info about +// the winners. +// +// Links: +// 1. https://core.telegram.org/api/giveaways // // See https://core.telegram.org/constructor/messageMediaGiveawayResults for reference. type MessageMediaGiveawayResults struct { - // Flags field of MessageMediaGiveawayResults. + // Flags, see TL conditional fields¹ + // + // Links: + // 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags bin.Fields - // OnlyNewSubscribers field of MessageMediaGiveawayResults. + // If set, only new subscribers starting from the giveaway creation date participated in + // the giveaway. OnlyNewSubscribers bool - // Refunded field of MessageMediaGiveawayResults. + // If set, the giveaway was canceled and was fully refunded. Refunded bool - // ChannelID field of MessageMediaGiveawayResults. + // ID of the channel that was automatically boosted¹ by the winners of the giveaway for + // duration of the Premium subscription. + // + // Links: + // 1) https://core.telegram.org/api/boost ChannelID int64 - // AdditionalPeersCount field of MessageMediaGiveawayResults. + // Number of other channels that participated in the giveaway. // // Use SetAdditionalPeersCount and GetAdditionalPeersCount helpers. AdditionalPeersCount int - // LaunchMsgID field of MessageMediaGiveawayResults. + // Identifier of the message with the giveaway in channel_id. LaunchMsgID int - // WinnersCount field of MessageMediaGiveawayResults. + // Total number of winners in the giveaway. WinnersCount int - // UnclaimedCount field of MessageMediaGiveawayResults. + // Number of not-yet-claimed prizes. UnclaimedCount int - // Winners field of MessageMediaGiveawayResults. + // Up to 100 user identifiers of the winners of the giveaway. Winners []int64 - // Months field of MessageMediaGiveawayResults. + // Duration in months of each Telegram Premium¹ subscription in the giveaway. + // + // Links: + // 1) https://core.telegram.org/api/premium Months int - // PrizeDescription field of MessageMediaGiveawayResults. + // Can contain a textual description of additional giveaway prizes. // // Use SetPrizeDescription and GetPrizeDescription helpers. PrizeDescription string - // UntilDate field of MessageMediaGiveawayResults. + // Point in time (Unix timestamp) when the winners were selected. May be bigger than + // winners selection date specified in initial parameters of the giveaway. UntilDate int } diff --git a/tg/tl_messages_delete_saved_history_gen.go b/tg/tl_messages_delete_saved_history_gen.go index edf7e6e048..8c3be257b1 100644 --- a/tg/tl_messages_delete_saved_history_gen.go +++ b/tg/tl_messages_delete_saved_history_gen.go @@ -35,7 +35,10 @@ var ( // // See https://core.telegram.org/method/messages.deleteSavedHistory for reference. type MessagesDeleteSavedHistoryRequest struct { - // Flags field of MessagesDeleteSavedHistoryRequest. + // Flags, see TL conditional fields¹ + // + // Links: + // 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags bin.Fields // Peer field of MessagesDeleteSavedHistoryRequest. Peer InputPeerClass @@ -309,6 +312,7 @@ func (d *MessagesDeleteSavedHistoryRequest) GetMaxDate() (value int, ok bool) { // MessagesDeleteSavedHistory invokes method messages.deleteSavedHistory#6e98102b returning error if any. // // See https://core.telegram.org/method/messages.deleteSavedHistory for reference. +// Can be used by bots. func (c *Client) MessagesDeleteSavedHistory(ctx context.Context, request *MessagesDeleteSavedHistoryRequest) (*MessagesAffectedHistory, error) { var result MessagesAffectedHistory diff --git a/tg/tl_messages_get_message_reactions_list_gen.go b/tg/tl_messages_get_message_reactions_list_gen.go index 7b7ad00d4f..e4e17be1e8 100644 --- a/tg/tl_messages_get_message_reactions_list_gen.go +++ b/tg/tl_messages_get_message_reactions_list_gen.go @@ -48,12 +48,12 @@ type MessagesGetMessageReactionsListRequest struct { Peer InputPeerClass // Message ID ID int - // Get only reactions of this type (UTF8 emoji) + // Get only reactions of this type // // Use SetReaction and GetReaction helpers. Reaction ReactionClass - // Offset (typically taken from the next_offset field of the returned messages - // MessageReactionsList¹) + // Offset for pagination (taken from the next_offset field of the returned messages + // MessageReactionsList¹); empty in the first request. // // Links: // 1) https://core.telegram.org/type/messages.MessageReactionsList diff --git a/tg/tl_messages_get_pinned_saved_dialogs_gen.go b/tg/tl_messages_get_pinned_saved_dialogs_gen.go index 4aa420db37..b4c455d47b 100644 --- a/tg/tl_messages_get_pinned_saved_dialogs_gen.go +++ b/tg/tl_messages_get_pinned_saved_dialogs_gen.go @@ -130,6 +130,7 @@ func (g *MessagesGetPinnedSavedDialogsRequest) DecodeBare(b *bin.Buffer) error { // MessagesGetPinnedSavedDialogs invokes method messages.getPinnedSavedDialogs#d63d94e0 returning error if any. // // See https://core.telegram.org/method/messages.getPinnedSavedDialogs for reference. +// Can be used by bots. func (c *Client) MessagesGetPinnedSavedDialogs(ctx context.Context) (MessagesSavedDialogsClass, error) { var result MessagesSavedDialogsBox diff --git a/tg/tl_messages_get_saved_dialogs_gen.go b/tg/tl_messages_get_saved_dialogs_gen.go index 80d0e127b5..2d325331a8 100644 --- a/tg/tl_messages_get_saved_dialogs_gen.go +++ b/tg/tl_messages_get_saved_dialogs_gen.go @@ -35,19 +35,34 @@ var ( // // See https://core.telegram.org/method/messages.getSavedDialogs for reference. type MessagesGetSavedDialogsRequest struct { - // Flags field of MessagesGetSavedDialogsRequest. + // Flags, see TL conditional fields¹ + // + // Links: + // 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags bin.Fields // ExcludePinned field of MessagesGetSavedDialogsRequest. ExcludePinned bool - // OffsetDate field of MessagesGetSavedDialogsRequest. + // Offsets for pagination, for more info click here¹ + // + // Links: + // 1) https://core.telegram.org/api/offsets OffsetDate int - // OffsetID field of MessagesGetSavedDialogsRequest. + // Offsets for pagination, for more info click here¹ + // + // Links: + // 1) https://core.telegram.org/api/offsets OffsetID int // OffsetPeer field of MessagesGetSavedDialogsRequest. OffsetPeer InputPeerClass - // Limit field of MessagesGetSavedDialogsRequest. + // Maximum number of results to return, see pagination¹ + // + // Links: + // 1) https://core.telegram.org/api/offsets Limit int - // Hash field of MessagesGetSavedDialogsRequest. + // Hash for pagination, for more info click here¹ + // + // Links: + // 1) https://core.telegram.org/api/offsets#hash-generation Hash int64 } @@ -329,6 +344,7 @@ func (g *MessagesGetSavedDialogsRequest) GetHash() (value int64) { // MessagesGetSavedDialogs invokes method messages.getSavedDialogs#5381d21a returning error if any. // // See https://core.telegram.org/method/messages.getSavedDialogs for reference. +// Can be used by bots. func (c *Client) MessagesGetSavedDialogs(ctx context.Context, request *MessagesGetSavedDialogsRequest) (MessagesSavedDialogsClass, error) { var result MessagesSavedDialogsBox diff --git a/tg/tl_messages_get_saved_history_gen.go b/tg/tl_messages_get_saved_history_gen.go index 741ea16aea..238e4b0be6 100644 --- a/tg/tl_messages_get_saved_history_gen.go +++ b/tg/tl_messages_get_saved_history_gen.go @@ -37,19 +37,34 @@ var ( type MessagesGetSavedHistoryRequest struct { // Peer field of MessagesGetSavedHistoryRequest. Peer InputPeerClass - // OffsetID field of MessagesGetSavedHistoryRequest. + // Offsets for pagination, for more info click here¹ + // + // Links: + // 1) https://core.telegram.org/api/offsets OffsetID int - // OffsetDate field of MessagesGetSavedHistoryRequest. + // Offsets for pagination, for more info click here¹ + // + // Links: + // 1) https://core.telegram.org/api/offsets OffsetDate int - // AddOffset field of MessagesGetSavedHistoryRequest. + // Offsets for pagination, for more info click here¹ + // + // Links: + // 1) https://core.telegram.org/api/offsets AddOffset int - // Limit field of MessagesGetSavedHistoryRequest. + // Maximum number of results to return, see pagination¹ + // + // Links: + // 1) https://core.telegram.org/api/offsets Limit int // MaxID field of MessagesGetSavedHistoryRequest. MaxID int // MinID field of MessagesGetSavedHistoryRequest. MinID int - // Hash field of MessagesGetSavedHistoryRequest. + // Hash for pagination, for more info click here¹ + // + // Links: + // 1) https://core.telegram.org/api/offsets#hash-generation Hash int64 } @@ -357,6 +372,7 @@ func (g *MessagesGetSavedHistoryRequest) GetHash() (value int64) { // MessagesGetSavedHistory invokes method messages.getSavedHistory#3d9a414d returning error if any. // // See https://core.telegram.org/method/messages.getSavedHistory for reference. +// Can be used by bots. func (c *Client) MessagesGetSavedHistory(ctx context.Context, request *MessagesGetSavedHistoryRequest) (MessagesMessagesClass, error) { var result MessagesMessagesBox diff --git a/tg/tl_messages_get_search_results_calendar_gen.go b/tg/tl_messages_get_search_results_calendar_gen.go index 9c57760543..b4d0d9bf17 100644 --- a/tg/tl_messages_get_search_results_calendar_gen.go +++ b/tg/tl_messages_get_search_results_calendar_gen.go @@ -39,7 +39,10 @@ var ( // // See https://core.telegram.org/method/messages.getSearchResultsCalendar for reference. type MessagesGetSearchResultsCalendarRequest struct { - // Flags field of MessagesGetSearchResultsCalendarRequest. + // Flags, see TL conditional fields¹ + // + // Links: + // 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags bin.Fields // Peer where to search Peer InputPeerClass diff --git a/tg/tl_messages_get_search_results_positions_gen.go b/tg/tl_messages_get_search_results_positions_gen.go index 00a64903ee..15477efc4f 100644 --- a/tg/tl_messages_get_search_results_positions_gen.go +++ b/tg/tl_messages_get_search_results_positions_gen.go @@ -39,7 +39,10 @@ var ( // // See https://core.telegram.org/method/messages.getSearchResultsPositions for reference. type MessagesGetSearchResultsPositionsRequest struct { - // Flags field of MessagesGetSearchResultsPositionsRequest. + // Flags, see TL conditional fields¹ + // + // Links: + // 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags bin.Fields // Peer where to search Peer InputPeerClass diff --git a/tg/tl_messages_reorder_pinned_saved_dialogs_gen.go b/tg/tl_messages_reorder_pinned_saved_dialogs_gen.go index 1e6d8eb7a8..1a52e707fd 100644 --- a/tg/tl_messages_reorder_pinned_saved_dialogs_gen.go +++ b/tg/tl_messages_reorder_pinned_saved_dialogs_gen.go @@ -35,7 +35,10 @@ var ( // // See https://core.telegram.org/method/messages.reorderPinnedSavedDialogs for reference. type MessagesReorderPinnedSavedDialogsRequest struct { - // Flags field of MessagesReorderPinnedSavedDialogsRequest. + // Flags, see TL conditional fields¹ + // + // Links: + // 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags bin.Fields // Force field of MessagesReorderPinnedSavedDialogsRequest. Force bool @@ -239,6 +242,7 @@ func (r *MessagesReorderPinnedSavedDialogsRequest) MapOrder() (value InputDialog // MessagesReorderPinnedSavedDialogs invokes method messages.reorderPinnedSavedDialogs#8b716587 returning error if any. // // See https://core.telegram.org/method/messages.reorderPinnedSavedDialogs for reference. +// Can be used by bots. func (c *Client) MessagesReorderPinnedSavedDialogs(ctx context.Context, request *MessagesReorderPinnedSavedDialogsRequest) (bool, error) { var result BoolBox diff --git a/tg/tl_messages_save_default_send_as_gen.go b/tg/tl_messages_save_default_send_as_gen.go index 897b3bd0bf..c6b05986db 100644 --- a/tg/tl_messages_save_default_send_as_gen.go +++ b/tg/tl_messages_save_default_send_as_gen.go @@ -32,7 +32,8 @@ var ( ) // MessagesSaveDefaultSendAsRequest represents TL type `messages.saveDefaultSendAs#ccfddf96`. -// Change the default peer that should be used when sending messages to a specific group +// Change the default peer that should be used when sending messages, reactions, poll +// votes to a specific group // // See https://core.telegram.org/method/messages.saveDefaultSendAs for reference. type MessagesSaveDefaultSendAsRequest struct { @@ -199,7 +200,8 @@ func (s *MessagesSaveDefaultSendAsRequest) GetSendAs() (value InputPeerClass) { } // MessagesSaveDefaultSendAs invokes method messages.saveDefaultSendAs#ccfddf96 returning error if any. -// Change the default peer that should be used when sending messages to a specific group +// Change the default peer that should be used when sending messages, reactions, poll +// votes to a specific group // // Possible errors: // diff --git a/tg/tl_messages_send_bot_requested_peer_gen.go b/tg/tl_messages_send_bot_requested_peer_gen.go index ca43a475b6..65f54e2966 100644 --- a/tg/tl_messages_send_bot_requested_peer_gen.go +++ b/tg/tl_messages_send_bot_requested_peer_gen.go @@ -32,7 +32,7 @@ var ( ) // MessagesSendBotRequestedPeerRequest represents TL type `messages.sendBotRequestedPeer#91b2d060`. -// Send a chosen peer, as requested by a keyboardButtonRequestPeer¹ button. +// Send one or more chosen peers, as requested by a keyboardButtonRequestPeer¹ button. // // Links: // 1. https://core.telegram.org/constructor/keyboardButtonRequestPeer @@ -55,7 +55,7 @@ type MessagesSendBotRequestedPeerRequest struct { // Links: // 1) https://core.telegram.org/constructor/keyboardButtonRequestPeer ButtonID int - // RequestedPeers field of MessagesSendBotRequestedPeerRequest. + // The chosen peers. RequestedPeers []InputPeerClass } @@ -284,7 +284,7 @@ func (s *MessagesSendBotRequestedPeerRequest) MapRequestedPeers() (value InputPe } // MessagesSendBotRequestedPeer invokes method messages.sendBotRequestedPeer#91b2d060 returning error if any. -// Send a chosen peer, as requested by a keyboardButtonRequestPeer¹ button. +// Send one or more chosen peers, as requested by a keyboardButtonRequestPeer¹ button. // // Links: // 1. https://core.telegram.org/constructor/keyboardButtonRequestPeer diff --git a/tg/tl_messages_send_vote_gen.go b/tg/tl_messages_send_vote_gen.go index 0af071809d..858a577d2c 100644 --- a/tg/tl_messages_send_vote_gen.go +++ b/tg/tl_messages_send_vote_gen.go @@ -33,9 +33,12 @@ var ( // MessagesSendVoteRequest represents TL type `messages.sendVote#10ea6184`. // Vote in a poll¹ +// Starting from layer 159, the vote will be sent from the peer specified using messages +// saveDefaultSendAs¹. // // Links: // 1. https://core.telegram.org/constructor/poll +// 2. https://core.telegram.org/method/messages.saveDefaultSendAs // // See https://core.telegram.org/method/messages.sendVote for reference. type MessagesSendVoteRequest struct { @@ -238,9 +241,12 @@ func (s *MessagesSendVoteRequest) GetOptions() (value [][]byte) { // MessagesSendVote invokes method messages.sendVote#10ea6184 returning error if any. // Vote in a poll¹ +// Starting from layer 159, the vote will be sent from the peer specified using messages +// saveDefaultSendAs¹. // // Links: // 1. https://core.telegram.org/constructor/poll +// 2. https://core.telegram.org/method/messages.saveDefaultSendAs // // Possible errors: // diff --git a/tg/tl_messages_toggle_saved_dialog_pin_gen.go b/tg/tl_messages_toggle_saved_dialog_pin_gen.go index 4cb9fcc802..eecd9dd809 100644 --- a/tg/tl_messages_toggle_saved_dialog_pin_gen.go +++ b/tg/tl_messages_toggle_saved_dialog_pin_gen.go @@ -35,7 +35,10 @@ var ( // // See https://core.telegram.org/method/messages.toggleSavedDialogPin for reference. type MessagesToggleSavedDialogPinRequest struct { - // Flags field of MessagesToggleSavedDialogPinRequest. + // Flags, see TL conditional fields¹ + // + // Links: + // 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags bin.Fields // Pinned field of MessagesToggleSavedDialogPinRequest. Pinned bool @@ -221,6 +224,7 @@ func (t *MessagesToggleSavedDialogPinRequest) GetPeer() (value InputDialogPeerCl // MessagesToggleSavedDialogPin invokes method messages.toggleSavedDialogPin#ac81bbde returning error if any. // // See https://core.telegram.org/method/messages.toggleSavedDialogPin for reference. +// Can be used by bots. func (c *Client) MessagesToggleSavedDialogPin(ctx context.Context, request *MessagesToggleSavedDialogPinRequest) (bool, error) { var result BoolBox diff --git a/tg/tl_peer_color_gen.go b/tg/tl_peer_color_gen.go index 643fe84434..3406a28c22 100644 --- a/tg/tl_peer_color_gen.go +++ b/tg/tl_peer_color_gen.go @@ -44,14 +44,15 @@ type PeerColor struct { // Links: // 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags bin.Fields - // Color palette ID, see here »¹ for more info. + // Color palette ID, see here »¹ for more info; if not set, the default palette should + // be used. // // Links: // 1) https://core.telegram.org/api/colors // // Use SetColor and GetColor helpers. Color int - // Custom emoji ID¹ used to generate the pattern. + // Optional custom emoji ID¹ used to generate the pattern. // // Links: // 1) https://core.telegram.org/api/custom-emoji diff --git a/tg/tl_saved_dialog_gen.go b/tg/tl_saved_dialog_gen.go index be837a224c..501c36952a 100644 --- a/tg/tl_saved_dialog_gen.go +++ b/tg/tl_saved_dialog_gen.go @@ -35,7 +35,10 @@ var ( // // See https://core.telegram.org/constructor/savedDialog for reference. type SavedDialog struct { - // Flags field of SavedDialog. + // Flags, see TL conditional fields¹ + // + // Links: + // 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags bin.Fields // Pinned field of SavedDialog. Pinned bool diff --git a/tg/tl_stats_get_message_public_forwards_gen.go b/tg/tl_stats_get_message_public_forwards_gen.go index e820badac1..db4f6ac4ea 100644 --- a/tg/tl_stats_get_message_public_forwards_gen.go +++ b/tg/tl_stats_get_message_public_forwards_gen.go @@ -46,7 +46,11 @@ type StatsGetMessagePublicForwardsRequest struct { Channel InputChannelClass // Source message ID MsgID int - // Offset field of StatsGetMessagePublicForwardsRequest. + // Offset for pagination¹, empty string on first call, then use the next_offset field of + // the returned constructor (if present, otherwise no more results are available). + // + // Links: + // 1) https://core.telegram.org/api/offsets Offset string // Maximum number of results to return, see pagination¹ // diff --git a/tg/tl_sticker_set_gen.go b/tg/tl_sticker_set_gen.go index 7250ac627b..651cd94ee3 100644 --- a/tg/tl_sticker_set_gen.go +++ b/tg/tl_sticker_set_gen.go @@ -58,7 +58,10 @@ type StickerSet struct { // color when used in messages, the accent color if used as emoji status, white on chat // photos, or another appropriate color based on context. TextColor bool - // ChannelEmojiStatus field of StickerSet. + // If set, this custom emoji stickerset can be used in channel emoji statuses¹. + // + // Links: + // 1) https://core.telegram.org/api/emoji-status ChannelEmojiStatus bool // When was this stickerset installed // diff --git a/tg/tl_stories_get_story_reactions_list_gen.go b/tg/tl_stories_get_story_reactions_list_gen.go index 0600c76440..8e628a2c02 100644 --- a/tg/tl_stories_get_story_reactions_list_gen.go +++ b/tg/tl_stories_get_story_reactions_list_gen.go @@ -32,26 +32,47 @@ var ( ) // StoriesGetStoryReactionsListRequest represents TL type `stories.getStoryReactionsList#b9b2881f`. +// Get the reaction¹ and interaction list of a story² posted to a channel, along with +// the sender of each reaction. +// Can only be used by channel admins. +// +// Links: +// 1. https://core.telegram.org/api/reactions +// 2. https://core.telegram.org/api/stories // // See https://core.telegram.org/method/stories.getStoryReactionsList for reference. type StoriesGetStoryReactionsListRequest struct { - // Flags field of StoriesGetStoryReactionsListRequest. + // Flags, see TL conditional fields¹ + // + // Links: + // 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags bin.Fields - // ForwardsFirst field of StoriesGetStoryReactionsListRequest. + // If set, returns forwards and reposts first, then reactions, then other views; + // otherwise returns interactions sorted just by interaction date. ForwardsFirst bool - // Peer field of StoriesGetStoryReactionsListRequest. + // Channel Peer InputPeerClass - // ID field of StoriesGetStoryReactionsListRequest. + // Story¹ ID + // + // Links: + // 1) https://core.telegram.org/api/stories ID int - // Reaction field of StoriesGetStoryReactionsListRequest. + // Get only reactions of this type // // Use SetReaction and GetReaction helpers. Reaction ReactionClass - // Offset field of StoriesGetStoryReactionsListRequest. + // Offset for pagination (taken from the next_offset field of the returned stories + // StoryReactionsList¹); empty in the first request. + // + // Links: + // 1) https://core.telegram.org/type/stories.StoryReactionsList // // Use SetOffset and GetOffset helpers. Offset string - // Limit field of StoriesGetStoryReactionsListRequest. + // Maximum number of results to return, see pagination¹ + // + // Links: + // 1) https://core.telegram.org/api/offsets Limit int } @@ -374,8 +395,16 @@ func (g *StoriesGetStoryReactionsListRequest) GetLimit() (value int) { } // StoriesGetStoryReactionsList invokes method stories.getStoryReactionsList#b9b2881f returning error if any. +// Get the reaction¹ and interaction list of a story² posted to a channel, along with +// the sender of each reaction. +// Can only be used by channel admins. +// +// Links: +// 1. https://core.telegram.org/api/reactions +// 2. https://core.telegram.org/api/stories // // See https://core.telegram.org/method/stories.getStoryReactionsList for reference. +// Can be used by bots. func (c *Client) StoriesGetStoryReactionsList(ctx context.Context, request *StoriesGetStoryReactionsListRequest) (*StoriesStoryReactionsList, error) { var result StoriesStoryReactionsList diff --git a/tg/tl_stories_get_story_views_list_gen.go b/tg/tl_stories_get_story_views_list_gen.go index 0d8d1cce86..f3fb36b1ee 100644 --- a/tg/tl_stories_get_story_views_list_gen.go +++ b/tg/tl_stories_get_story_views_list_gen.go @@ -52,12 +52,14 @@ type StoriesGetStoryViewsListRequest struct { // Whether to return storyView¹ info about users that reacted to the story (i.e. if set, // the server will first sort results by view date as usual, and then also additionally // sort the list by putting storyView²s with an associated reaction first in the list). + // Ignored if forwards_first is set. // // Links: // 1) https://core.telegram.org/constructor/storyView // 2) https://core.telegram.org/constructor/storyView ReactionsFirst bool - // ForwardsFirst field of StoriesGetStoryViewsListRequest. + // If set, returns forwards and reposts first, then reactions, then other views; + // otherwise returns interactions sorted just by interaction date. ForwardsFirst bool // Peer where the story was posted Peer InputPeerClass diff --git a/tg/tl_stories_story_reactions_list_gen.go b/tg/tl_stories_story_reactions_list_gen.go index da005f1739..998f5c38dc 100644 --- a/tg/tl_stories_story_reactions_list_gen.go +++ b/tg/tl_stories_story_reactions_list_gen.go @@ -32,20 +32,31 @@ var ( ) // StoriesStoryReactionsList represents TL type `stories.storyReactionsList#aa5f789c`. +// List of peers that reacted to or intercated with a specific story¹ +// +// Links: +// 1. https://core.telegram.org/api/stories // // See https://core.telegram.org/constructor/stories.storyReactionsList for reference. type StoriesStoryReactionsList struct { - // Flags field of StoriesStoryReactionsList. + // Flags, see TL conditional fields¹ + // + // Links: + // 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags bin.Fields - // Count field of StoriesStoryReactionsList. + // Total number of reactions matching query Count int - // Reactions field of StoriesStoryReactionsList. + // List of peers that reacted to or interacted with a specific story Reactions []StoryReactionClass - // Chats field of StoriesStoryReactionsList. + // Mentioned chats Chats []ChatClass - // Users field of StoriesStoryReactionsList. + // Mentioned users Users []UserClass - // NextOffset field of StoriesStoryReactionsList. + // If set, indicates the next offset to use to load more results by invoking stories + // getStoryReactionsList¹. + // + // Links: + // 1) https://core.telegram.org/method/stories.getStoryReactionsList // // Use SetNextOffset and GetNextOffset helpers. NextOffset string diff --git a/tg/tl_stories_story_views_list_gen.go b/tg/tl_stories_story_views_list_gen.go index b53bbe501e..7faaf0aa6b 100644 --- a/tg/tl_stories_story_views_list_gen.go +++ b/tg/tl_stories_story_views_list_gen.go @@ -46,15 +46,15 @@ type StoriesStoryViewsList struct { Flags bin.Fields // Total number of results that can be fetched Count int - // ViewsCount field of StoriesStoryViewsList. + // Total number of story views ViewsCount int - // ForwardsCount field of StoriesStoryViewsList. + // Total number of story forwards/reposts ForwardsCount int // Number of reactions that were added to the story ReactionsCount int // Story view date and reaction information Views []StoryViewClass - // Chats field of StoriesStoryViewsList. + // Mentioned chats Chats []ChatClass // Mentioned users Users []UserClass diff --git a/tg/tl_story_reaction_gen.go b/tg/tl_story_reaction_gen.go index 34f353348c..347ec4e0f6 100644 --- a/tg/tl_story_reaction_gen.go +++ b/tg/tl_story_reaction_gen.go @@ -32,14 +32,15 @@ var ( ) // StoryReaction represents TL type `storyReaction#6090d6d5`. +// How a certain peer reacted to a story // // See https://core.telegram.org/constructor/storyReaction for reference. type StoryReaction struct { - // PeerID field of StoryReaction. + // The peer PeerID PeerClass - // Date field of StoryReaction. + // Reaction date Date int - // Reaction field of StoryReaction. + // The reaction Reaction ReactionClass } @@ -230,10 +231,11 @@ func (s *StoryReaction) GetReaction() (value ReactionClass) { } // StoryReactionPublicForward represents TL type `storyReactionPublicForward#bbab2643`. +// A certain peer has forwarded the story as a message to a public chat or channel. // // See https://core.telegram.org/constructor/storyReactionPublicForward for reference. type StoryReactionPublicForward struct { - // Message field of StoryReactionPublicForward. + // The message with the forwarded story. Message MessageClass } @@ -369,12 +371,13 @@ func (s *StoryReactionPublicForward) GetMessage() (value MessageClass) { } // StoryReactionPublicRepost represents TL type `storyReactionPublicRepost#cfcd0f13`. +// A certain peer has reposted the story. // // See https://core.telegram.org/constructor/storyReactionPublicRepost for reference. type StoryReactionPublicRepost struct { - // PeerID field of StoryReactionPublicRepost. + // The peer that reposted the story. PeerID PeerClass - // Story field of StoryReactionPublicRepost. + // The reposted story. Story StoryItemClass } diff --git a/tg/tl_story_view_gen.go b/tg/tl_story_view_gen.go index 0429f3fd86..4d67c2c0b9 100644 --- a/tg/tl_story_view_gen.go +++ b/tg/tl_story_view_gen.go @@ -348,16 +348,27 @@ func (s *StoryView) GetReaction() (value ReactionClass, ok bool) { } // StoryViewPublicForward represents TL type `storyViewPublicForward#9083670b`. +// A certain peer has forwarded the story as a message to a public chat or channel. // // See https://core.telegram.org/constructor/storyViewPublicForward for reference. type StoryViewPublicForward struct { - // Flags field of StoryViewPublicForward. + // Flags, see TL conditional fields¹ + // + // Links: + // 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags bin.Fields - // Blocked field of StoryViewPublicForward. + // Whether we have completely blocked¹ this user, including from viewing more of our + // stories. + // + // Links: + // 1) https://core.telegram.org/api/block Blocked bool - // BlockedMyStoriesFrom field of StoryViewPublicForward. + // Whether we have blocked¹ this user from viewing more of our stories. + // + // Links: + // 1) https://core.telegram.org/api/block BlockedMyStoriesFrom bool - // Message field of StoryViewPublicForward. + // The message with the forwarded story. Message MessageClass } @@ -575,18 +586,29 @@ func (s *StoryViewPublicForward) GetMessage() (value MessageClass) { } // StoryViewPublicRepost represents TL type `storyViewPublicRepost#bd74cf49`. +// A certain peer has reposted the story. // // See https://core.telegram.org/constructor/storyViewPublicRepost for reference. type StoryViewPublicRepost struct { - // Flags field of StoryViewPublicRepost. + // Flags, see TL conditional fields¹ + // + // Links: + // 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags bin.Fields - // Blocked field of StoryViewPublicRepost. + // Whether we have completely blocked¹ this user, including from viewing more of our + // stories. + // + // Links: + // 1) https://core.telegram.org/api/block Blocked bool - // BlockedMyStoriesFrom field of StoryViewPublicRepost. + // Whether we have blocked¹ this user from viewing more of our stories. + // + // Links: + // 1) https://core.telegram.org/api/block BlockedMyStoriesFrom bool - // PeerID field of StoryViewPublicRepost. + // The peer that reposted the story. PeerID PeerClass - // Story field of StoryViewPublicRepost. + // The reposted story. Story StoryItemClass } diff --git a/tg/tl_update_gen.go b/tg/tl_update_gen.go index 53a9ecfb78..dd0702e650 100644 --- a/tg/tl_update_gen.go +++ b/tg/tl_update_gen.go @@ -23928,7 +23928,7 @@ type UpdatePeerWallpaper struct { // // Links: // 1) https://core.telegram.org/method/messages.setChatWallPaper - // 2) https://core.telegram.org/api/wallpapers#installing-wallpapers-in-a-specific-chat + // 2) https://core.telegram.org/api/wallpapers#installing-wallpapers-in-a-specific-chat-or-channel WallpaperOverridden bool // The peer where the wallpaper has changed. Peer PeerClass @@ -24169,22 +24169,26 @@ func (u *UpdatePeerWallpaper) GetWallpaper() (value WallPaperClass, ok bool) { } // UpdateBotMessageReaction represents TL type `updateBotMessageReaction#ac21d3ce`. +// Bots only: a user has changed their reactions on a message with public reactions. // // See https://core.telegram.org/constructor/updateBotMessageReaction for reference. type UpdateBotMessageReaction struct { - // Peer field of UpdateBotMessageReaction. + // Peer of the reacted-to message. Peer PeerClass - // MsgID field of UpdateBotMessageReaction. + // ID of the reacted-to message. MsgID int - // Date field of UpdateBotMessageReaction. + // Date of the change. Date int - // Actor field of UpdateBotMessageReaction. + // The user that (un)reacted to the message. Actor PeerClass - // OldReactions field of UpdateBotMessageReaction. + // Old reactions OldReactions []ReactionClass - // NewReactions field of UpdateBotMessageReaction. + // New reactions NewReactions []ReactionClass - // Qts field of UpdateBotMessageReaction. + // QTS¹ event sequence identifier + // + // Links: + // 1) https://core.telegram.org/api/updates Qts int } @@ -24521,18 +24525,22 @@ func (u *UpdateBotMessageReaction) MapNewReactions() (value ReactionClassArray) } // UpdateBotMessageReactions represents TL type `updateBotMessageReactions#9cb7759`. +// Bots only: the number of reactions on a message with anonymous reactions has changed. // // See https://core.telegram.org/constructor/updateBotMessageReactions for reference. type UpdateBotMessageReactions struct { - // Peer field of UpdateBotMessageReactions. + // Peer of the reacted-to message. Peer PeerClass - // MsgID field of UpdateBotMessageReactions. + // ID of the reacted-to message. MsgID int - // Date field of UpdateBotMessageReactions. + // Date of the change. Date int - // Reactions field of UpdateBotMessageReactions. + // New reaction counters. Reactions []ReactionCount - // Qts field of UpdateBotMessageReactions. + // QTS¹ event sequence identifier + // + // Links: + // 1) https://core.telegram.org/api/updates Qts int } @@ -24786,7 +24794,10 @@ func (u *UpdateBotMessageReactions) GetQts() (value int) { // // See https://core.telegram.org/constructor/updateSavedDialogPinned for reference. type UpdateSavedDialogPinned struct { - // Flags field of UpdateSavedDialogPinned. + // Flags, see TL conditional fields¹ + // + // Links: + // 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags bin.Fields // Pinned field of UpdateSavedDialogPinned. Pinned bool @@ -24978,7 +24989,10 @@ func (u *UpdateSavedDialogPinned) GetPeer() (value DialogPeerClass) { // // See https://core.telegram.org/constructor/updatePinnedSavedDialogs for reference. type UpdatePinnedSavedDialogs struct { - // Flags field of UpdatePinnedSavedDialogs. + // Flags, see TL conditional fields¹ + // + // Links: + // 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags bin.Fields // Order field of UpdatePinnedSavedDialogs. // diff --git a/tg/tl_user_full_gen.go b/tg/tl_user_full_gen.go index 01f59ffaee..73be91ab47 100644 --- a/tg/tl_user_full_gen.go +++ b/tg/tl_user_full_gen.go @@ -79,7 +79,7 @@ type UserFull struct { // // Links: // 1) https://core.telegram.org/method/messages.setChatWallPaper - // 2) https://core.telegram.org/api/wallpapers#installing-wallpapers-in-a-specific-chat + // 2) https://core.telegram.org/api/wallpapers#installing-wallpapers-in-a-specific-chator-channel WallpaperOverridden bool // ContactRequirePremium field of UserFull. ContactRequirePremium bool diff --git a/tg/tl_wall_paper_settings_gen.go b/tg/tl_wall_paper_settings_gen.go index 15b354db9b..8f3d9f8d11 100644 --- a/tg/tl_wall_paper_settings_gen.go +++ b/tg/tl_wall_paper_settings_gen.go @@ -95,7 +95,8 @@ type WallPaperSettings struct { // // Use SetRotation and GetRotation helpers. Rotation int - // Emoticon field of WallPaperSettings. + // If set, this wallpaper can be used as a channel wallpaper and is represented by the + // specified UTF-8 emoji. // // Use SetEmoticon and GetEmoticon helpers. Emoticon string