R
Railway17mo ago
awerks

Railway build time out

So i'm trying to build Telegram Bot API Server in the Railway environment, run it with the necessary arguments before running my main program which is bot.py. Is there any way to extend the time limit or should I build these files on my own system and deploy them afterwards? This is a way to install it using Terminal apt-get update apt-get upgrade apt-get install make git zlib1g-dev libssl-dev gperf cmake g++ git clone --recursive https://github.com/tdlib/telegram-bot-api.git cd telegram-bot-api rm -rf build mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=.. .. cmake --build . --target install And this is how I converted it to a Dockerfile: FROM ubuntu:20.04 ENV DEBIAN_FRONTEND=noninteractive ENV CC=/usr/bin/clang-10 ENV CXX=/usr/bin/clang++-10 ENV CXXFLAGS=-stdlib=libc++ RUN apt-get update && apt-get install -y \ make \ git \ zlib1g-dev \ libssl-dev \ gperf \ cmake \ clang-10 \ libc++-dev \ libc++abi-dev RUN git clone --recursive https://github.com/tdlib/telegram-bot-api.git WORKDIR /telegram-bot-api RUN rm -rf build && mkdir build && cd build && \ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=.. .. && \ cmake --build . --target install WORKDIR / CMD /telegram-bot-api/bin/telegram-bot-api --api-id=$apiid --api-hash=$apihash && python3 bot.py
18 Replies
Percy
Percy17mo ago
Project ID: 9af46e4f-870a-420f-b8df-b449c34e49ba
awerks
awerksOP17mo ago
9af46e4f-870a-420f-b8df-b449c34e49ba
angelo
angelo17mo ago
This workload is not allowed on Railway.
root
root17mo ago
Hey, I'm really sorry, but I'm afraid userbots are against Railway's terms of service: https://railway.app/legal/fair-use
Railway
Fair Use
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
awerks
awerksOP17mo ago
wait why?
Brody
Brody17mo ago
angelo
angelo17mo ago
FFMpeg means you are downloading and hosting movies no?
Brody
Brody17mo ago
^ that too
awerks
awerksOP17mo ago
i'm not downloading any movies, it's used to overlay subtitles on a video
angelo
angelo17mo ago
Real? A captioner?
awerks
awerksOP17mo ago
yes twitter/youtube you're allowed to download those
angelo
angelo17mo ago
Unless you are willing to pay for that egress :/ Go on then
awerks
awerksOP17mo ago
where should I host it then?
awerks
awerksOP17mo ago
i'm not doing anything illegal
awerks
awerksOP17mo ago
A userbot is a type of bot that operates as if it were a regular user account which is illegal, including on telegram mine is just a bot
Brody
Brody17mo ago
the library you are using allows you to bypass the 50mb file limit for bots though
awerks
awerksOP17mo ago
wdym? that's an official library
awerks
awerksOP17mo ago
Want results from more Discord servers?
Add your server