This bot will display a button to the user get enrolled in a raffle. This sample raffle offer 3 prizes for the 1st, 2nd and 3rd place. The winners will be choosed using a True Random Number Generator in the ANU QRNG (Quantum Numbers Generator); To understand more about the concept, please access this website >> ANU QRNG.
Required: npm init [nodeJs].
Dependencies:
-
telegraf | Telegram Bot framework |
-
Install version 3.38:
npm i --save telegraf@3.38 -E
. -
node-fetch | A light-weight module that brings window.fetch to Node.js
Create a .env file with your API Token, use the env-sample file as an example.