Skip to content

Conversation

TempleOfSats
Copy link
Contributor

I throw this here as draft idea but I believe there is room of improvement.

This is a functioning version of Simplex Bot that does not require any change of the backend and simply query the postgres database against a self created simple sql database storing users registered robot. Robot is matched against same token used by telegram.
Maybe a bot that would use redis channels instead of proactively checking for new notifications in the database would be more efficient. Also to make it user friendly I would imagine that alongside "enable telegram bot", a new "enable simplex bot" button that would show simplex bot address and token would be needed.

It is usable right now, but the user would manually need to copy the telegram token, and interact with the bot through message

/start token

, as shown below:
image

To use the bot:

  1. build the container
  2. run docker run -it -v ./simplex/database:/simplex_database lndtest-simplex simplex-chat -p 5225 -d /simplex_database/test_db . This will allow you to give a name to your bot
  3. run the robosats coordinator stack as always, the log of simplex container will return your simplex bot address you can share with users

KoalaSat added a commit that referenced this pull request May 3, 2025
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.

1 participant