mirror of
https://github.com/ada-dmitry/PyProg_ada.git
synced 2026-09-25 18:00:42 +00:00
TeleBot_0.1
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user