Skip to content

Commit

Permalink
regenerate bot api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulSonOfLars committed Sep 1, 2024
1 parent e0be7dd commit d90a297
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gen_methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
6 changes: 5 additions & 1 deletion gen_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion spec_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ab2e4c8ca4457b7a660620993f6bafadfef42c86
a3636ebe8a092809f18d3da9ca023259ae3ef8d1

0 comments on commit d90a297

Please sign in to comment.