R
Railway12mo 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
Percy12mo ago
Project ID: 9af46e4f-870a-420f-b8df-b449c34e49ba
awerks
awerks12mo ago
9af46e4f-870a-420f-b8df-b449c34e49ba
angelo
angelo12mo ago
This workload is not allowed on Railway.
root
root12mo 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
awerks12mo ago
wait why?
Brody
Brody12mo ago
angelo
angelo12mo ago
FFMpeg means you are downloading and hosting movies no?
Brody
Brody12mo ago
^ that too
awerks
awerks12mo ago
i'm not downloading any movies, it's used to overlay subtitles on a video
angelo
angelo12mo ago
Real? A captioner?
awerks
awerks12mo ago
yes twitter/youtube you're allowed to download those
angelo
angelo12mo ago
Unless you are willing to pay for that egress :/ Go on then
awerks
awerks12mo ago
where should I host it then?
awerks
awerks12mo ago
i'm not doing anything illegal
awerks
awerks12mo 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
Brody12mo ago
the library you are using allows you to bypass the 50mb file limit for bots though
awerks
awerks12mo ago
wdym? that's an official library
awerks
awerks12mo ago