Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,18 @@ Reference

* The :doc:`specifications/index` section for packaging interoperability specifications.
* The list of :doc:`other projects <key_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()