Skip to content

jartigag/a_quick_telegram_bot

Repository files navigation

A quick Telegram bot

With a not-so-quick session explaining it completely (https://youtu.be/XdVdiD6AgiA):

Dont' worry, it's annotated on the video description:

Sections

1:22 Chosen Library (import telebot https://github.com/eternnoir/pyTelegramBotAPI)
3:50 .ini Configuration File
7:20 ndjson
9:00 Pipfile
12:07 Pipenv
17:40 Main guard (no "guard clause", that was my mistake)
19:20 Book "Programming in Python" by ElenQ Publishing (Ekaitz Zarraga, https://publishing.elenq.tech/en/#pro...)
23:26 Emojis in Python 3.9
26:14 Systemctl with Timers

27:44 Creating a bot on Telegram
32:18 Polling for a button on Telegram (threads)
34:42 Markdown on Telegram

36:01 Basic IP Geolocation
37:26 The Dining Philosophers Problem
39:18 The Byzantine Generals Problem
40:11 The Prisoner's Dilemma

43:30 Dependency Inversion Principle
49:23 Another example bot: https://github.com/TLMn00bs/AoC-Bot
53:22 Bonus track: dealing with the https://ipgeolocation.io/ API without using API Keys

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks