R
Railway10mo ago
noway

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
Percy
Percy10mo ago
Project ID: N/A
noway
noway10mo ago
N/A
Brody
Brody10mo ago
would that be two separate services using the same database?
noway
noway10mo ago
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?
Brody
Brody10mo ago
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
noway
noway10mo ago
By the way, you can't tell me how to send Viber bot to railway I will be very grateful
Brody
Brody10mo ago
pardon? tbh i dont know what a viper bot is, can you tell me more about it?
noway
noway10mo ago
Viber is a messenger, something similar to Telegram. I just don't know how to properly upload it to the server
Brody
Brody10mo ago
do you have it in a github repo?
noway
noway10mo ago
Not yet. Can I upload it via github?
Brody
Brody10mo ago
yes that is the preferred method
noway
noway10mo ago
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?
Brody
Brody10mo ago
sorry programming help like that is a bit out of scope for these help threads
noway
noway10mo ago
I just want to know the best way to upload it to the server btw, thanks bro
Brody
Brody10mo ago
github would be the best way