botman / botman

A framework agnostic PHP library to build chat bots
https://botman.io
MIT License
6.04k stars 810 forks source link

how to set up button's url #868

Closed jercc closed 5 years ago

jercc commented 6 years ago

Description: I have set up the button already, but I. can't set up the website link under the button

Steps To Reproduce:

christophrumpel commented 5 years ago

Hey @jercc , what buttons are you talking about? For Telegram or Facebook or any other messaging service?

TheodoreRiant commented 4 years ago

Hello I am also looking for a solution (Telegram)

feralheart commented 4 years ago

Hi @TheodoreRiant What solution are you searching? Please open a new issue with your detailed question and we will try to answer it.

romansidorov commented 2 years ago

For googlers.

You can use additionalParameters() method on BotMan\BotMan\Messages\Outgoing\Actions\Button class instance to reach the desired effect. For example:

use BotMan\BotMan\Messages\Outgoing\Actions\Button;

Button::create('Text on the button')
     ->additionalParameters([
           'url' => 'https://google.com',
     ]);
aleresoftware commented 1 year ago

For googlers.

You can use additionalParameters() method on BotMan\BotMan\Messages\Outgoing\Actions\Button class instance to reach the desired effect. For example:

use BotMan\BotMan\Messages\Outgoing\Actions\Button;

Button::create('Text on the button')
     ->additionalParameters([
           'url' => 'https://google.com',
     ]);

Does it work for custom chat widget?

bhumitg commented 1 year ago

For googlers.

You can use additionalParameters() method on BotMan\BotMan\Messages\Outgoing\Actions\Button class instance to reach the desired effect. For example:

use BotMan\BotMan\Messages\Outgoing\Actions\Button;

Button::create('Text on the button')
     ->additionalParameters([
           'url' => 'https://google.com',
     ]);

It does not work in Web Widget. What is the solution for Web Widget?

filippotoso commented 1 year ago

Check the Web Widget sources and verify if button urls are implemented.