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