https://github.com/surfgram/surfgram
High-performance, fully typed SDK for Telegram Bot API
https://github.com/surfgram/surfgram
telegram telegram-bot telegram-bot-api typescript
Last synced: 3 months ago
JSON representation
High-performance, fully typed SDK for Telegram Bot API
- Host: GitHub
- URL: https://github.com/surfgram/surfgram
- Owner: surfgram
- License: mit
- Created: 2025-04-19T10:45:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-03-09T03:32:36.000Z (4 months ago)
- Last Synced: 2026-03-15T23:56:18.389Z (3 months ago)
- Topics: telegram, telegram-bot, telegram-bot-api, typescript
- Language: TypeScript
- Homepage:
- Size: 11.5 MB
- Stars: 21
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Surfgram

## Overview
Surfgram is a no-nonsense SDK for Telegram Bot API designed for developers who want:
- **Strict typing**
- **Fluent interface**
- **Full auto-complete support**
---
## Quick Start
### Install
```bash
npm install surfgram
# or
yarn add surfgram
# or
pnpm add surfgram
```
### Write your first bot
```typescript
import { Bot, Message } from 'surfgram';
const bot = new Bot('TOKEN');
bot.onMessage('/start', (message: Message) => {
message.sendMessage({ text: 'hi there' });
});
bot.startPolling();
```
---
## Community
We welcome contributions! Please read our:
- [Contributor Guidelines](CONTRIBUTING.md)
- [Code of Conduct](CODE_OF_CONDUCT.md)
## License
Surfgram is distributed under the [MIT License](LICENSE).