Answer the question
In order to leave comments, you need to log in
How to display username and bot name in Python?
Hello, can you tell me how to display the user name (first.name) and the bot name in the message? I am using the aiogram library.
I used teleBot before, so it will look like this:
bot.send_message(message.chat.id, "Привет, {0.first_name}! \n Я - {1.first_name}</b>,
parse_mode='html', reply_markup=markup)
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