getMessage() && $update->getMessage()->getText()) { $chatType = $update->getMessage()->getChat()->getType(); match (ChatTypeEnum::tryFrom($chatType)) { ChatTypeEnum::Private => $this->privateMessageProcessor->process($update), default => $this->log->info(\sprintf( 'Unsupported message type \'%s\' received.\n %s\n %s', $chatType, $update->getMessage()->getChat()->getId(), $update->getMessage()->getText(), )) }; } elseif ($update->getInlineQuery()) { $this->inlineQueryProcessor->process($update->getInlineQuery()); } } }