A
A
AruxGame2020-08-14 14:37:00
Python
AruxGame, 2020-08-14 14:37:00

Telegrambot error. What's wrong?

I can't figure out what's wrong.
The code:

# -*- coding: utf8 -*-
import telebot
import config
from telebot import types
 
bot = telebot.TeleBot(config.TOKEN)
 

@bot.message_handler(commands=['start'])
def start(message):
     if message.chat.type == 'private':
   markup = types.InlineKeyboardMarkup(row_width=2)
         ru = types.InlineKeyboardButton("Русский ", callback_data='rur')
   en = types.InlineKeyboardButton("English ", callback_data='ene') 
         markup.add(ru, en)
   
         bot.send_message(message.chat.id, 'Отлично, сам как?', reply_markup=markup)


bot.polling(none_stop=True)


Here is from the console:
ru = types.InlineKeyboardButton("Русский \U0001f1f7\U0001f1fa", callback_data='rur')
                                                                      ^
IndentationError: unindent does not match any outer indentation level

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2020-08-14
@SoreMix

Please translate the error. Arrange indents

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question