M
M
Mikhail Lebedev2021-03-02 14:26:03
Bots
Mikhail Lebedev, 2021-03-02 14:26:03

Response on button click?

There is a bot shop on the wokomerc
, in it you need to add a button, when clicked, text information will be displayed (contact for example)

private function bftow_get_default_keyboard()
    {
        $keyboard = [
                        ['text' => 'Кнопка 1',],
                        ['text' => $this->shop_button,],
                    ];
        
        if ($this->fast_checkout === 'no') {
            $keyboard[] = [
                'text' => $this->cart_button,
            ];
        }
        return apply_filters('bftow_default_keyboard', $keyboard);
    }


so I added "Button 1" to the code - which is displayed in the bot
when clicked, it returns the text "Button 1"

what needs to be written there so that when clicked it displays "tel: 5454545" I got tired

of looking in the net - a lot of information, the jug has already cracked

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question