michaelimfeld / ownbot

Easy to use python module to create private telegram bots.
MIT License
31 stars 6 forks source link

Custom users.yml / add by ID #12

Open jon4hz opened 4 years ago

jon4hz commented 4 years ago

Hello, first of all great project!

I have two questions/suggestions:

Is it possible to use a custom users.yml? Like /bot/bot1/users.yml.

And is it possible to add a user by his ID? For users without a telegram username.

michaelimfeld commented 4 years ago

Hi @jon4hz

A custom users.yml can't be specified currently. But I can add an option to read it from an env variable if that would help you.

I never thought about adding a user by his ID directly since it wasn't possible to retrieve that ID directly as a user at the time I made this. (Might be possible now, I don't know). If you want to implement such a functionality, feel free to send a PR :)

Cheers