File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 " Bash(mkdir:*)" ,
2121 " Bash(cp:*)" ,
2222 " Bash(rg:*)" ,
23- " Bash(mv:*)"
23+ " Bash(mv:*)" ,
24+ " Bash(gh workflow:*)" ,
25+ " Bash(gh run list:*)" ,
26+ " Bash(gh run view:*)"
2427 ],
2528 "deny" : []
2629 }
Original file line number Diff line number Diff line change 2525
2626 - name : Type check packages
2727 run : |
28- bun run --filter @react-telegram /core tsc --noEmit
29- bun run --filter @react-telegram /mtcute-adapter tsc --noEmit
28+ cd packages /core && bun run tsc --noEmit
29+ cd .. /mtcute-adapter && bun run tsc --noEmit
3030
3131 - name : Lint check (if configured)
3232 run : |
@@ -127,4 +127,9 @@ jobs:
127127 for file in src/*.tsx; do
128128 echo "Checking $file..."
129129 bun run --dry-run "$file" || exit 1
130- done
130+ done
131+ env :
132+ API_ID : ${{ secrets.API_ID || '12345' }}
133+ API_HASH : ${{ secrets.API_HASH || 'test_hash' }}
134+ BOT_TOKEN : ${{ secrets.BOT_TOKEN || 'test_token' }}
135+ continue-on-error : true
Original file line number Diff line number Diff line change 77
88concurrency : ${{ github.workflow }}-${{ github.ref }}
99
10+ # This workflow requires NPM_TOKEN to be set as a repository secret
11+ # To add the secret:
12+ # 1. Go to Settings > Secrets and variables > Actions
13+ # 2. Click "New repository secret"
14+ # 3. Name: NPM_TOKEN
15+ # 4. Value: Your npm access token from https://www.npmjs.com/settings/your-username/tokens
16+
1017jobs :
1118 release :
1219 name : Release with Changesets
Original file line number Diff line number Diff line change 88 schedule :
99 - cron : ' 0 0 * * 1' # Weekly on Monday
1010
11+ permissions :
12+ contents : read
13+ security-events : write
14+
1115jobs :
1216 audit :
1317 name : Security Audit
Original file line number Diff line number Diff line change 1+ # React Telegram Examples
2+
3+ This package contains example bots built with React Telegram.
4+
5+ ## Examples
6+
7+ - ** Basic Bot** : Simple bot demonstrating core features
8+ - ** Echo Bot** : Responds to user messages
9+ - ** Keyboard Bot** : Shows how to use inline and reply keyboards
10+ - ** Media Bot** : Demonstrates sending photos, documents, and other media
11+ - ** Advanced Bot** : Complex bot with state management and multiple features
12+
13+ ## Getting Started
14+
15+ 1 . Set up your environment variables:
16+ ``` bash
17+ API_ID=your_api_id
18+ API_HASH=your_api_hash
19+ BOT_TOKEN=your_bot_token
20+ ```
21+
22+ 2 . Install dependencies:
23+ ``` bash
24+ bun install
25+ ```
26+
27+ 3 . Run an example:
28+ ``` bash
29+ bun run examples/basic-bot.tsx
30+ ```
31+
32+ ## Learn More
33+
34+ See the [ main documentation] ( ../../README.md ) for detailed guides and API reference.
You can’t perform that action at this time.
0 commit comments