mirror of
https://github.com/lockin-bot/react-telegram.git
synced 2026-01-12 15:13:56 +08:00
- Add README.md to packages/examples for docs workflow - Fix CI workflow bun filter commands and add test env vars - Add security permissions for SARIF upload in security workflow - Document NPM_TOKEN requirement in release workflow 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
34 lines
798 B
Markdown
34 lines
798 B
Markdown
# React Telegram Examples
|
|
|
|
This package contains example bots built with React Telegram.
|
|
|
|
## Examples
|
|
|
|
- **Basic Bot**: Simple bot demonstrating core features
|
|
- **Echo Bot**: Responds to user messages
|
|
- **Keyboard Bot**: Shows how to use inline and reply keyboards
|
|
- **Media Bot**: Demonstrates sending photos, documents, and other media
|
|
- **Advanced Bot**: Complex bot with state management and multiple features
|
|
|
|
## Getting Started
|
|
|
|
1. Set up your environment variables:
|
|
```bash
|
|
API_ID=your_api_id
|
|
API_HASH=your_api_hash
|
|
BOT_TOKEN=your_bot_token
|
|
```
|
|
|
|
2. Install dependencies:
|
|
```bash
|
|
bun install
|
|
```
|
|
|
|
3. Run an example:
|
|
```bash
|
|
bun run examples/basic-bot.tsx
|
|
```
|
|
|
|
## Learn More
|
|
|
|
See the [main documentation](../../README.md) for detailed guides and API reference. |