0
import telebot
bot = telebot.TeleBot('823871901:AAFrwDCr2ettFfqpmHQZhyQtMcX5d-_lGhE')
@bot.message_handler(commands=['start']) 
def handle_start(message): 
user_markup = telebot.types.ReplyKeyboardMarkup(True, False) 
user_markup.row('start') 
bot.send_message(message.from_user.id, 'Асуждаю', reply_markup=user_markup

bot.polling(none_stop=True)


Ошибка:
File "bot.py", line 9
bot.polling(none_stop=True)
  ^

SyntaxError: invalid syntax

1 ответ 1

1

Вы в строчке

bot.send_message(message.from_user.id, 'Асуждаю', reply_markup=user_markup

забыли закрывающую скобку в конце.

1
  • Спасибо за помощь
    – user351978
    9 окт 2019 в 13:34

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.