From 761627a93ef8cd16719774faa2e17e1688de7f4b Mon Sep 17 00:00:00 2001 From: namiskuukkel Date: Sat, 10 Feb 2024 18:36:41 +0200 Subject: [PATCH 1/3] Chat details for mini apps Added a column to mini apps documentation to indicate whether the mini app launch method is only available for private chat or not. --- examples/mini-apps/README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/mini-apps/README.md b/examples/mini-apps/README.md index 3d7bf4c..4f82936 100644 --- a/examples/mini-apps/README.md +++ b/examples/mini-apps/README.md @@ -46,14 +46,14 @@ Depending on how you launch it, each type of Mini App has a slightly different s ### Feature table -| | `initDataUnsafe` | `query_id` | `sendData` | `switchInlineQuery` | `chat_instance`, `chat_type`, `start_param` | `chat` | -| --------------- | ---------------- | ---------- | ---------- | ------------------- | ------------------------------------------- | ------ | -| Keyboard button | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | -| Inline keyboard | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | -| Menu button | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | -| Inline mode | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | -| Direct link | ✅ | ❌ | ❌ | ❌ | ✅ | ❌ | -| Attachment | ✅ | ✅ | ❌ | ❌ | ❌ | ✅ | +| | `initDataUnsafe` | `query_id` | `sendData` | `switchInlineQuery` | `chat_instance`, `chat_type`, `start_param` | `chat` |Private chat only| +| --------------- | ---------------- | ---------- | ---------- | ------------------- | ------------------------------------------- | ------ | ---------- | +| Keyboard button | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ✅ | +| Inline keyboard | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | +| Menu button | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | +| Inline mode | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | +| Direct link | ✅ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | +| Attachment | ✅ | ✅ | ❌ | ❌ | ❌ | ✅ | ✅ | Hence, we can come to the following conclusions: From 850ac91f8caf252b2cb29f814b7460b193d3c820 Mon Sep 17 00:00:00 2001 From: namiskuukkel Date: Sun, 11 Feb 2024 19:00:58 +0200 Subject: [PATCH 2/3] Update README.md --- examples/mini-apps/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/mini-apps/README.md b/examples/mini-apps/README.md index 4f82936..4956b3e 100644 --- a/examples/mini-apps/README.md +++ b/examples/mini-apps/README.md @@ -45,6 +45,14 @@ To test a Mini App without publishing a website yourself, try using this one: ht Depending on how you launch it, each type of Mini App has a slightly different set of abilities. ### Feature table +| **Private chats only** | | | ... +| | initDataUnsafe | ... +| Keyboard button | ... +... +| **All chats** | | | ... +| Inline mode | ... +... + | | `initDataUnsafe` | `query_id` | `sendData` | `switchInlineQuery` | `chat_instance`, `chat_type`, `start_param` | `chat` |Private chat only| | --------------- | ---------------- | ---------- | ---------- | ------------------- | ------------------------------------------- | ------ | ---------- | @@ -53,7 +61,7 @@ Depending on how you launch it, each type of Mini App has a slightly different s | Menu button | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | | Inline mode | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | | Direct link | ✅ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | -| Attachment | ✅ | ✅ | ❌ | ❌ | ❌ | ✅ | ✅ | +| Attachment | ✅ | ✅ | ❌ | ❌ | ❌ | ✅ | ❌ | Hence, we can come to the following conclusions: From 3165adc95190b133621eaadecc4dbd44a72c09f6 Mon Sep 17 00:00:00 2001 From: namiskuukkel Date: Sun, 11 Feb 2024 19:02:23 +0200 Subject: [PATCH 3/3] Remove accidental copy paste --- examples/mini-apps/README.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/examples/mini-apps/README.md b/examples/mini-apps/README.md index 4956b3e..bb5dfc5 100644 --- a/examples/mini-apps/README.md +++ b/examples/mini-apps/README.md @@ -45,14 +45,6 @@ To test a Mini App without publishing a website yourself, try using this one: ht Depending on how you launch it, each type of Mini App has a slightly different set of abilities. ### Feature table -| **Private chats only** | | | ... -| | initDataUnsafe | ... -| Keyboard button | ... -... -| **All chats** | | | ... -| Inline mode | ... -... - | | `initDataUnsafe` | `query_id` | `sendData` | `switchInlineQuery` | `chat_instance`, `chat_type`, `start_param` | `chat` |Private chat only| | --------------- | ---------------- | ---------- | ---------- | ------------------- | ------------------------------------------- | ------ | ---------- |