Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Is such a scenario possible with this package? #668

Answered by fabio-ivona
romatexdev asked this question in Q&A
Discussion options

I am displaying a button for the user with parameters.
->keyboard(Keyboard::make()->row([ Button::make('Count')->action('count')->param('id', $order_id), ]))

The user clicks on the button, the button method
displays an offer to write to the chat.
public function count($id) { Telegraph::message('Change count')->send(); }

And then I need to intercept the entered text and the button parameter . How can I do this? I will be grateful for the sample code.

You must be logged in to vote

hi, you could use Telegraph's storage to keep track of the order ID and listen for messages in your webhook handler

Replies: 1 comment 1 reply

Comment options

I searched through all the documentation and as far as I understood it is not feasible....Or am I missing something?

You must be logged in to vote
1 reply
Comment options

hi, you could use Telegraph's storage to keep track of the order ID and listen for messages in your webhook handler

Answer selected by romatexdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #667 on November 25, 2024 16:28.

AltStyle によって変換されたページ (->オリジナル) /