-
As i understand, php not so async so i cant just take Promise from As an example this feature can help me to manage edit last message in bot to simulate UI with cb keyboard. Or remove from group some repeating info messages sended by bot. |
Beta Was this translation helpful? Give feedback.
Answered by
Lukasss93
Jun 19, 2023
Replies: 1 comment 2 replies
-
The $message = $bot->sendMessage('Hello!');
// option 1
$bot->deleteMessage($message->chat->id, $message->message_id);
// option 2
$message->delete(); |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Adevald
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
sendMessage
method returns a Message object. Just use this object to get what you want: