mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-03-14 04:51:42 +01:00
Update content of files
This commit is contained in:
parent
73366b5b31
commit
48b6ee97d4
3 changed files with 23 additions and 47 deletions
|
@ -353,7 +353,7 @@ Clicking it should invoke <a href="/method/stories.sendReaction">stories.sendRea
|
|||
|
||||
<a href='/method/messages.getInlineBotResults'>messages.getInlineBotResults</a>#514e999d flags:<a href='/type/%23'>#</a> bot:<a href='/type/InputUser'>InputUser</a> peer:<a href='/type/InputPeer'>InputPeer</a> geo_point:flags.0?<a href='/type/InputGeoPoint'>InputGeoPoint</a> query:<a href='/type/string'>string</a> offset:<a href='/type/string'>string</a> = <a href='/type/messages.BotResults'>messages.BotResults</a>;</code></pre>
|
||||
<p>Users can now share the weather in their stories by adding one weather media area represented by <a href="/constructor/mediaAreaWeather">mediaAreaWeather</a> to their stories. </p>
|
||||
<p>The weather media area should be rendered using the background ARGB color specified in <code>color</code>, and should contain the emoji specified in <code>emoji</code>, followed by the temperature specified in <code>temperature_c</code> (Celsius, which should be converted by the client to Fahrenheit if required by the device's settings), followed by <code>°C</code> or <code>°F</code> depending on the unit used. </p>
|
||||
<p>The weather media area should be rendered using the background ARGB color specified in <code>color</code>, and should contain the emoji specified in <code>emoji</code> (rendered as an <a href="/api/animated-emojis">animated emoji</a>), followed by the temperature specified in <code>temperature_c</code> (Celsius, which should be converted by the client to Fahrenheit if required by the device's settings), followed by <code>°C</code> or <code>°F</code> depending on the unit used. </p>
|
||||
<p>To fetch the current temperature and emoji to use when <em>creating</em> a weather media area when posting a story, clients should internally make an <a href="/api/bots/inline">inline query</a> with <a href="/method/messages.getInlineBotResults">messages.getInlineBotResults</a> to the <code>bot</code> specified in the <a href="/api/config#weather-search-username">weather_search_username</a> client configuration parameter, passing the user's current location in <code>geo_point</code> and <a href="/constructor/inputPeerEmpty">inputPeerEmpty</a> in <code>peer</code>.<br>
|
||||
This query will return a single <a href="/constructor/botInlineResult">botInlineResult</a>: the <code>emoji</code> to use will be contained in the <a href="/constructor/botInlineResult">botInlineResult</a>.<code>title</code> and the temperature (always in Celsius) will be contained in <a href="/constructor/botInlineResult">botInlineResult</a>.<code>description</code> (it will contain just the value without the unit, so it can be easily casted to a double). </p>
|
||||
<p>The inline query should be made internally by the client when the user creates a new weather media area, not by showing the usual inline query UI, but by treating the inline query as an API call to fetch the weather for the current user's location. </p>
|
||||
|
|
|
@ -4,32 +4,24 @@
|
|||
<meta charset="utf-8">
|
||||
<title>mediaAreaUrl</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Parameters
|
||||
<meta property="description" content="Represents a URL media area.
|
||||
Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
coordinates
|
||||
MediaAreaCoordinates
|
||||
|
||||
url
|
||||
string
|
||||
|
||||
Type
|
||||
MediaArea">
|
||||
The size and location of…">
|
||||
<meta property="og:title" content="mediaAreaUrl">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Parameters
|
||||
<meta property="og:description" content="Represents a URL media area.
|
||||
Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
coordinates
|
||||
MediaAreaCoordinates
|
||||
|
||||
url
|
||||
string
|
||||
|
||||
Type
|
||||
MediaArea">
|
||||
The size and location of…">
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||||
|
@ -64,7 +56,8 @@ MediaArea">
|
|||
<div class="dev_page_bread_crumbs"><ul class="breadcrumb clearfix"><li><a href="/api" >API</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/mediaAreaUrl" >mediaAreaUrl</a></li></ul></div>
|
||||
<h1 id="dev_page_title">mediaAreaUrl</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Represents a <a href="/api/stories#urls">URL media area</a>. </p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 185 <b class="caret"></b></a>
|
||||
|
@ -90,12 +83,12 @@ MediaArea">
|
|||
<tr>
|
||||
<td><strong>coordinates</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/MediaAreaCoordinates">MediaAreaCoordinates</a></td>
|
||||
<td> </td>
|
||||
<td>The size and location of the media area corresponding to the URL button on top of the story media.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>url</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td> </td>
|
||||
<td>URL to open when clicked.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -4,42 +4,24 @@
|
|||
<meta charset="utf-8">
|
||||
<title>mediaAreaWeather</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Parameters
|
||||
<meta property="description" content="Represents a weather widget ».
|
||||
Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
coordinates
|
||||
MediaAreaCoordinates
|
||||
|
||||
emoji
|
||||
string
|
||||
|
||||
temperature_c
|
||||
double
|
||||
|
||||
color
|
||||
int
|
||||
|
||||
Type…">
|
||||
The size and location of…">
|
||||
<meta property="og:title" content="mediaAreaWeather">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Parameters
|
||||
<meta property="og:description" content="Represents a weather widget ».
|
||||
Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
coordinates
|
||||
MediaAreaCoordinates
|
||||
|
||||
emoji
|
||||
string
|
||||
|
||||
temperature_c
|
||||
double
|
||||
|
||||
color
|
||||
int
|
||||
|
||||
Type…">
|
||||
The size and location of…">
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||||
|
@ -74,7 +56,8 @@ Type…">
|
|||
<div class="dev_page_bread_crumbs"><ul class="breadcrumb clearfix"><li><a href="/api" >API</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/mediaAreaWeather" >mediaAreaWeather</a></li></ul></div>
|
||||
<h1 id="dev_page_title">mediaAreaWeather</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Represents a <a href="/api/stories#weather">weather widget »</a>.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 185 <b class="caret"></b></a>
|
||||
|
@ -100,22 +83,22 @@ Type…">
|
|||
<tr>
|
||||
<td><strong>coordinates</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/MediaAreaCoordinates">MediaAreaCoordinates</a></td>
|
||||
<td> </td>
|
||||
<td>The size and location of the media area corresponding to the widget on top of the story media.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>emoji</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td> </td>
|
||||
<td>Weather emoji, should be rendered as an <a href="/api/animated-emojis">animated emoji</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>temperature_c</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/double">double</a></td>
|
||||
<td> </td>
|
||||
<td>Temperature in degrees Celsius.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>color</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td> </td>
|
||||
<td>ARGB background color.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
Loading…
Add table
Reference in a new issue