2017-08-22 03:31:39 +02:00
|
|
|
<div class="content-inner">
|
|
|
|
<h1 class="title title-constructor">{{ constructor.predicate }}#{{ constructor.id | toHex }}</h1>
|
|
|
|
|
2017-08-22 07:02:44 +02:00
|
|
|
<a class="ic-docs" href="https://github.com/tjhorner/schema.tl/edit/master/docs/constructors/{{ constructor.predicate }}.md">Help document this method</a>
|
|
|
|
|
|
|
|
<div btf-markdown ng-include="'/docs/constructors/' + constructor.predicate + '.md'"></div>
|
|
|
|
|
2017-08-22 03:31:39 +02:00
|
|
|
<h2>Fields</h2>
|
|
|
|
|
|
|
|
<table ng-show="constructor.params.length">
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Name
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Type
|
|
|
|
</th>
|
2017-08-22 04:37:59 +02:00
|
|
|
<th>
|
|
|
|
Value
|
|
|
|
</th>
|
2017-08-22 03:31:39 +02:00
|
|
|
</tr>
|
|
|
|
<tr ng-repeat="param in constructor.params">
|
|
|
|
<td>
|
|
|
|
{{ param.name }}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="#!/type/{{ param.type | actualType }}">{{ param.type }}</a>
|
|
|
|
</td>
|
2017-08-22 04:37:59 +02:00
|
|
|
<td>
|
|
|
|
<input type="{{ param.type | htmlType }}" ng-model="playgroundVals[param.name]" ng-change="updatePlayground()" id="param-{{ param.name }}">
|
|
|
|
</td>
|
2017-08-22 03:31:39 +02:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div ng-hide="constructor.params.length">
|
|
|
|
This constructor has no fields.
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h3>Constructs <a href="#!/type/{{ constructor.type | actualType }}">{{ constructor.type }}</a></h3>
|
2017-08-22 04:37:59 +02:00
|
|
|
|
|
|
|
<h2>Example (beta)</h2>
|
|
|
|
|
|
|
|
<p ng-show="constructor.params.length">
|
|
|
|
Type values in the table above to update the example below.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
You can use this example in the API Playground at <a target="_blank" href="https://tjhorner.com/webogram">Telegram for Devs</a>.
|
|
|
|
<strong>Please note</strong> that only primitive types (such as int and string) are supported. You will need to go to
|
|
|
|
other constructors' pages to build them.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<pre>{{ playgroundOutput }}</pre>
|
2017-08-22 03:31:39 +02:00
|
|
|
</div>
|