https://github.com/tcoppex/telegram-attesta-bot
:fr: A Telegram bot to generate PDF certificates during the covid-19 french pandemic lockdown.
https://github.com/tcoppex/telegram-attesta-bot
attestation-deplacement covid-19 french-bot telegram-bot
Last synced: 2 months ago
JSON representation
:fr: A Telegram bot to generate PDF certificates during the covid-19 french pandemic lockdown.
- Host: GitHub
- URL: https://github.com/tcoppex/telegram-attesta-bot
- Owner: tcoppex
- License: gpl-3.0
- Created: 2020-10-31T13:56:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-01T09:48:34.000Z (over 4 years ago)
- Last Synced: 2025-01-17T00:50:51.574Z (4 months ago)
- Topics: attestation-deplacement, covid-19, french-bot, telegram-bot
- Language: Python
- Homepage:
- Size: 344 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AttestaBot :fr:
**AttestaBot** is a telegram bot to generate quick & retroactive PDF certificates during
the 2020 french pandemic lockdown.When it is online, you can find it [@attestabot](https://t.me/attestabot).
## Installation
Once you have you telegram bot username and token you can launch it via the command line :
```bash
# install the required packages.
python3 -m pip install -r requirements.txt# launch the bot.
python3 attestabot.py
```**Important** : You will need the `Helvetica.ttf` font installed on your system for it to work !
## Getting Started
This bot has 5 commands :
* **/help** display the list of commands.
* **/profile** register your information for quick generation.
* **/generate** create a certificate with custom motives and timestamp.
* **/presto** create a one-click retroactive certificate for quick use.
* **/cancel** stop any current commands.When you start the application you first need to generate a profile via the `/profile`
command, then use either `/generate` or `/presto` to generate your certificate.When the user ask for a non-immediate timestamp (*eg. by using the `/presto` command*) a slight stochastic noise
is added (*ie. a shift of 10 minute can be between 8 and 12*) for organic lifeness and fun :leaves:## Acknowledgement
This bot is based on the Certificate PDF generator from @tdopierre and @Apoptoz :
[AttestationNumeriqueCOVID-19](https://github.com/Apoptoz/AttestationNumeriqueCOVID-19)And heavily relied on the wonderful [python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot).
## License
*AttestaBot* is released under the **GNU General Public License v3.0**, mainly to assert the non-use of data processed by it :)