Skip to content

🇫🇷 A Telegram bot to generate PDF certificates during the covid-19 french pandemic lockdown.

License

Notifications You must be signed in to change notification settings

tcoppex/telegram-attesta-bot

Repository files navigation

AttestaBot 🇫🇷

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.

drawing

Installation

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 !

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 🍃

Acknowledgement

This bot is based on the Certificate PDF generator from @tdopierre and @Apoptoz : AttestationNumeriqueCOVID-19

And heavily relied on the wonderful 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 :)

About

🇫🇷 A Telegram bot to generate PDF certificates during the covid-19 french pandemic lockdown.

Topics

Resources

License

Stars

Watchers

Forks

Languages