botman / botman/driver-telegram

Not working callback_data in menu

Open
#104 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
94
Forks
74
PR merge metrics
No merged PRs in 30d

Description

- BotMan Version: 2.0.0
- PHP Version: 8.0.17
- Messaging Service(s): Telegram
- Cache Driver: Laravel

### Description:
Not working callback_data
bot sends text

### Steps To Reproduce:
```php
$bot->reply(
"👉🏼 Menu👇🏽",
[
'reply_markup' => json_encode([
'keyboard' => [
[
[
'text' => 'Фотогалерея 🖼',
'callback_data' => '/photos',
],
[
'text' => 'Планировки 📐',
'callback_data' => 'plans',
],
],
[
[
'text' => 'Характеристики ЖК 🏣',
'callback_data' => 'characteristics',
],
[
'text' => 'Расположение ⛳️',
'callback_data' => 'place',
],
],
[
[
'text' => "Скачать прайс ₽",
'callback_data' => 'price',
],
[
'text' => 'Записаться на показ 📞',
'callback_data' => 'write-on-show',
],
],
[
[
'text' => 'Получить консультацию 📞',
'callback_data' => 'consultation',
],
[
'text' => 'Акции %',
'callback_data' => 'sales',
],
],
],
]),
]
)```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.