ATLBitLab / abbot

Abbot (ATL BitLab Bot)
https://atlbitlab.com/abbot
MIT License
2 stars 2 forks source link

Research way to add Abbot to group in Telegram #58

Closed bnonni closed 10 months ago

bnonni commented 11 months ago

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Alternative solutions

saucy-tech commented 10 months ago

Adding abbot to a telegram group turned out to be pretty straightforward but managing the invoice generation outside of Telegram has some challenges, especially if the user has multiple groups with Abbot.

Add Abbot to group in Telegram

Invoice Request Workflow

Proposed Solution

Consideration for Simplification

bnonni commented 10 months ago

This research is perfect and EXACTLY what I was looking for. I can add a Filter to Abbot on the backend that looks for Group Add messages. If the backend server detects a message where Abbot was added to the group, have Abbot respond with a canned message (i.e. "thanks for adding me to your group. You have 50,000 SATs free! 1 message from Abbot = 10 SATs. Once that runs out, you will need to run the /fund command passing an amount of SATs e.g. /fund 1000000). From here, I can handle the entire invoice flow on the backend. I'm going to work on getting this logic added ASAP. Closing this issue.

Thanks for your work here @saucy-tech! Great work!