Answer the question
In order to leave comments, you need to log in
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)
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question