Skip to content

How to handle received Contact from request Contact ReplyButton ? #181

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

You must be logged in to vote

Hi!

you can handle inside your CustomWebhookHandler by using the handleChatMessage method:

class CustomWebhookHandler extends WebhookHandler
{
    //....

    protected function handleChatMessage(Stringable $text): void
    {
        $phone = $this->message->contact()->phoneNumber();
        //...
    }
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@evrard-c
Comment options

Answer selected by evrard-c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants