mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-12-28 07:20:31 +01:00
Update content of files
This commit is contained in:
parent
e5d6e5a923
commit
f1f73549eb
2 changed files with 65 additions and 6 deletions
|
@ -219,7 +219,7 @@
|
|||
</table>
|
||||
<h4><a class="anchor" href="#gradient-fill-wallpapers-" id="gradient-fill-wallpapers-" name="gradient-fill-wallpapers-"><i class="anchor-icon"></i></a><a href="/api/wallpapers#fill-wallpapers">Gradient fill wallpapers »</a></h4>
|
||||
<p>t.me syntax:</p>
|
||||
<pre><code>t.me/bg/<top_color>-<bottom_color>&rotation=<rotation></code></pre>
|
||||
<pre><code>t.me/bg/<top_color>-<bottom_color>?rotation=<rotation></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<pre><code>tg://bg?gradient=<top_color>-<bottom_color>&rotation=<rotation></code></pre>
|
||||
<p>Parameters:</p>
|
||||
|
@ -280,9 +280,68 @@
|
|||
<td>Third gradient color in hex RGB format.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>hex_color3</code></td>
|
||||
<td><code>hex_color4</code></td>
|
||||
<td style="text-align: center;">Optional</td>
|
||||
<td>Third gradient color in hex RGB format.</td>
|
||||
<td>Fourth gradient color in hex RGB format.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" href="#image-wallpapers" id="image-wallpapers" name="image-wallpapers"><i class="anchor-icon"></i></a><a href="/api/wallpapers#image-wallpapers">Image wallpapers</a></h4>
|
||||
<p>t.me syntax:</p>
|
||||
<pre><code>t.me/bg/<slug>?mode=<mode></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<pre><code>tg://bg?slug=<slug>&mode=<mode></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Optional</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><code>slug</code></td>
|
||||
<td style="text-align: center;">Required</td>
|
||||
<td>Wallpaper slug used to obtain the image file using <a href="/method/account.getWallPaper">account.getWallPaper</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>mode</code></td>
|
||||
<td style="text-align: center;">Optional</td>
|
||||
<td><code>blur</code>, <code>motion</code> or <code>blur+motion</code> to enable blurring or parallax motion as specified in the <a href="/api/wallpapers#image-wallpapers">docs</a>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4><a class="anchor" href="#pattern-wallpapers" id="pattern-wallpapers" name="pattern-wallpapers"><i class="anchor-icon"></i></a><a href="/api/wallpapers#pattern-wallpapers">Pattern wallpapers</a></h4>
|
||||
<p>t.me syntax:</p>
|
||||
<pre><code>t.me/bg/<slug>?intensity=<intensity>&bg_color=<params>&mode=<mode></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<pre><code>tg://bg?slug=<slug>&mode=<mode></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Optional</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><code>slug</code></td>
|
||||
<td style="text-align: center;">Required</td>
|
||||
<td>Wallpaper slug used to obtain the pattern file using <a href="/method/account.getWallPaper">account.getWallPaper</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>intensity</code></td>
|
||||
<td style="text-align: center;">Required</td>
|
||||
<td>A value ranging from -100 to 100, used to combine the pattern with the fill <a href="/api/wallpapers#pattern-wallpapers">as specified in the docs</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>mode</code></td>
|
||||
<td style="text-align: center;">Optional</td>
|
||||
<td><code>motion</code> to enable parallax motion as specified in the <a href="/api/wallpapers#image-wallpapers">docs</a>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
|
|
|
@ -74,9 +74,9 @@ Wallpapers must be rendered according to the instructions…">
|
|||
<h3><a class="anchor" href="#wallpaper-types" id="wallpaper-types" name="wallpaper-types"><i class="anchor-icon"></i></a>Wallpaper types</h3>
|
||||
<p>There are three main wallpaper types:</p>
|
||||
<ul>
|
||||
<li><a href="#fill-wallpapers">Fill wallpapers</a></li>
|
||||
<li><a href="#pattern-wallpapers">Pattern wallpapers</a></li>
|
||||
<li><a href="#image-wallpapers">Image wallpapers</a></li>
|
||||
<li><a href="#pattern-wallpapers">Pattern wallpapers</a></li>
|
||||
<li><a href="#fill-wallpapers">Fill wallpapers</a></li>
|
||||
</ul>
|
||||
<p>Fill and pattern wallpapers are generated using one of three <a href="#fill-types">fill types</a>.</p>
|
||||
<h4><a class="anchor" href="#image-wallpapers" id="image-wallpapers" name="image-wallpapers"><i class="anchor-icon"></i></a>Image wallpapers</h4>
|
||||
|
@ -103,7 +103,7 @@ The <code>settings</code> field describes the transforms that should be applied
|
|||
<li>Values from -1 to -100 mean that the pattern should be inverted (black background, transparent pattern) before overlaying on top of the <a href="#fill-types">color fill</a> with the specified intensity (@ -100 the filled pattern is fully visible on a black background, @ -1 only black is visible). </li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><code>settings.motion</code>: The background needs to be slightly moved when device is tilted, allowing for a parallax effect.</li>
|
||||
<li><code>settings.motion</code>: The pattern needs to be slightly moved on top of the background when device is tilted, allowing for a parallax effect.</li>
|
||||
</ul>
|
||||
<h4><a class="anchor" href="#fill-wallpapers" id="fill-wallpapers" name="fill-wallpapers"><i class="anchor-icon"></i></a>Fill wallpapers</h4>
|
||||
<pre><code><a href='/constructor/wallPaperNoFile'>wallPaperNoFile</a>#e0804116 id:<a href='/type/long'>long</a> flags:<a href='/type/%23'>#</a> default:flags.1?<a href='/constructor/true'>true</a> dark:flags.4?<a href='/constructor/true'>true</a> settings:flags.2?<a href='/type/WallPaperSettings'>WallPaperSettings</a> = <a href='/type/WallPaper'>WallPaper</a>;</code></pre>
|
||||
|
|
Loading…
Reference in a new issue