Closed SarkorbekA closed 7 months ago
$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?
you can retrieve the message ID from the ->send() result
try to dump($sendingMessage)
I wanted to do something like this, delete message button, but how to get the message's ID?