From d90a297a4172176af7bde3ea61830f8e60c4edf1 Mon Sep 17 00:00:00 2001 From: Paul Larsen Date: Sun, 1 Sep 2024 22:17:53 +0100 Subject: [PATCH] regenerate bot api docs --- gen_methods.go | 4 ++-- gen_types.go | 6 +++++- spec_commit | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gen_methods.go b/gen_methods.go index dea5610..d151331 100755 --- a/gen_methods.go +++ b/gen_methods.go @@ -764,7 +764,7 @@ type CreateInvoiceLinkOpts struct { // Use this method to create a link for an invoice. Returns the created invoice link as String on success. // - title (type string): Product name, 1-32 characters // - description (type string): Product description, 1-255 characters -// - payload (type string): Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. +// - payload (type string): Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes. // - currency (type string): Three-letter ISO 4217 currency code, see more on currencies. Pass "XTR" for payments in Telegram Stars. // - prices (type []LabeledPrice): Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in Telegram Stars. // - opts (type CreateInvoiceLinkOpts): All optional parameters. @@ -3649,7 +3649,7 @@ type SendInvoiceOpts struct { // - chatId (type int64): Unique identifier for the target chat // - title (type string): Product name, 1-32 characters // - description (type string): Product description, 1-255 characters -// - payload (type string): Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. +// - payload (type string): Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes. // - currency (type string): Three-letter ISO 4217 currency code, see more on currencies. Pass "XTR" for payments in Telegram Stars. // - prices (type []LabeledPrice): Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in Telegram Stars. // - opts (type SendInvoiceOpts): All optional parameters. diff --git a/gen_types.go b/gen_types.go index eafef40..f249656 100755 --- a/gen_types.go +++ b/gen_types.go @@ -1771,6 +1771,10 @@ type ChatInviteLink struct { MemberLimit int64 `json:"member_limit,omitempty"` // Optional. Number of pending join requests created using this link PendingJoinRequestCount int64 `json:"pending_join_request_count,omitempty"` + // Optional. The number of seconds the subscription will be active for before the next payment + SubscriptionPeriod int64 `json:"subscription_period,omitempty"` + // Optional. The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat using the link + SubscriptionPrice int64 `json:"subscription_price,omitempty"` } // ChatJoinRequest (https://core.telegram.org/bots/api#chatjoinrequest) @@ -4614,7 +4618,7 @@ type InputInvoiceMessageContent struct { Title string `json:"title"` // Product description, 1-255 characters Description string `json:"description"` - // Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. + // Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes. Payload string `json:"payload"` // Optional. Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars. ProviderToken string `json:"provider_token,omitempty"` diff --git a/spec_commit b/spec_commit index 0e838ef..932b851 100644 --- a/spec_commit +++ b/spec_commit @@ -1 +1 @@ -ab2e4c8ca4457b7a660620993f6bafadfef42c86 \ No newline at end of file +a3636ebe8a092809f18d3da9ca023259ae3ef8d1 \ No newline at end of file