@effect-ak/tg-bot-client
v1.4.2
Published
Type-safe HTTP client for Telegram Bot API
Maintainers
Readme
@effect-ak/tg-bot-client
Type-safe HTTP client for Telegram Bot API with complete TypeScript support.
Installation
npm install @effect-ak/tg-bot-clientQuick Start
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({
bot_token: "YOUR_BOT_TOKEN"
})
await client.execute("send_message", {
chat_id: "123456789",
text: "Hello, World!"
})Features
- Type-Safe — full TypeScript support with types from official documentation
- Lightweight — minimal dependencies
- Complete API Coverage — all Bot API methods supported
- File Handling — simplified upload and download
- Message Effects — built-in constants
Documentation
Full documentation, usage examples, and error handling: tg-bot-sdk.website
License
MIT
