botman / driver-telegram

BotMan Telegram Driver
MIT License
87 stars 75 forks source link

Extended driver not loaded on `receivesLocation` method #30

Closed Lloople closed 6 years ago

Lloople commented 6 years ago

I have extended this driver by adding DriverManager::loadDriver(MyTelegramDriver::class); in AppServiceProvider because I want to send external button links on normal reply without creating a question.

All works great except if the Controller's method is called from $botman->receivesLocation method. I tried to dig into the code but can't find the problem.

Thank you.

Lloople commented 6 years ago

The issue here was not extending the driver TelegramLocationDriver. Every attachment type has it's own Driver.