TelegramAktienBot/telegram_bot
dependabot[bot] c9ff438942
Update requests requirement from ~=2.27.1 to ~=2.28.1 in /telegram_bot
Updates the requirements on [requests](https://github.com/psf/requests) to permit the latest version.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.27.1...v2.28.1)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-30 09:40:03 +00:00
..
api_handling Reformatting 2022-05-11 23:33:48 +02:00
deploy Update Dockerfile 2022-04-26 09:46:13 +02:00
news Reformatting 2022-05-11 23:33:48 +02:00
shares Reformatting 2022-05-12 09:09:05 +02:00
.env.example Added timezone environment variable 2022-04-29 22:36:06 +02:00
bot_updates.py Merge branch 'main' into bot 2022-05-13 12:32:58 +02:00
bot.py Quick fix NoneType 2022-05-13 11:59:11 +02:00
Dockerfile Update Dockerfile #2 2022-04-26 09:48:34 +02:00
helper_functions.py added more markdown symbols 2022-05-12 09:28:37 +02:00
README.md Update README.md 2022-05-12 19:13:00 +02:00
requirements.txt Update requests requirement from ~=2.27.1 to ~=2.28.1 in /telegram_bot 2022-06-30 09:40:03 +00:00

Telegram bot

Aktienbot telegram bot

Development

  1. Create virtual environment python -m venv venv
  2. Launch venv: .\venv\Scripts\activate
  3. Install requirements pip install -r telegram_bot/requirements.txt
  4. Set environment variables (see list below)
    1. Use .env-file in api directory like .env.example
    2. Or set variables using export or set commands. (Windows set, Linux export)
  5. Run file python telegram_bot/bot.py

Environment variables

    # Telegram bot api key
    BOT_API_KEY=
    
    # News api key
    NEWS_API_KEY=

Docker

docker run -d \
    --name aktienbot_bot \
    --hostname aktienbot_bot \
    --publish 80:80 \
    --env "BOT_API_KEY=" \
    --env "NEWS_API_KEY=" \
    --restart unless-stopped \
    registry.flokaiser.com/aktienbot/bot:latest

or load environment variables from file by using --env-file <filename>