delete message with keyboard #581
Answered
by
SarkorbekA
SarkorbekA
asked this question in
Q&A
-
$sendingMessage = Telegraph::message('hello')
->keyboard(
Keyboard::make()->buttons([
Button::make("✅")->action('delete')->param('id', $sendingMessage->result->message_id),
])->chunk(1)
)->send(); I wanted to do something like this, delete message button, but how to get the message's ID? |
Beta Was this translation helpful? Give feedback.
Answered by
SarkorbekA
Apr 22, 2024
Replies: 1 comment 2 replies
-
you can retrieve the message ID from the ->send() result try to dump($sendingMessage) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi. thanks for response!
But there isn't message's id, how can i get it? can you give me example or something else?