@longpoll/telegram-webapp-types
v7.7.3
Published
TS typings for Telegram WebApps. https://core.telegram.org/bots/webapps
Downloads
91
Maintainers
Readme
Telegram Web App TypeScript Typings
TypeScript typings for Telegram Web Apps. These typings provide type information for developing applications that interact with Telegram's Web App. For more information on Telegram Web Apps, please visit the official documentation.
Installation
You can install these TypeScript typings via npm:
npm install @longpoll/telegram-webapp-types
Usage
TypeScript Project
If you are working on a TypeScript project, follow these steps to include the Telegram Web App types in your project:
Make sure you have installed the typings using npm.
Open your
tsconfig.json
file and update thecompilerOptions
section to include the path to the type definitions. Add"typeRoots"
with an array containing the following paths:
{
"compilerOptions": {
// ... other options
"typeRoots": [
+ "./node_modules/@longpoll/telegram-webapp-types"
]
}
}
Documentation
For more detailed information on using these typings, please refer to the official Telegram Web Apps documentation.
License
This module is licensed under the [Your License Name] License. See the LICENSE file for details.
Support
If you have any questions or encounter any issues, please feel free to open an issue on our GitHub repository. We'd be happy to assist you.