Skip to content

Conversation

@SeddikBellamine
Copy link
Contributor

Changes

  • Implement real Telegram Bot API integration using fetch
  • Replace implementation with actual HTTP requests
  • Add proper error handling for API responses
  • Fix TEE memory usage by setting heap size from 1GB to 7G
  • Update deployment configuration for optimal memory usage

Testing

  • ✅ Docker build successful
  • ✅ Container execution successful
  • ✅ Telegram message sent successfully

Impact

  • Reduces TEE memory usage from 18GB to ~4.5GB
  • Enables actual Telegram message sending
  • Improves error handling and debugging

abbesBenayache and others added 4 commits August 8, 2025 10:56
- 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
- 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
@abbesBenayache abbesBenayache force-pushed the fix/memory-range-error branch from 90d4ae5 to 9f37680 Compare August 8, 2025 12:21
@SeddikBellamine SeddikBellamine merged commit 00a8e67 into main Aug 8, 2025
4 checks passed
@SeddikBellamine SeddikBellamine deleted the fix/memory-range-error branch August 8, 2025 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants