5c00652805
Updates the requirements on [python-dotenv](https://github.com/theskumar/python-dotenv) to permit the latest version. - [Release notes](https://github.com/theskumar/python-dotenv/releases) - [Changelog](https://github.com/theskumar/python-dotenv/blob/master/CHANGELOG.md) - [Commits](https://github.com/theskumar/python-dotenv/compare/v0.19.2...v0.20.0) --- updated-dependencies: - dependency-name: python-dotenv dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.. | ||
deploy | ||
news | ||
shares | ||
.env.example | ||
api_handler.py | ||
bot.py | ||
db_handler.py | ||
Dockerfile | ||
README.md | ||
requirements.txt |
Telegram bot
Aktienbot telegram bot
Development
- Create virtual environment
python -m venv venv env/Scripts/activate
- Install requirements
pip install -r telegram_bot/requirements.txt
- Set environment variables (see list below)
- Use
.env
-file inapi
directory like.env.example
- Or set variables using
export
orset
commands. (Windowsset
, Linuxexport
)
- Use
- 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>