Add a bot to your lectures

Da raspibo.
Versione del 20 set 2019 alle 20:25 di Renzo (discussione | contributi) (Creata pagina con ' This is the code of the Telegram bot I use in my lectures. It needs an argument: it is a text file containing the token of the bot. (it is the long exa number provided by th...')
(diff) ← Versione meno recente | Versione attuale (diff) | Versione più recente → (diff)
Jump to navigation Jump to search

This is the code of the Telegram bot I use in my lectures.

It needs an argument: it is a text file containing the token of the bot. (it is the long exa number provided by the BotFather when the new bot is registered)

The bot shows all the messages it receives.

It is possible to do simple ballots: /vote cast a vote e.g.

  /vote yes 

to count the votes simply send

 /count

here is the code: