Answer the question
In order to leave comments, you need to log in
Aiogram BadRequest?
Good day. I wanted to create a test bot on Aiogram, and when I added Inline buttons, it gives me
from aiogram import Bot, types
from aiogram.dispatcher import Dispatcher
from aiogram.utils import executor
import keyboards as kb
from config import token
bot = Bot(token)
dp = Dispatcher(bot)
@dp.message_handler(commands=['start'])
async def hello(message: types.Message):
await message.answer("Выберите язык / Choose a language", reply_markup=kb.chooseLangAdd)
if __name__ == '__main__':
executor.start_polling(dp)
token = "Мой токен"
from aiogram.types import ReplyKeyboardRemove, \
ReplyKeyboardMarkup, KeyboardButton, \
InlineKeyboardMarkup, InlineKeyboardButton
chooseLangButtonEN = InlineKeyboardButton('')
chooseLangButtonRU = InlineKeyboardButton('')
featuresButtonRU = InlineKeyboardButton('Возможности', callback_data='help')
featuresButtonEN = InlineKeyboardButton('Features', callback_data='help')
addToChatEN = InlineKeyboardButton('Add to chat')
addToChatRU = InlineKeyboardButton('Добавить в чат')
chooseLangAdd = InlineKeyboardMarkup().row(chooseLangButtonEN).row(chooseLangButtonRU)
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