dependabot[bot] 41647321d7
Bump tzlocal from 2.1 to 4.2 in /telegram_bot
Bumps [tzlocal](https://github.com/regebro/tzlocal) from 2.1 to 4.2.
- [Release notes](https://github.com/regebro/tzlocal/releases)
- [Changelog](https://github.com/regebro/tzlocal/blob/master/CHANGES.txt)
- [Commits](https://github.com/regebro/tzlocal/compare/2.1...4.2)

---
updated-dependencies:
- dependency-name: tzlocal
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-08 08:44:59 +00:00
..
2022-04-26 12:47:44 +02:00
2022-04-26 09:46:13 +02:00
2022-04-26 12:46:20 +02:00
2022-05-08 10:32:21 +02:00
2022-04-26 09:48:34 +02:00
2022-05-02 17:34:44 +02: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 api 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>