Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

telegram-webapps-types-new

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telegram-webapps-types-new - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

19

dist/index.d.ts

@@ -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.

2

package.json
{
"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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc