Closed arieljannai closed 4 years ago
Yes, I think that'd be easy. You'd simply have to replace message.chat.id
by message.from.id
everywhere in the code where expenses are saved to or queried from database to always get the sender. See https://core.telegram.org/bots/api#message.
You could implement that and open a PR if you like to?
I'll try it in a few days, thanks! 👍
Using command /new
, /get
, /list
seem to work in group without any changes.
p/s - Wow, I discovered this bot on May 1st a year later ;)
Will it be possible to use the bot in a group? Currently it's not working. I thought it could be very comfortable to log all the house expenses like this.
P.s I don't mean there's a need for debts, only having multiple people updating the list in that chat (and maybe have it written in the expense description who added it)