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