diff --git a/src/Telegram.php b/src/Telegram.php index 075b6fc6..e9b59751 100644 --- a/src/Telegram.php +++ b/src/Telegram.php @@ -581,7 +581,12 @@ public function handle(): bool */ protected function getCommandFromType(string $type): string { - return $this->ucFirstUnicode(str_replace('_', '', $type)); + switch ($type) { + case 'web_app_data': + return $type; + default: + return $this->ucFirstUnicode(str_replace('_', '', $type)); + } } /**