telegram-webapps-types-new
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -8,2 +8,4 @@ export declare namespace TelegramWebApps { | ||
type ChatTypes = "users" | "bots" | "groups" | "channels"; | ||
interface WebApp { | ||
@@ -106,5 +108,22 @@ /** | ||
* A method used to send data to the bot. | ||
* | ||
* When this method is called, a service message is sent to the bot containing the data *data* of the length up to 4096 bytes, and the Web App is closed. | ||
* | ||
* *This method is only available for Web Apps launched via a Keyboard button.* | ||
*/ | ||
sendData(data): void; | ||
/** | ||
* A method that inserts the bot's username and the specified inline query in the current chat's input field. | ||
* | ||
* Query may be empty, in which case only the bot's username will be inserted. | ||
* | ||
* Bot API 6.7+ | ||
* If an optional choose_chat_types parameter was passed, the client prompts the user to choose a specific chat, then opens that chat and inserts the bot's username and the specified inline query in the input field. | ||
* | ||
* You can specify which types of chats the user will be able to choose from. | ||
* | ||
* It can be one or more of the following types: users, bots, groups, channels. | ||
*/ | ||
switchInlineQuery(query: string, choose_chat_types?: ChatTypes[]): void; | ||
/** | ||
* A method that opens a link in an external browser. | ||
@@ -111,0 +130,0 @@ * The Web App will not be closed. |
{ | ||
"name": "telegram-webapps-types-new", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "TypeScript typings for Telegram Web Apps for Bots. See https://core.telegram.org/bots/webapps", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
24041
528