SMS to Delta Chat Bridge: What's the best approach?

Title: SMS to Delta Chat Bridge: What’s the best approach?

Hi everyone,

I’m trying to build a bridge to get my SMS messages into Delta Chat with end-to-end encryption (E2EE). The main goal is to automatically forward incoming SMS from an Android device to my Delta Chat account.

My Initial Idea

My original plan was to use a Python script within Termux on Android. The script would:

  1. Read the latest SMS using termux-sms-list.
  2. Format and send them as an email.

The Problem

I’ve run into a couple of major obstacles:

  1. Email E2EE: Implementing reliable end-to-end encryption for emails directly in Python is not straightforward.
  2. Library Compatibility: Many common bot libraries seem to be incompatible with the Termux environment.

My Questions

What would you recommend as the best way forward?

  1. Python & E2EE: Should I continue down the path of implementing email E2EE in Python? Is there a simple and proven library for this that I might have missed?
  2. Full VM
  3. Alternative Approaches: Am I overcomplicating things? Would a more robust solution like a full virtual machine on the device, or a completely different approach, be more suitable?

I’m open to any advice or ideas you might have.

Thanks!

You should probably try to use one of the existing Deltachat bots libraries, like deltabot-cli-py, it may be tricky to get it working on termux but it’s totally possible, in the worst case you can use proot-distro and use some distro to run the bot, I recently ran one on Alpine.