From 1169365710d06c51f4ba907684b7b4265ca94acc Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 1 Oct 2020 19:39:58 +0300 Subject: [PATCH] Fix documentation. GitOrigin-RevId: 9c5b310b278d35ae7e408b03f5c52d17247174d9 --- td/generate/TlDocumentationGenerator.php | 3 +++ td/generate/scheme/td_api.tl | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/td/generate/TlDocumentationGenerator.php b/td/generate/TlDocumentationGenerator.php index 61101e1c7..9346fae14 100644 --- a/td/generate/TlDocumentationGenerator.php +++ b/td/generate/TlDocumentationGenerator.php @@ -136,6 +136,9 @@ abstract class TlDocumentationGenerator $this->printError('Wrong description begin'); } + if (preg_match('/[^ ]@/', $description)) { + $this->printError("Wrong documentation '@' usage: $description"); + } $docs = explode('@', $description); array_shift($docs); $info = array(); diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 19a3ee477..2b4f8a2be 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -2189,7 +2189,7 @@ inlineQueryResults inline_query_id:int64 next_offset:string results:vector