@vbotma/sdk
v3.3.0
Published
TypeScript Source Development Kit for VBot Mini Apps client application.
Maintainers
Readme
@vbotma/sdk
Made from scratch TypeScript library for seamless communication with VBot Mini Apps functionality.
The code of this library is designed to simplify the process of developers interacting with Telegram Mini Apps. It consists of several individual components, each responsible for a specific aspect of the VBot Mini Apps ecosystem.
Before you begin using the SDK, we highly recommend familiarizing yourself with the Telegram Mini Apps documentation to grasp the fundamental concepts of the platform.
Installation
# pnpm
pnpm i @vbotma/sdk
# yarn
yarn add @vbotma/sdk
# npm
npm i @vbotma/sdkUsage Example
import { init, backButton } from '@vbotma/sdk';
// Initialize all library dependencies.
init();
// Mount all required components used across the application.
// This will lead to components' state restoration.
backButton.mount();
backButton.onClick(() => {
window.history.back();
});Documentation
You can find complete documentation over the library here.
