Skip to content

Commit

Permalink
fix: add missing fields to ChatInviteLink and sync docs
Browse files Browse the repository at this point in the history
  • Loading branch information
KnorpelSenf committed Aug 31, 2024
1 parent f00bd6e commit 2456d5e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ export interface InputInvoiceMessageContent {
title: string;
/** Product description, 1-255 characters */
description: string;
/** 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;
/** Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars. */
provider_token?: string;
Expand Down
4 changes: 4 additions & 0 deletions manage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,10 @@ export interface ChatInviteLink {
member_limit?: number;
/** Number of pending join requests created using this link */
pending_join_request_count?: number;
/** The number of seconds the subscription will be active for before the next payment */
subscription_period?: number;
/** 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 */
subscription_price?: number;
}

/** Represents the rights of an administrator in a chat. */
Expand Down
4 changes: 2 additions & 2 deletions methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,7 @@ export type ApiMethods<F> = {
title: string;
/** Product description, 1-255 characters */
description: string;
/** 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;
/** Payment provider token, obtained via BotFather. Pass an empty string for payments in Telegram Stars. */
provider_token?: string;
Expand Down Expand Up @@ -1802,7 +1802,7 @@ export type ApiMethods<F> = {
title: string;
/** Product description, 1-255 characters */
description: string;
/** 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;
/** Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars. */
provider_token?: string;
Expand Down

0 comments on commit 2456d5e

Please sign in to comment.