https://github.com/timnikolsky/tgkit
A developer-friendly wrapper for Telegram Bot API
https://github.com/timnikolsky/tgkit
bots nodejs telegram telegram-bot-api tgkit typescript
Last synced: 5 months ago
JSON representation
A developer-friendly wrapper for Telegram Bot API
- Host: GitHub
- URL: https://github.com/timnikolsky/tgkit
- Owner: timnikolsky
- License: mit
- Created: 2022-03-09T15:11:49.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2026-01-05T06:42:06.000Z (6 months ago)
- Last Synced: 2026-01-15T07:50:13.834Z (5 months ago)
- Topics: bots, nodejs, telegram, telegram-bot-api, tgkit, typescript
- Language: TypeScript
- Homepage: https://tgkit.vercel.app
- Size: 509 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.MD
- License: license
Awesome Lists containing this project
README
TgKit
## About
> [!WARNING]
> **This library is under development!** It doesn't yet cover Telegram Bot API 100% and may contain bugs. Library API may change at any time. Use it in production at your own risk.
> **None of the code is generated**. Every type and structure is hand-written, hence there can be some mistakes. Please open an issue if you find any!
TgKit is library for interacting with [Telegram Bot API](https://core.telegram.org/bots/api)
### Features
- Lightweight
- Object-oriented, has predictable abstractions and [Typescript](https://typescriptlang.org/) type defentitions included
## Example
```ts
import { Client } from 'tgkit';
const client = new Client({
// Create bot and get token via @botfather
token: '0123456789:PUtY0uR0WNT37egR4m8oTtOk3NHer3-tMnK',
});
client.on('message', async (message) => {
if (message.text.startsWith('/start')) {
await message.chat.sendMessage("Hello World! I'm a brand new TgKit bot");
await message.chat.sendMessage('✌️');
}
});
client.polling.start();
```