Python
0
Вклад в тег
import telebot
TOKEN = "ВАШ_ТОКЕН"
bot = telebot.TeleBot(TOKEN)
@bot.message_handler(commands = ['start'])
def start_comm(message):
bot.send_message(message.chat.id, "Выбери команду (/start, /say_hi)")
@bot.message_handler(commands = ['say_hi'])
def say_hi_comm(message):
bot.send_message(message.chat.id, f"Привет, {message.from_user.first_name}!")
bot.polling(none_stop = True)