High-performance, fully typed SDK for Telegram Bot API
npm install surfgramSurfgram is a no-nonsense SDK for Telegram Bot API designed for developers who want:
- Strict typing
- Fluent interface
- Full auto-complete support
---
``bash`
npm install surfgramor
yarn add surfgramor
pnpm add surfgram
`typescript
import { Bot, Message } from 'surfgram';
const bot = new Bot('TOKEN');
bot.onMessage('/start', (message: Message) => {
message.sendMessage({ text: 'hi there' });
});
bot.startPolling();
``
---
We welcome contributions! Please read our:
- Contributor Guidelines
- Code of Conduct
Surfgram is distributed under the MIT License.