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.
Once you have you telegram bot username and token you can launch it via the command line :
# 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 !
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 π
This bot is based on the Certificate PDF generator from @tdopierre and @Apoptoz : AttestationNumeriqueCOVID-19
And heavily relied on the wonderful python-telegram-bot.
AttestaBot is released under the GNU General Public License v3.0, mainly to assert the non-use of data processed by it :)