Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/myrotvorets/myrnews-tgbot

Myrotvorets.news Telegram Bot
https://github.com/myrotvorets/myrnews-tgbot

bot myrotvorets telegram-bot

Last synced: 22 days ago
JSON representation

Myrotvorets.news Telegram Bot

Awesome Lists containing this project

README

        

# myrnews-tgbot

Myrotvorets.news Telegram Bot

https://t.me/myrotvoretsnews

## Local Setup

1. [Register a new bot with BotFather](https://core.telegram.org/bots#3-how-do-i-create-a-bot) and obtain the authorization token.
2. Create a new Telegram channel and add your bot as an administrator.
3. 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 under `Origin chat`.
3. Create `.env` file in the root of the project:
```
NODE_ENV=development
BUGSNAG_API_KEY=
KNEX_DRIVER=sqlite3
KNEX_DATABASE=./data.sqlite
BOT_TOKEN=""
CHAT_ID=""
NEWS_ENDPOINT=https://myrotvorets.news
DEBUG="bot:*"
DEBUG_DEPTH="5"
OTEL_TRACES_EXPORTER=zipkin
OTEL_EXPORTER_ZIPKIN_ENDPOINT=http://zipkin:9411/api/v2/spans
```
4. Run `docker compose up`.