Answer the question
In order to leave comments, you need to log in
How to delete last bot message in Telegram Bot API?
I send messages using the method
public void sendMsg(long id, String text) {
SendMessage msg = new SendMessage();
msg.setChatId(id + "");
msg.setText(text);
try {
execute(msg);
} catch (TelegramApiException e) {
e.printStackTrace();
}
}
Answer the question
In order to leave comments, you need to log in
I don't really understand Java, but after sending a message, the msg variable will have a message_id
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question