Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notifications through Simplex #22

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Conversation

lft3t8bx
Copy link
Contributor

@lft3t8bx lft3t8bx commented Oct 1, 2024

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

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