TeleBot_0.1

This commit is contained in:
ada-dmitry
2023-04-06 10:34:20 +03:00
parent 3497a6f849
commit 0519d86f50
3 changed files with 89 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import telebot
bot = telebot.TeleBot('6285042955:AAEPprYo9K7Ta0RkDcoqO2Z4Ejdw8to1NX0')
@bot.message_handler(commands=["start"])
def start(m, res = False):
bot.send_message(m.chat.id, 'Бот запущен')
@bot.message_handler(content_types=["text"])
def handle_text(message):
bot.send_message(message.chat.id, 'Ввод: '+message.text)
bot.polling(none_stop=True, interval=0)