Myrotvorets.news Telegram Bot
- Register a new bot with BotFather and obtain the authorization token.
- Create a new Telegram channel and add your bot as an administrator.
- Obtain the ID of the created channel. You can do that by writing a message and then forwarding it to
@getidsbot
. You will get the numeric ID in the response underOrigin chat
. - Create
.env
file in the root of the project:
NODE_ENV=development
BUGSNAG_API_KEY=
KNEX_DRIVER=sqlite3
KNEX_DATABASE=./data.sqlite
BOT_TOKEN="<bot authorization token goes here>"
CHAT_ID="<channel ID goes here>"
NEWS_ENDPOINT=https://myrotvorets.news
DEBUG="bot:*"
DEBUG_DEPTH="5"
OTEL_TRACES_EXPORTER=zipkin
OTEL_EXPORTER_ZIPKIN_ENDPOINT=http://zipkin:9411/api/v2/spans
- Run
docker compose up
.