'Can i delete message with Telegram Bot API without id message ? Just writing her content?

I have a code that at each condition the bot sends a message, and so to not get full of messages, I would like it to always delete the previous message leaving only the main one, so the deleteMessage method needs to know the message id , but I don't know a way to find out without manually sending the URL containing the sendMessage and the message, which in this case is not the method I use, I use send_message(chat_id, "text")



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source