Ошибка в коде python pyTelegramBotAPI
Всем привет. Почему у меня появляется ошибка? Вот код
import telebot
from telebot import types
bot = telebot.TeleBot('TOKEN')
@bot.message_handler(commands=['start'])
def start(message):
bot.send_message(message.chat.id, 'Привет!✋\n🔥Мы продаём голду, аккаунты и промокоды по самым сладким ценам!🔥\nВсегда мечтал стать крутым в стандоффе? Тогда тебе к нам!')
markup = types.ReplyKeyboardMarkup(resize_keyboard=True, row_width=2)
accounts = types.KeyboardButton('КУПИТЬ АККАУНТ👤')
promo = types.KeyboardButton('КУПИТЬ ПРОМОКОД🎟')
gold = types.KeyboardButton('КУПИТЬ ГОЛДУ🥇')
markup.add(accounts, promo, gold)
bot.send_message(message.chat.id, 'Выберите, что хотите купить', reply_markup=markup)
@bot.message_handler()
def get_user_text(message):
if message.text == 'КУПИТЬ АККАУНТ👤':
markup = types.ReplyKeyboardMarkup(resize_keyboard=True, row_width=1)
buy_account = types.KeyboardButton('АККАУНТ С НОЖОМ И ПЕРЧАТКАМИ - 230₽')
buy_account_1 = types.KeyboardButton('АККАУНТ С ТЫЧКАМИ - 175₽')
back_to_menu = types.KeyboardButton('НАЗАД В МЕНЮ🔝')
markup.add(buy_account, buy_account_1, back_to_menu)
bot.send_message(message.chat.id, 'Выберите аккаунт, который хотите купить', reply_markup=markup)
elif message.text == 'Назад':
bot.send_message(m.c.i, "Вы вернулись назад", reply_markup=markup)
bot.polling(none_stop=True)
Ошибка: File "C:\Users\1\PycharmProjects\pythonProject\main.py", line 26 bot.send_message(m.c.i, "Вы вернулись назад", reply_markup=markup) ^ IndentationError: expected an indented block after 'elif' statement on line 25
Источник: Stack Overflow на русском