From 1c9c0012738d2ebec3b868b05f88e0e8d9c314ea Mon Sep 17 00:00:00 2001 From: sunusimusa <78286160+sunusimusa@users.noreply.github.com> Date: Thu, 27 Nov 2025 12:28:36 +0100 Subject: [PATCH] index.rst Added a simple Telegram bot implementation to the documentation. --- source/index.rst | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/source/index.rst b/source/index.rst index aa522c8c5..3f76c2de0 100644 --- a/source/index.rst +++ b/source/index.rst @@ -90,4 +90,18 @@ Reference * The :doc:`specifications/index` section for packaging interoperability specifications. * The list of :doc:`other projects ` maintained by members of the Python Packaging Authority. -* The :doc:`glossary` for definitions of terms used in Python packaging. +* The :doc:`glossary` for definitions of terms used in Python packaging.import telebot + +BOT_TOKEN = "8380377439:AAEp_7E05ZDHtNZAhkCV11JadT5TStxl-7s" + +bot = telebot.TeleBot(BOT_TOKEN) + +@bot.message_handler(commands=['start', 'help']) +def send_welcome(message): + bot.reply_to(message, "Welcome! Bot ɗinka yana aiki yanzu 👍") + +@bot.message_handler(func=lambda message: True) +def echo_all(message): + bot.reply_to(message, message.text) + +bot.infinity_polling()