@grammyjs/types
Advanced tools
Comparing version 3.9.0 to 3.10.0
@@ -217,2 +217,4 @@ import type { Location, Message, PhotoSize, ReactionType, Sticker } from "./message.js"; | ||
location?: undefined; | ||
/** True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats. */ | ||
can_send_paid_media?: undefined; | ||
} | ||
@@ -307,2 +309,4 @@ /** Internal type for group chats */ | ||
location?: undefined; | ||
/** True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats. */ | ||
can_send_paid_media?: undefined; | ||
} | ||
@@ -397,2 +401,4 @@ /** Internal type for supergroup chats */ | ||
location?: ChatLocation; | ||
/** True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats. */ | ||
can_send_paid_media?: undefined; | ||
} | ||
@@ -487,2 +493,4 @@ /** Internal type for channel chats */ | ||
location?: undefined; | ||
/** True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats. */ | ||
can_send_paid_media?: true; | ||
} | ||
@@ -489,0 +497,0 @@ } |
{ | ||
"name": "@grammyjs/types", | ||
"version": "3.9.0", | ||
"version": "3.10.0", | ||
"description": "Telegram Bot API type declarations for grammY", | ||
@@ -5,0 +5,0 @@ "main": "mod.js", |
@@ -129,6 +129,16 @@ import type { User } from "./manage.js"; | ||
- TransactionPartnerUser | ||
- TransactionPartnerFragment | ||
- TransactionPartnerUser | ||
- TransactionPartnerTelegramAds | ||
- TransactionPartnerOther */ | ||
export type TransactionPartner = TransactionPartnerFragment | TransactionPartnerUser | TransactionPartnerOther; | ||
export type TransactionPartner = TransactionPartnerUser | TransactionPartnerFragment | TransactionPartnerTelegramAds | TransactionPartnerOther; | ||
/** Describes a transaction with a user. */ | ||
export interface TransactionPartnerUser { | ||
/** Type of the transaction partner, always “user” */ | ||
type: "user"; | ||
/** Information about the user */ | ||
user: User; | ||
/** Bot-specified invoice payload */ | ||
invoice_payload?: string; | ||
} | ||
/** Describes a withdrawal transaction with Fragment. */ | ||
@@ -141,8 +151,6 @@ export interface TransactionPartnerFragment { | ||
} | ||
/** Describes a transaction with a user. */ | ||
export interface TransactionPartnerUser { | ||
/** Type of the transaction partner, always “user” */ | ||
type: "user"; | ||
/** Information about the user */ | ||
user: User; | ||
/** Describes a withdrawal transaction to the Telegram Ads platform. */ | ||
export interface TransactionPartnerTelegramAds { | ||
/** Type of the transaction partner, always “telegram_ads” */ | ||
type: "telegram_ads"; | ||
} | ||
@@ -149,0 +157,0 @@ /** Describes a transaction with an unknown source or recipient. */ |
@@ -35,3 +35,3 @@ import type { WebAppInfo } from "./markup.js"; | ||
text: string; | ||
/** Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery. */ | ||
/** Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery. Alternatively, a t.me link to a Web App can be specified in the object instead of the Web App's URL, in which case the Web App will be opened as if the user pressed the link. */ | ||
web_app: WebAppInfo; | ||
@@ -38,0 +38,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
365181
5656