Commit 00a8e67
feat: implement Telegram API integration and fix TEE memory usage (#71)
* fix: add --disable-wasm-trap-handler flag to resolve memory range error
* fix: increase heap memory allocation to 7GB to resolve memory range errors
* feat: implement Telegram API integration using fetch
- Replace mock implementation with actual Telegram Bot API calls
- Use Node.js fetch to send messages via https://api.telegram.org/bot
- Add proper error handling for API responses
- Include detailed error messages in response
- Fix linter issues with property shorthand
* test: update test expectations for new Telegram API response format
- Update e2e tests to handle new response structure with result field
- Fix test expectations for error status codes (404 instead of 500)
- Update unit tests to use fetch mocks instead of node-telegram-bot-api
- All 45 tests now passing with real Telegram API integration
---------
Co-authored-by: paypes <[email protected]>1 parent d8d2baf commit 00a8e67
File tree
8 files changed
+322
-1389
lines changed- .github/workflows
- dapp
- src
- tests
- e2e
- unit
- deployment-dapp/src/singleFunction
8 files changed
+322
-1389
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
0 commit comments