Support multiple bots
The way the token configuration is handled at the moment means that this library can only be used for a single bot. I'd like to have multiple bots running within the same Erlang VM.
It would be nice if the token could be specified when making an API call. For example:
Nadia.send_message(chat_id, text, token: token)
That sounds like a big refactor @col
Any feedback on this? @zhyu
Edit: Okay, I see there is a PR open for it already: #23
Just noting this here for anyone else looking at the issues.
Is there any chance this will get merged yet? Has anyone come up with a workaround?
Sorry for keeping you waiting 😿
I'll try to find a clean way to do this, and do some refactoring later
what about using an umbrella project instead?
We need multiple bots!
Is this enhancement being done?
Hi there. I've created a fork project which enables support for multiple bots. You can even add dynamic bots at runtime. https://hex.pm/packages/alexia
Did a pull request with some of the functionalities and enhancements 2 weeks ago but nothing was accepted so I decided to focus on my own fork.
Take care!
@Enotsoul could you please host your code for alexia on github too?