Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Execute deleteMessage , passing the chat ID and ID of this message to it.
@bot.message_handler(content_types=['left_chat_member'])
def remove_leave_message(message):
bot.delete_message(message.chat.id, message.id)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question