I’m new in python and telegram bot developing, I’m trying to add emoji to bottom menu of the telegram bot, but I don’t know how. Buttons in chat have already emoji, but bottom bot menu haven’t. Thank you.
Example of code:
menu1 = telebot.types.InlineKeyboardMarkup([
[InlineKeyboardButton(text='๐ ะะฝัะพัะผะฐััั', callback_data='info')],
[InlineKeyboardButton(text='๐ ะะฐะฑะพัะณะพะฒะฐะฝัััั', callback_data='arrears')],
[InlineKeyboardButton(text='๐ป ะะฐะฑัะฝะตั', callback_data='cabinet')],
[InlineKeyboardButton(text='๐ ะะตะฑ-ัะฐะนั', url='')]])
Example of menu, that I’ve done:
2
Answers
you can add emoji in the same place where you add text
You can write down
user_keyboard_markup()
function and use it to display with each message you send. You can generate different functions to display different content depending on what users choose. You need just addreply_markup=...
to your message.my_markups_folder/markups.py:
main.py:
and you will see something like this:
…