Answer the question
In order to leave comments, you need to log in
How to get username of bot or user using aiogram?
Using something like this hasn't had any success
dp = Dispatcher(bot)
bot = Bot(token="#Токен бота")
async def show_info(message: types.Message):
name = bot.get(User.full_name)
await message.answer(text = f"{name}")
executor.start_polling(dp)
Answer the question
In order to leave comments, you need to log in
async def json(message: types.Message):
print(message.as_json())
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question