mirror of
https://github.com/ada-dmitry/PyProg_ada.git
synced 2026-09-24 09:20:44 +00:00
14 lines
396 B
Python
14 lines
396 B
Python
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) |