Skip to content

Commit 00a8e67

Browse files
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

8 files changed

+322
-1389
lines changed

.github/workflows/dapp-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
/etc/resolv.conf
7676
binary-fs: true
7777
fs-dir: /app
78-
heap: 1G
78+
heap: 7G
7979
dlopen: 1
8080
mprotect: 1
8181
secrets:

dapp/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM node:20-alpine3.22
1+
FROM node:20.19-alpine3.22
22
WORKDIR /app
33
COPY package*.json ./
44
RUN npm ci --production
55
COPY ./src .
6-
ENTRYPOINT ["node", "/app/app.js"]
6+
ENTRYPOINT [ "node", "--disable-wasm-trap-handler", "/app/app.js" ]

0 commit comments

Comments
 (0)