import telebot
bot = telebot.TeleBot('')
@bot.message_handler(commands=['start'])
def start_handler(message):
bot.send_message(message.chat.id, f'Привет, {message.from_user.first_name} {message.from_user.last_name}')
@bot.message_handler(commands=['help'])
def help_handler(message):
bot.send_message(message.chat.id, 'Help information', parse_mode='html')
@bot.message_handler()
def info(message):
if message.text.lower() == 'привет' :
bot.send_message(message.chat.id, f'Привет, {message.from_user.first_name} {message.from_user.last_name}')
elif message.text.lower() == 'id' :
bot.reply_to(message, f'ID: {message.from_user.id}')
@bot.message_handler(content_types=['photo'])
def get_photo(message):
bot.reply_to(message, 'какое красивое фото')
bot.polling(none_stop=True)