Closed xarasbir closed 2 years ago
Hi @xarasbir, I agree with you.
I solved editing the function jsonSerialize() with:
public function jsonSerialize() { return Collection::make([ 'url' => $this->url, 'callback_data' => $this->callbackData, 'request_contact' => $this->requestContact, 'request_location' => $this->requestLocation, 'text' => $this->text, ])->filter(function ($value, $key) { return $value !== false && $value !== null; })->toArray(); }
Solved in 2.0.2
When the following keyboard is added to a message
it will be translated into
which causes Telegram to not relay the message to the intended recipient because of empty keyboard parameter.
As I dig through the code, the cause might be the following
filter()
inside KeyboardButton@jsonSerialize