Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/myrotvorets/myrnews-tgbot
- Owner: myrotvorets
- Created: 2020-08-02T22:38:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-12-16T17:29:01.000Z (26 days ago)
- Last Synced: 2024-12-16T20:36:08.302Z (25 days ago)
- Topics: bot, myrotvorets, telegram-bot
- Language: TypeScript
- Homepage: https://myrotvorets.news/
- Size: 4.98 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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`.