Skip to content

Latest commit

 

History

History
74 lines (60 loc) · 1.54 KB

README.md

File metadata and controls

74 lines (60 loc) · 1.54 KB

Telegram Bot with Python

This repo is linked to a presentation on slides.com.

The goal of this lab is to introduce a programmer, without experience on python and telegram, on bot's developments. I will use this repo and presentation for an internal lab for the company I'm working for.

I'm not an expertise bot developer, so could the guru excuses me in case of mistakes.

This repo is diveded into some incremental levels, from 0 to 5. I prefer to create a initial requirements.txt instead add record based on the current level, so you have to do install all the dependencies only the first time.

pip install -r requirments.txt

Level 0

git checkout level0

Topics:

  • Introduce the Telepot package
  • Use the .env file
  • Retrieve the first messages

Level 1

git checkout level1

Topics:

  • Use the Telepot MessageLoop
  • Send your first message

Level 2

git checkout level2

Topics:

  • How to detect the received commands
  • Simple parameters parsing

Level 3

git checkout level3

Topics:

  • Send random photos using an external service
  • Introduce custom keyboards

Level 4

git checkout level4

Topics:

  • Send different message based on chat_id
  • Introduce the schedule package

Level 5

git checkout level5

Topics:

Build a working bot to retrieve every X minutes the value of a selected cryptocurrency

Level 6

git checkout level6

Topics:

Add an html game on your bot.