laravel-notification-channels / telegram

✈️ Telegram Notifications Channel for Laravel
https://laravel-notification-channels.com/telegram/
MIT License
989 stars 165 forks source link

`web_app` inline button is not supported #202

Closed nikolay-shapoval closed 1 month ago

nikolay-shapoval commented 2 months ago

How can I send web_app inline button? It seems to be not supported?

nikolay-shapoval commented 2 months ago

I did it so:

TelegramMessage::create()
            ->to($chatId)
            ->content('text')
            ->keyboardMarkup([
                    'inline_keyboard' => [
                        [
                            [
                                'text' => 'button text',
                                'web_app' => [
                                    'url' => 'web app url'
                                ],
                            ],
                        ],
                    ]
                ]
            )
            ->send()
irazasyed commented 1 month ago

Added new buttonWithWebApp method.