diff --git a/examples/go.mod b/examples/go.mod index 88b94b81fe..a5f0f54dfa 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -52,9 +52,9 @@ require ( github.com/prometheus/procfs v0.12.0 // indirect github.com/rogpeppe/go-internal v1.13.1 // indirect github.com/segmentio/asm v1.2.0 // indirect - go.opentelemetry.io/otel v1.32.0 // indirect - go.opentelemetry.io/otel/metric v1.32.0 // indirect - go.opentelemetry.io/otel/trace v1.32.0 // indirect + go.opentelemetry.io/otel v1.33.0 // indirect + go.opentelemetry.io/otel/metric v1.33.0 // indirect + go.opentelemetry.io/otel/trace v1.33.0 // indirect go.uber.org/multierr v1.11.0 // indirect golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20230725093048-515e97ebf090 // indirect diff --git a/examples/go.sum b/examples/go.sum index 7555a8a15c..bfc2a8518e 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -103,12 +103,14 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= go.etcd.io/bbolt v1.3.9 h1:8x7aARPEXiXbHmtUwAIv7eV2fQFHrLLavdiJ3uzJXoI= go.etcd.io/bbolt v1.3.9/go.mod h1:zaO32+Ti0PK1ivdPtgMESzuzL2VPoIG1PCQNvOdo/dE= -go.opentelemetry.io/otel v1.32.0 h1:WnBN+Xjcteh0zdk01SVqV55d/m62NJLJdIyb4y/WO5U= -go.opentelemetry.io/otel v1.32.0/go.mod h1:00DCVSB0RQcnzlwyTfqtxSm+DRr9hpYrHjNGiBHVQIg= -go.opentelemetry.io/otel/metric v1.32.0 h1:xV2umtmNcThh2/a/aCP+h64Xx5wsj8qqnkYZktzNa0M= -go.opentelemetry.io/otel/metric v1.32.0/go.mod h1:jH7CIbbK6SH2V2wE16W05BHCtIDzauciCRLoc/SyMv8= -go.opentelemetry.io/otel/trace v1.32.0 h1:WIC9mYrXf8TmY/EXuULKc8hR17vE+Hjv2cssQDe03fM= -go.opentelemetry.io/otel/trace v1.32.0/go.mod h1:+i4rkvCraA+tG6AzwloGaCtkx53Fa+L+V8e9a7YvhT8= +go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= +go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= +go.opentelemetry.io/otel v1.33.0 h1:/FerN9bax5LoK51X/sI0SVYrjSE0/yUL7DpxW4K3FWw= +go.opentelemetry.io/otel v1.33.0/go.mod h1:SUUkR6csvUQl+yjReHu5uM3EtVV7MBm5FHKRlNx4I8I= +go.opentelemetry.io/otel/metric v1.33.0 h1:r+JOocAyeRVXD8lZpjdQjzMadVZp2M4WmQ+5WtEnklQ= +go.opentelemetry.io/otel/metric v1.33.0/go.mod h1:L9+Fyctbp6HFTddIxClbQkjtubW6O9QS3Ann/M82u6M= +go.opentelemetry.io/otel/trace v1.33.0 h1:cCJuF7LRjUFso9LPnEAHJDB2pqzp+hbO8eu1qqW2d/s= +go.opentelemetry.io/otel/trace v1.33.0/go.mod h1:uIcdVUZMpTAmz0tI1z04GoVSezK37CbGV4fr1f2nBck= 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.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= diff --git a/go.mod b/go.mod index 012e6648a5..2dd14488d5 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.44.0 + github.com/gotd/getdoc v0.45.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 54cc233175..f29a73de64 100644 --- a/go.sum +++ b/go.sum @@ -37,8 +37,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.44.0 h1:hSJzDY313wysMqmu6+sWg4pbKc4nJF1/316lxjmrPKk= -github.com/gotd/getdoc v0.44.0/go.mod h1:tPqC2xq2IHhcxvmhdRfTA4ZK0YQKtJtbyZgbQcSuAXI= +github.com/gotd/getdoc v0.45.0 h1:TTWG3KghmazcCuO+cD0SeBVabRxJo9RJEvpcXJ/Jd1M= +github.com/gotd/getdoc v0.45.0/go.mod h1:tPqC2xq2IHhcxvmhdRfTA4ZK0YQKtJtbyZgbQcSuAXI= 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_boost_gen.go b/tg/tl_boost_gen.go index acf6b675c4..c0677a3b4c 100644 --- a/tg/tl_boost_gen.go +++ b/tg/tl_boost_gen.go @@ -90,7 +90,7 @@ type Boost struct { // // Use SetMultiplier and GetMultiplier helpers. Multiplier int - // Stars field of Boost. + // Number of Telegram Stars distributed among the winners of the giveaway. // // Use SetStars and GetStars helpers. Stars int64 diff --git a/tg/tl_input_invoice_gen.go b/tg/tl_input_invoice_gen.go index 4a3cfd87de..e63f7aea43 100644 --- a/tg/tl_input_invoice_gen.go +++ b/tg/tl_input_invoice_gen.go @@ -842,7 +842,11 @@ type InputInvoiceStarGift struct { // Links: // 1) https://core.telegram.org/constructor/starGift GiftID int64 - // Optional message, attached with the gift + // Optional message, attached with the gift. The maximum length for this field is + // specified in the stargifts_message_length_max client configuration value »¹. + // + // Links: + // 1) https://core.telegram.org/api/config#stargifts-message-length-max // // Use SetMessage and GetMessage helpers. Message TextWithEntities diff --git a/tg/tl_message_gen.go b/tg/tl_message_gen.go index 7bcc4cc5fc..5fd4ce2a9f 100644 --- a/tg/tl_message_gen.go +++ b/tg/tl_message_gen.go @@ -301,11 +301,12 @@ type Message struct { // messageMediaDocument¹.alt_document), and will be sent once the video is processed, // which will happen approximately at the specified date (i.e. messages with this flag // set should be treated similarly to scheduled messages², but instead of the scheduled - // date, date contains the estimated conversion date). + // date, date contains the estimated conversion date). See here »³ for more info. // // Links: // 1) https://core.telegram.org/constructor/messageMediaDocument // 2) https://core.telegram.org/api/scheduled-messages + // 3) https://core.telegram.org/api/files#video-qualities VideoProcessingPending bool // ID of the message ID int diff --git a/tg/tl_payments_get_stars_subscriptions_gen.go b/tg/tl_payments_get_stars_subscriptions_gen.go index a2a9011804..ef88f22452 100644 --- a/tg/tl_payments_get_stars_subscriptions_gen.go +++ b/tg/tl_payments_get_stars_subscriptions_gen.go @@ -44,7 +44,7 @@ type PaymentsGetStarsSubscriptionsRequest struct { // Links: // 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags bin.Fields - // Whether to return only expired subscriptions due to an excessively low Telegram Star + // Whether to return only subscriptions expired due to an excessively low Telegram Star // balance. MissingBalance bool // Always pass inputPeerSelf¹. @@ -52,10 +52,10 @@ type PaymentsGetStarsSubscriptionsRequest struct { // Links: // 1) https://core.telegram.org/constructor/inputPeerSelf Peer InputPeerClass - // Offset for pagination, taken from payments.starsStatus¹. + // Offset for pagination, taken from payments.starsStatus¹.subscriptions_next_offset. // // Links: - // 1) https://core.telegram.org/constructor/payments.starsStatus#subscriptions_next_offset + // 1) https://core.telegram.org/constructor/payments.starsStatus Offset string } diff --git a/tg/tl_payments_stars_status_gen.go b/tg/tl_payments_stars_status_gen.go index 4db650683c..d5392d1ea7 100644 --- a/tg/tl_payments_stars_status_gen.go +++ b/tg/tl_payments_stars_status_gen.go @@ -56,14 +56,11 @@ type PaymentsStarsStatus struct { // // Use SetSubscriptions and GetSubscriptions helpers. Subscriptions []StarsSubscription - // Offset for pagination of subscriptions: only usable with payments - // getStarsSubscriptions¹, returned when invoking payments.getStarsTransactions² and - // payments.getStarsSubscriptions³. + // Offset for pagination of subscriptions: only usable and returned when invoking + // payments.getStarsSubscriptions¹. // // Links: // 1) https://core.telegram.org/method/payments.getStarsSubscriptions - // 2) https://core.telegram.org/method/payments.getStarsTransactions - // 3) https://core.telegram.org/method/payments.getStarsSubscriptions // // Use SetSubscriptionsNextOffset and GetSubscriptionsNextOffset helpers. SubscriptionsNextOffset string diff --git a/tg/tl_update_gen.go b/tg/tl_update_gen.go index 690cc1e576..705fe7b641 100644 --- a/tg/tl_update_gen.go +++ b/tg/tl_update_gen.go @@ -13843,7 +13843,7 @@ func (u *UpdateNewScheduledMessage) GetMessage() (value MessageClass) { } // UpdateDeleteScheduledMessages represents TL type `updateDeleteScheduledMessages#f2a71983`. -// Some scheduled messages¹ were deleted from the schedule queue of a chat +// Some scheduled messages¹ were deleted (or sent) from the schedule queue of a chat // // Links: // 1. https://core.telegram.org/api/scheduled-messages @@ -13859,7 +13859,14 @@ type UpdateDeleteScheduledMessages struct { Peer PeerClass // Deleted scheduled messages Messages []int - // SentMessages field of UpdateDeleteScheduledMessages. + // If set, this update indicates that some scheduled messages were sent (not simply + // deleted from the schedule queue). In this case, the messages field will contain the + // scheduled message IDs for the sent messages (initially returned in + // updateNewScheduledMessage¹), and sent_messages will contain the real message IDs for + // the sent messages. + // + // Links: + // 1) https://core.telegram.org/constructor/updateNewScheduledMessage // // Use SetSentMessages and GetSentMessages helpers. SentMessages []int