From 5321db8f99b896057de744a051cbc16beea7886e Mon Sep 17 00:00:00 2001
From: GitHub Action
Date: Fri, 19 Aug 2022 18:37:11 +0000
Subject: [PATCH] Update content of files
---
.../corefork.telegram.org/api/bots/games.html | 2 +-
data/web/corefork.telegram.org/api/links.html | 124 +++++++++++++++++-
.../constructor/inputGameShortName.html | 6 +-
.../method/langpack.getLangPack | 6 +-
.../method/langpack.getLanguage | 6 +-
.../method/langpack.getStrings | 6 +-
data/web/telegram.org/faq_premium.html | 2 +
7 files changed, 139 insertions(+), 13 deletions(-)
diff --git a/data/web/corefork.telegram.org/api/bots/games.html b/data/web/corefork.telegram.org/api/bots/games.html
index 0ac3655d6a..fa4a6dec43 100644
--- a/data/web/corefork.telegram.org/api/bots/games.html
+++ b/data/web/corefork.telegram.org/api/bots/games.html
@@ -61,7 +61,7 @@
messages.sendMedia#e25ff8e0 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true peer:InputPeer reply_to_msg_id:flags.0?int media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates;
Bots can directly send a game using messages.sendMedia, providing:
-- The bot's shortname obtained from @BotFather to
inputGameShortName.short_name
+- The game's short name obtained from @BotFather or from a game link » to
inputGameShortName.short_name
- The current bot's info to
inputGameShortName.bot_id
The sent message will contain a messageMediaGame with a game, that can then be used by users to forward the game using sendMedia with inputGameID.
diff --git a/data/web/corefork.telegram.org/api/links.html b/data/web/corefork.telegram.org/api/links.html
index fcdd8fcbaa..5c58ae9bf8 100644
--- a/data/web/corefork.telegram.org/api/links.html
+++ b/data/web/corefork.telegram.org/api/links.html
@@ -543,11 +543,11 @@ Then, for group links:
t.me syntax (groups):
t.me/<bot_username>?startgroup=<parameter>&admin=<permissions>
t.me/<bot_username>?startgroup&admin=<permissions>
-t.me syntax (channels):
-t.me/<bot_username>?startchannel&admin=<permissions>
tg: syntax (groups):
tg://resolve?domain=<bot_username>&startgroup=<parameter>&admin=<permissions>
tg://resolve?domain=<bot_username>&startgroup&admin=<permissions>
+t.me syntax (channels):
+t.me/<bot_username>?startchannel&admin=<permissions>
tg: syntax (channels):
tg://resolve?domain=<bot_username>&startchannel&admin=<permissions>
Parameters:
@@ -567,7 +567,7 @@ tg://resolve?domain=<bot_username>&startgroup&admin=<permission
parameter |
-Optional |
+Optional for group links, absent in channel links |
Start parameter, only for group links, up to 64 base64url characters: if provided and the bot_username is indeed a bot, messages.startBot with the appropriate parameter should be invoked after adding the bot to the group. |
@@ -577,7 +577,123 @@ tg://resolve?domain=<bot_username>&startgroup&admin=<permission
-
+Game links
+Used to share games.
+These links should be handled as follows:
+
+- Check if
bot_username
is indeed a bot username, if so then
+- Bring up dialog selection prompt
+- Send the game to the selected dialog using an inputMediaGame with an inputGameShortName as specified in the game docs.
+
+t.me syntax:
+t.me/<bot_username>?game=<short_name>
+tg: syntax:
+tg://resolve?domain=<bot_username>&game=<short_name>
+Parameters:
+
+
+
+Name |
+Optional |
+Description |
+
+
+
+
+bot_username |
+Required |
+Username of the bot that owns the game |
+
+
+short_name |
+Required |
+Game short name |
+
+
+
+Invoice links
+t.me syntax:
+t.me/invoice/<slug>
+t.me/$<slug>
+tg: syntax:
+tg://invoice?slug=<slug>
+Parameters:
+
+
+
+Name |
+Optional |
+Description |
+
+
+
+
+slug |
+Required |
+ |
+
+
+
+Language pack links
+Used to import custom language packs using langpack.getLangPack.
+t.me syntax:
+t.me/setlanguage/<lang>
+tg: syntax:
+tg://setlanguage?lang=<lang>
+Parameters:
+
+
+
+Name |
+Optional |
+Description |
+
+
+
+
+lang |
+Required |
+Name of language pack to import using langpack.getLangPack |
+
+
+
+Draft links
+Used to enter a prepared message into a chosen chat's text field.
+These links should be handled as follows:
+
+- Open a dialog selection prompt
+- Validate, trim and enter the URL at the beginning of the text field
+- Append a newline to the textfield
+- Append and select the
text
, if present
+
+t.me syntax:
+t.me/share?url=<url>
+t.me/share/url?url=<url>&text=<text>
+tg: syntax:
+tg://msg_url?url=<url>
+tg://msg_url?url=<url>&text=<text>
+Parameters:
+
+
+
+Name |
+Optional |
+Description |
+
+
+
+
+url |
+Required |
+URL to share |
+
+
+text |
+Optional |
+Message to share |
+
+
+
diff --git a/data/web/corefork.telegram.org/constructor/inputGameShortName.html b/data/web/corefork.telegram.org/constructor/inputGameShortName.html
index 0cec2793ed..5300b3dc3a 100644
--- a/data/web/corefork.telegram.org/constructor/inputGameShortName.html
+++ b/data/web/corefork.telegram.org/constructor/inputGameShortName.html
@@ -74,12 +74,14 @@
short_name |
string |
-The game's short name |
+The game's short name, usually obtained from a game link » |
Type
-InputGame
+InputGame
+Related pages
+
diff --git a/data/web/corefork.telegram.org/method/langpack.getLangPack b/data/web/corefork.telegram.org/method/langpack.getLangPack
index 30c88fa838..0bbdd7cbea 100644
--- a/data/web/corefork.telegram.org/method/langpack.getLangPack
+++ b/data/web/corefork.telegram.org/method/langpack.getLangPack
@@ -71,7 +71,7 @@
lang_pack |
string |
-Language pack name |
+Language pack name, usually obtained from a language pack link |
lang_code |
@@ -103,7 +103,9 @@
The provided language pack is invalid. |
-
+
+Related pages
+
diff --git a/data/web/corefork.telegram.org/method/langpack.getLanguage b/data/web/corefork.telegram.org/method/langpack.getLanguage
index fd4c89d9b5..f08dcec6ca 100644
--- a/data/web/corefork.telegram.org/method/langpack.getLanguage
+++ b/data/web/corefork.telegram.org/method/langpack.getLanguage
@@ -71,7 +71,7 @@
lang_pack |
string |
-Language pack name |
+Language pack name, usually obtained from a language pack link |
lang_code |
@@ -103,7 +103,9 @@
The provided language pack is invalid. |
-
+
+Related pages
+
diff --git a/data/web/corefork.telegram.org/method/langpack.getStrings b/data/web/corefork.telegram.org/method/langpack.getStrings
index 253ef089ab..47efc8f537 100644
--- a/data/web/corefork.telegram.org/method/langpack.getStrings
+++ b/data/web/corefork.telegram.org/method/langpack.getStrings
@@ -70,7 +70,7 @@
lang_pack |
string |
-Language pack name |
+Language pack name, usually obtained from a language pack link |
lang_code |
@@ -107,7 +107,9 @@
The provided language pack is invalid. |
-
+
+Related pages
+
diff --git a/data/web/telegram.org/faq_premium.html b/data/web/telegram.org/faq_premium.html
index 841be3185c..6fa26e35b0 100644
--- a/data/web/telegram.org/faq_premium.html
+++ b/data/web/telegram.org/faq_premium.html
@@ -139,6 +139,8 @@ Check out our Premium Terms of Service for more information…">
If you subscribe via the Play Store or App Store, your currency will be based off your account with Google or Apple.
Q: Why is the subscription price different in my app/country?
We do our best to keep the cost of Telegram Premium as consistent as possible – this may include slight variations to reflect local living standards and keep Telegram Premium obtainable for everyone. When you subscribe, the price you see may include store or third-party fees, local taxes and any other applicable fees that are outside of Telegram’s control.
+Q: Why do gifted subscriptions have a different price?
+Gifted subscriptions use the global rate so that they can be sent to and from users in any country. You can always get someone started with a gift, after which they can set up a local subscription.
Q: Why is my preferred payment method not available?
Telegram works with payment providers and app stores to provide a wide range of supported payment methods. If your payment method is not available, you should consider trying all available subscription options: the premium subscription will apply to all supported apps regardless of which one was used to subscribe.
Q: Can I gift a premium subscription to my friends or share it with my family?