The idea was in saving documents to computer through telegram.
Of course, I could just use USB cable or send to someone and download through Telegram Desktop. But it's fun to make own bot, isn't it?
- Does not need commands
- Works with list of authorized users, so can be uses by whole family
- Accepts jpg, pdf, doc formats
- Saves documents in separate folders by name of owner
- Names documents in format: Name_of_owner. Name_of_document
- Check if document already exist and ask to replace or rename
- Gives back document if to ask for it
- Saves log of messages sent, may be usefull to keep thoughts
-
Get your Telegram bot token from @BotFather
-
Clone project
git clone https://github.com/oiva-terho/oiva-bot.git oiva-bot cd oiva-bot
-
Install environment
python -m venv .venv source .venv/bin/activate pip install -r requirements.txt
-
Edit
config.example.yml
to set your tokens and authorized users, then run next command to rename:mv config.example.yml config.yml
-
Start the bot
python bot.py