Fix documentation.

GitOrigin-RevId: 9c5b310b278d35ae7e408b03f5c52d17247174d9
This commit is contained in:
levlam 2020-10-01 19:39:58 +03:00
parent ad2f6d8168
commit 1169365710
2 changed files with 4 additions and 1 deletions

View File

@ -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();

View File

@ -2189,7 +2189,7 @@ inlineQueryResults inline_query_id:int64 next_offset:string results:vector<Inlin
//@description The payload for a general callback button @data Data that was attached to the callback button
callbackQueryPayloadData data:bytes = CallbackQueryPayload;
//@description The payload for a callback button requiring password @password The password for the current user@data Data that was attached to the callback button
//@description The payload for a callback button requiring password @password The password for the current user @data Data that was attached to the callback button
callbackQueryPayloadDataWithPassword password:string data:bytes = CallbackQueryPayload;
//@description The payload for a game callback button @game_short_name A short name of the game that was attached to the callback button