Docufix
This commit is contained in:
parent
8600a2fcba
commit
5d49867e01
@ -11,7 +11,7 @@ description: msg_container attributes, type and example
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|messages|Array of [MTmessage](../types/MTmessage.md) | Yes|
|
||||
|messages|Array of [MTmessage](../constructors/MTmessage.md) | Yes|
|
||||
|
||||
|
||||
|
||||
|
@ -935,13 +935,13 @@ description: List of constructors
|
||||
<br><br>[$replyMarkupForceReply](../constructors/replyMarkupForceReply.md) = \['personal' => [Bool](../types/Bool.md), \];<a name="replyMarkupForceReply"></a>
|
||||
|
||||
***
|
||||
<br><br>[$replyMarkupInlineKeyboard](../constructors/replyMarkupInlineKeyboard.md) = \['rows' => \[[inlineKeyboardButton>](../constructors/inlineKeyboardButton>.md)\], \];<a name="replyMarkupInlineKeyboard"></a>
|
||||
<br><br>[$replyMarkupInlineKeyboard](../constructors/replyMarkupInlineKeyboard.md) = \['rows' => \[[inlineKeyboardButton](../constructors/inlineKeyboardButton.md)\], \];<a name="replyMarkupInlineKeyboard"></a>
|
||||
|
||||
***
|
||||
<br><br>[$replyMarkupRemoveKeyboard](../constructors/replyMarkupRemoveKeyboard.md) = \['personal' => [Bool](../types/Bool.md), \];<a name="replyMarkupRemoveKeyboard"></a>
|
||||
|
||||
***
|
||||
<br><br>[$replyMarkupShowKeyboard](../constructors/replyMarkupShowKeyboard.md) = \['rows' => \[[keyboardButton>](../constructors/keyboardButton>.md)\], 'resize_keyboard' => [Bool](../types/Bool.md), 'one_time' => [Bool](../types/Bool.md), 'personal' => [Bool](../types/Bool.md), \];<a name="replyMarkupShowKeyboard"></a>
|
||||
<br><br>[$replyMarkupShowKeyboard](../constructors/replyMarkupShowKeyboard.md) = \['rows' => \[[keyboardButton](../constructors/keyboardButton.md)\], 'resize_keyboard' => [Bool](../types/Bool.md), 'one_time' => [Bool](../types/Bool.md), 'personal' => [Bool](../types/Bool.md), \];<a name="replyMarkupShowKeyboard"></a>
|
||||
|
||||
***
|
||||
<br><br>[$richTextBold](../constructors/richTextBold.md) = \['text' => [RichText](../types/RichText.md), \];<a name="richTextBold"></a>
|
||||
|
@ -13,7 +13,7 @@ Contains inline keyboard layout
|
||||
|
||||
| Name | Type | Required | Description |
|
||||
|----------|---------------|----------|-------------|
|
||||
|rows|Array of [inlineKeyboardButton>](../constructors/inlineKeyboardButton>.md) | Yes|List of rows of inline keyboard buttons|
|
||||
|rows|Array of [inlineKeyboardButton](../constructors/inlineKeyboardButton.md) | Yes|List of rows of inline keyboard buttons|
|
||||
|
||||
|
||||
|
||||
|
@ -13,7 +13,7 @@ Contains custom keyboard layout for fast reply to bot
|
||||
|
||||
| Name | Type | Required | Description |
|
||||
|----------|---------------|----------|-------------|
|
||||
|rows|Array of [keyboardButton>](../constructors/keyboardButton>.md) | Yes|List of rows of bot keyboard buttons|
|
||||
|rows|Array of [keyboardButton](../constructors/keyboardButton.md) | Yes|List of rows of bot keyboard buttons|
|
||||
|resize\_keyboard|[Bool](../types/Bool.md) | Yes|Do clients need to resize keyboard vertically|
|
||||
|one\_time|[Bool](../types/Bool.md) | Yes|Do clients need to hide keyboard after use|
|
||||
|personal|[Bool](../types/Bool.md) | Yes|Keyboard is showed automatically only for mentioned users or replied to user, for incoming messages it is true if and only if keyboard needs to be automatically showed to current user|
|
||||
|
@ -67,7 +67,7 @@ trait Constructors
|
||||
$param[$type_or_subtype] = $this->constructors->find_by_type(str_replace('%', '', $param[$type_or_subtype]))['predicate'];
|
||||
}
|
||||
if (substr($param[$type_or_subtype], -1) === '>') {
|
||||
$param[$type_or_subtype] = '\['.substr($param[$type_or_subtype], 0, -1).'\]';
|
||||
$param[$type_or_subtype] = substr($param[$type_or_subtype], 0, -1);
|
||||
}
|
||||
$params .= "'".$param['name']."' => ";
|
||||
$param[$type_or_subtype] = '['.$this->escape($param[$type_or_subtype]).'](../'.$type_or_bare_type.'/'.$param[$type_or_subtype].'.md)';
|
||||
@ -112,10 +112,10 @@ trait Constructors
|
||||
if (preg_match('/%/', $ptype)) {
|
||||
$ptype = $this->constructors->find_by_type(str_replace('%', '', $ptype))['predicate'];
|
||||
}
|
||||
$type_or_bare_type = (ctype_upper($this->end(explode('_', $ptype))[0]) || in_array($ptype, ['!X', 'X', 'bytes', 'true', 'false', 'double', 'string', 'Bool', 'int53', 'int', 'long', 'int128', 'int256', 'int512'])) ? 'types' : 'constructors';
|
||||
$type_or_bare_type = ((ctype_upper($this->end(explode('_', $ptype))[0]) || in_array($ptype, ['!X', 'X', 'bytes', 'true', 'false', 'double', 'string', 'Bool', 'int53', 'int', 'long', 'int128', 'int256', 'int512'])) && $ptype !== 'MTmessage') ? 'types' : 'constructors';
|
||||
|
||||
if (substr($ptype, -1) === '>') {
|
||||
$ptype = 'Array of '.substr($ptype, 0, -1);
|
||||
$ptype = substr($ptype, 0, -1);
|
||||
}
|
||||
|
||||
switch ($ptype) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user