Viber and Telegram Bot that use the same database.
Hi guys. I have Telegram and Viber bot. They use the same database. How do I use the railway server to work properly? Is this even possible?
15 Replies
Project ID:
N/A
N/A
would that be two separate services using the same database?
It will be Telegram and Viber bot. They use the same database that is updated every 15 minutes. Can you please tell me how to do it better? One database for two bots. Is this the right approach or can something change?
just setup the database variable references on the services that need it
https://docs.railway.app/develop/variables#reference-variables
then use those variables in code
By the way, you can't tell me how to send Viber bot to railway
I will be very grateful
pardon?
tbh i dont know what a viper bot is, can you tell me more about it?
Viber is a messenger, something similar to Telegram. I just don't know how to properly upload it to the server
do you have it in a github repo?
Not yet. Can I upload it via github?
yes that is the preferred method
btw, I need to update my db every 15 minutes. Can you tell me to do this in a another script and upload it to the server along with my bots?
sorry programming help like that is a bit out of scope for these help threads
I just want to know the best way to upload it to the server
btw, thanks bro
github would be the best way