Answer the question
In order to leave comments, you need to log in
How to make a message pinned in a telegram bot (aiogram, python)?
I will have all commands displayed on /help and I would like this to be a sticky message.
Please tell me how to do it?
Answer the question
In order to leave comments, you need to log in
To begin with, you definitely need to pay attention to the pinChatMessage method
https://core.telegram.org/bots/api#pinchatmessage
And then use it in your tasks.
Method for telebot:
bot.pin_chat_message(chat_id = message.chat.id, message_id = message.message_id, disable_notification=True)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question