muety / telegram-expense-bot

A bot that helps you manage and track your daily expenses.
59 stars 16 forks source link

Using the bot in a group #1

Closed arieljannai closed 4 years ago

arieljannai commented 7 years ago

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)

muety commented 7 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?

arieljannai commented 7 years ago

I'll try it in a few days, thanks! 👍

k4ml commented 6 years ago

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 ;)