From d536451978520fe86234617a847342dd90f9ec7c Mon Sep 17 00:00:00 2001 From: Ciki Momogi Date: Sun, 18 Sep 2022 19:43:57 +0700 Subject: [PATCH 01/31] Add Deno and Node.js badge --- site/docs/es/hosting/deno-deploy.md | 4 ++-- site/docs/es/hosting/heroku.md | 2 +- site/docs/es/hosting/supabase.md | 2 +- site/docs/es/hosting/vps.md | 2 +- site/docs/hosting/deno-deploy.md | 6 +++--- site/docs/hosting/heroku.md | 2 +- site/docs/hosting/supabase.md | 2 +- site/docs/hosting/vps.md | 2 +- site/docs/id/hosting/deno-deploy.md | 12 +++++++----- site/docs/id/hosting/heroku.md | 2 +- site/docs/id/hosting/supabase.md | 2 +- site/docs/id/hosting/vps.md | 2 +- site/docs/zh/hosting/deno-deploy.md | 4 ++-- site/docs/zh/hosting/heroku.md | 2 +- site/docs/zh/hosting/supabase.md | 2 +- site/docs/zh/hosting/vps.md | 2 +- 16 files changed, 26 insertions(+), 24 deletions(-) diff --git a/site/docs/es/hosting/deno-deploy.md b/site/docs/es/hosting/deno-deploy.md index a9188fe50..8c49b4cc6 100644 --- a/site/docs/es/hosting/deno-deploy.md +++ b/site/docs/es/hosting/deno-deploy.md @@ -1,4 +1,4 @@ -# Alojamiento: Deno Deploy +# Alojamiento: Deno Deploy Esta guía le informa sobre las formas de alojar sus bots de grammY en [Deno Deploy](https://deno.com/deploy). @@ -89,7 +89,7 @@ deployctl deploy --project ./mod.ts --prod --token Después de poner en marcha tu aplicación, debes configurar los ajustes de los webhooks de tu bot para que apunten a tu aplicación. Para ello, envía una petición a -```text +```md https://api.telegram.org/bot/setWebhook?url= ``` diff --git a/site/docs/es/hosting/heroku.md b/site/docs/es/hosting/heroku.md index 7425bddc5..0c4b9609f 100644 --- a/site/docs/es/hosting/heroku.md +++ b/site/docs/es/hosting/heroku.md @@ -1,4 +1,4 @@ -# Alojamiento: Heroku +# Alojamiento: Heroku > Asumimos que tienes los conocimientos básicos sobre la creación de bots usando grammY. > Si aún no estás preparado, ¡no dudes en dirigirte a nuestra amigable [Guía](../guide)! :cohete: diff --git a/site/docs/es/hosting/supabase.md b/site/docs/es/hosting/supabase.md index 0c51c02f2..3cdac324b 100644 --- a/site/docs/es/hosting/supabase.md +++ b/site/docs/es/hosting/supabase.md @@ -1,4 +1,4 @@ -# Hosting: Supabase Edge Functions +# Hosting: Supabase Edge Functions Esta guía te explica cómo puedes alojar tus bots de grammY en [Supabase](https://supabase.com/). diff --git a/site/docs/es/hosting/vps.md b/site/docs/es/hosting/vps.md index 008d9ed90..4f1862eac 100644 --- a/site/docs/es/hosting/vps.md +++ b/site/docs/es/hosting/vps.md @@ -1,4 +1,4 @@ -# Alojamiento: VPS +# Alojamiento: VPS Un servidor virtual privado, mayormente conocido como VPS, es una máquina virtual que se ejecuta en la nube y cuyos usuarios tienen el control total de su sistema. diff --git a/site/docs/hosting/deno-deploy.md b/site/docs/hosting/deno-deploy.md index c0b0a427d..34afd3a13 100644 --- a/site/docs/hosting/deno-deploy.md +++ b/site/docs/hosting/deno-deploy.md @@ -1,4 +1,4 @@ -# Hosting: Deno Deploy +# Hosting: Deno Deploy This guide tells you about the ways you can host your grammY bots on [Deno Deploy](https://deno.com/deploy). @@ -48,7 +48,7 @@ Here, we are using the bot token (`/`). ### Method 1: With GitHub > This is the recommended method, and the easiest one to go with. -> The main advantage of following this method is that Deno Deploy will watch for changes in your repository which includes your bot code, and it will deploy new versions automatically. +> The main advantage of following method is that Deno Deploy will watch for changes in your repository which includes your bot code, and it will deploy new versions automatically. 1. Create a repository on GitHub, it can be either private or public. 2. Push your code. @@ -89,7 +89,7 @@ deployctl deploy --project ./mod.ts --prod --token After getting your app running, you should configure your bot's webhook settings to point to your app. To do that, send a request to -```text +```md https://api.telegram.org/bot/setWebhook?url= ``` diff --git a/site/docs/hosting/heroku.md b/site/docs/hosting/heroku.md index be7bbbf6d..28e4536cf 100644 --- a/site/docs/hosting/heroku.md +++ b/site/docs/hosting/heroku.md @@ -1,4 +1,4 @@ -# Hosting: Heroku +# Hosting: Heroku > We assume that you have the basic knowledge about creating bots using grammY. > If you are not ready yet, don't hesitate to head over to our friendly [Guide](../guide)! :rocket: diff --git a/site/docs/hosting/supabase.md b/site/docs/hosting/supabase.md index 22ea7cb5f..020583f9d 100644 --- a/site/docs/hosting/supabase.md +++ b/site/docs/hosting/supabase.md @@ -1,4 +1,4 @@ -# Hosting: Supabase Edge Functions +# Hosting: Supabase Edge Functions This guide tells you how you can host your grammY bots on [Supabase](https://supabase.com/). diff --git a/site/docs/hosting/vps.md b/site/docs/hosting/vps.md index 0785422ae..7749b4090 100644 --- a/site/docs/hosting/vps.md +++ b/site/docs/hosting/vps.md @@ -1,4 +1,4 @@ -# Hosting: VPS +# Hosting: VPS A virtual private server, mostly known as VPS, is a virtual machine running in the cloud with its users having the full control of its system. diff --git a/site/docs/id/hosting/deno-deploy.md b/site/docs/id/hosting/deno-deploy.md index caa3a3d11..660fdd895 100644 --- a/site/docs/id/hosting/deno-deploy.md +++ b/site/docs/id/hosting/deno-deploy.md @@ -1,4 +1,4 @@ -# Hosting: Deno Deploy +# Hosting: Deno Deploy Halaman ini berisi panduan mengenai cara-cara meng-hosting bot di [Deno Deploy](https://deno.com/deploy). @@ -16,13 +16,14 @@ Hasil dari tutorial disini dapat dilihat di [repositori bot kami](https://github > Ingat! Kamu perlu [menjalankan bot dengan webhooks](../guide/deployment-types.md#bagaimana-cara-menggunakan-webhook), jadi kamu harus menggunakan `webhookCallback` alih-alih memanggil `bot.start()` di kodemu. -1. Pastikan kamu meng-export object bot di dalam sebuah file agar nantinya bisa di-import ketika ingin menjalankannya. -2. Buat sebuah file dengan nama `mod.ts` atau `mod.js`, ataupun nama lainnya sesuai dengan keinginanmu (tetapi kamu harus mengingatnya karena nanti file tersebut akan digunakan sebagai file deploy utama). File tersebut berisikan: +1. Pastikan kamu meng-export object `Bot` di dalam sebuah file agar nantinya bisa di-import ketika ingin menjalankannya. +2. Buat sebuah file dengan nama `mod.ts` atau `mod.js`, ataupun nama lainnya sesuai dengan keinginanmu (tetapi kamu harus mengingatnya karena nanti file tersebut akan digunakan sebagai file deploy utama). + File tersebut berisikan: ```ts import { serve } from "https://deno.land/std/http/server.ts"; import { webhookCallback } from "https://deno.land/x/grammy/mod.ts"; -// Kamu mungkin perlu mengubah ini agar dapat melakukan import pada object bot-mu. +// Kamu mungkin perlu mengubah ini agar object bot-mu bisa di-import import bot from "./bot.ts"; const handleUpdate = webhookCallback(bot, "std/http"); @@ -90,8 +91,9 @@ deployctl deploy --project ./mod.ts --prod --token ### Catatan Setelah mendapati bot-mu dapat berjalan, kamu harus melakukan konfigurasi pada pengaturan webhook untuk menggunakan URL bot-mu yang baru. +Untuk melakukannya, kirim sebuah request ke -```text +```md https://api.telegram.org/bot/setWebhook?url= ``` diff --git a/site/docs/id/hosting/heroku.md b/site/docs/id/hosting/heroku.md index e566516d6..3cda3f3a5 100644 --- a/site/docs/id/hosting/heroku.md +++ b/site/docs/id/hosting/heroku.md @@ -1,4 +1,4 @@ -# Hosting: Heroku +# Hosting: Heroku > Kami mengasumsikan bahwa kamu sudah memiliki pengetahuan dasar dalam membuat sebuah bot menggunakan grammY. > Jika belum, silahkan baca [panduan](../guide) yang telah kami buat dengan sepenuh hati! :heart: diff --git a/site/docs/id/hosting/supabase.md b/site/docs/id/hosting/supabase.md index 023e60cc2..1295e5933 100644 --- a/site/docs/id/hosting/supabase.md +++ b/site/docs/id/hosting/supabase.md @@ -1,4 +1,4 @@ -# Hosting: Supabase Edge Functions +# Hosting: Supabase Edge Functions Halaman ini berisi panduan mengenai langkah-langkah meng-hosting bot grammY di [Supabase](https://supabase.com/). diff --git a/site/docs/id/hosting/vps.md b/site/docs/id/hosting/vps.md index 1707fa954..5d75ac3a4 100644 --- a/site/docs/id/hosting/vps.md +++ b/site/docs/id/hosting/vps.md @@ -1,4 +1,4 @@ -# Hosting: VPS +# Hosting: VPS Virtual Private Server, atau biasa dikenal dengan VPS, adalah sebuah perangkat virtual yang berjalan di cloud, dimana pemiliknya memiliki kendali penuh atas perangkat tersebut. diff --git a/site/docs/zh/hosting/deno-deploy.md b/site/docs/zh/hosting/deno-deploy.md index 5875e2958..d1b4a46b9 100644 --- a/site/docs/zh/hosting/deno-deploy.md +++ b/site/docs/zh/hosting/deno-deploy.md @@ -1,4 +1,4 @@ -# 托管:Deno Deploy +# 托管:Deno Deploy 这个指南告诉你如何将你的 grammY bots 托管到 [Deno Deploy](https://deno.com/deploy). @@ -89,7 +89,7 @@ deployctl deploy --project ./mod.ts --prod --token 在部署完成后,你需要配置你的 bot 的 webhook 设置来指向你的 app。 为了配置 webhook,发送一个请求到 -```text +```md https://api.telegram.org/bot/setWebhook?url= ``` diff --git a/site/docs/zh/hosting/heroku.md b/site/docs/zh/hosting/heroku.md index 9ee3bfbb0..8a0657037 100644 --- a/site/docs/zh/hosting/heroku.md +++ b/site/docs/zh/hosting/heroku.md @@ -1,4 +1,4 @@ -# 托管:Heroku +# 托管:Heroku > 我们假设你有关于如何使用 grammY 创建 bot 的基本知识。 > 如果你还没有准备好,不要犹豫,请查看我们十分友好的 [指南](../guide) ! :rocket: diff --git a/site/docs/zh/hosting/supabase.md b/site/docs/zh/hosting/supabase.md index 7b730c324..ec71e5783 100644 --- a/site/docs/zh/hosting/supabase.md +++ b/site/docs/zh/hosting/supabase.md @@ -1,4 +1,4 @@ -# 托管:Supabase Edge Functions +# 托管:Supabase Edge Functions 这个指南告诉你如何将你的 grammY bots 托管到 [Supabase](https://supabase.com/). diff --git a/site/docs/zh/hosting/vps.md b/site/docs/zh/hosting/vps.md index 0718353da..b3cf372f1 100644 --- a/site/docs/zh/hosting/vps.md +++ b/site/docs/zh/hosting/vps.md @@ -1,4 +1,4 @@ -# 托管: VPS +# 托管: VPS 虚拟私人服务器,大多数时候被称为 VPS,是在云中运行的虚拟机,用户拥有其系统的完整控制权。 From 97d4291db12409a62e3fab138d90c7a6bbfc7da6 Mon Sep 17 00:00:00 2001 From: Ciki Momogi Date: Mon, 19 Sep 2022 19:19:50 +0700 Subject: [PATCH 02/31] Apply suggestions from code review --- site/docs/es/hosting/deno-deploy.md | 2 +- site/docs/hosting/deno-deploy.md | 4 ++-- site/docs/id/hosting/deno-deploy.md | 2 +- site/docs/zh/hosting/deno-deploy.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/site/docs/es/hosting/deno-deploy.md b/site/docs/es/hosting/deno-deploy.md index 8c49b4cc6..42198d707 100644 --- a/site/docs/es/hosting/deno-deploy.md +++ b/site/docs/es/hosting/deno-deploy.md @@ -89,7 +89,7 @@ deployctl deploy --project ./mod.ts --prod --token Después de poner en marcha tu aplicación, debes configurar los ajustes de los webhooks de tu bot para que apunten a tu aplicación. Para ello, envía una petición a -```md +```md:no-line-numbers https://api.telegram.org/bot/setWebhook?url= ``` diff --git a/site/docs/hosting/deno-deploy.md b/site/docs/hosting/deno-deploy.md index 34afd3a13..2c6a960fd 100644 --- a/site/docs/hosting/deno-deploy.md +++ b/site/docs/hosting/deno-deploy.md @@ -48,7 +48,7 @@ Here, we are using the bot token (`/`). ### Method 1: With GitHub > This is the recommended method, and the easiest one to go with. -> The main advantage of following method is that Deno Deploy will watch for changes in your repository which includes your bot code, and it will deploy new versions automatically. +> The main advantage of following this method is that Deno Deploy will watch for changes in your repository which includes your bot code, and it will deploy new versions automatically. 1. Create a repository on GitHub, it can be either private or public. 2. Push your code. @@ -89,7 +89,7 @@ deployctl deploy --project ./mod.ts --prod --token After getting your app running, you should configure your bot's webhook settings to point to your app. To do that, send a request to -```md +```md:no-line-numbers https://api.telegram.org/bot/setWebhook?url= ``` diff --git a/site/docs/id/hosting/deno-deploy.md b/site/docs/id/hosting/deno-deploy.md index 660fdd895..19eb626d7 100644 --- a/site/docs/id/hosting/deno-deploy.md +++ b/site/docs/id/hosting/deno-deploy.md @@ -93,7 +93,7 @@ deployctl deploy --project ./mod.ts --prod --token Setelah mendapati bot-mu dapat berjalan, kamu harus melakukan konfigurasi pada pengaturan webhook untuk menggunakan URL bot-mu yang baru. Untuk melakukannya, kirim sebuah request ke -```md +```md:no-line-numbers https://api.telegram.org/bot/setWebhook?url= ``` diff --git a/site/docs/zh/hosting/deno-deploy.md b/site/docs/zh/hosting/deno-deploy.md index d1b4a46b9..87c0eee82 100644 --- a/site/docs/zh/hosting/deno-deploy.md +++ b/site/docs/zh/hosting/deno-deploy.md @@ -89,7 +89,7 @@ deployctl deploy --project ./mod.ts --prod --token 在部署完成后,你需要配置你的 bot 的 webhook 设置来指向你的 app。 为了配置 webhook,发送一个请求到 -```md +```md:no-line-numbers https://api.telegram.org/bot/setWebhook?url= ``` From da70b26f609dc1f5c191189732ead01ae458785b Mon Sep 17 00:00:00 2001 From: Ciki Momogi Date: Mon, 19 Sep 2022 22:21:28 +0700 Subject: [PATCH 03/31] Redesign the badge --- site/docs/.vuepress/public/badges/deno.svg | 1 + site/docs/.vuepress/public/badges/nodejs.svg | 1 + site/docs/es/hosting/deno-deploy.md | 4 +++- site/docs/es/hosting/heroku.md | 4 +++- site/docs/es/hosting/supabase.md | 4 +++- site/docs/es/hosting/vps.md | 4 +++- site/docs/hosting/deno-deploy.md | 4 +++- site/docs/hosting/heroku.md | 4 +++- site/docs/hosting/supabase.md | 4 +++- site/docs/hosting/vps.md | 4 +++- site/docs/id/hosting/deno-deploy.md | 4 +++- site/docs/id/hosting/heroku.md | 4 +++- site/docs/id/hosting/supabase.md | 4 +++- site/docs/id/hosting/vps.md | 4 +++- site/docs/zh/hosting/deno-deploy.md | 4 +++- site/docs/zh/hosting/heroku.md | 4 +++- site/docs/zh/hosting/supabase.md | 4 +++- site/docs/zh/hosting/vps.md | 4 +++- 18 files changed, 50 insertions(+), 16 deletions(-) create mode 100644 site/docs/.vuepress/public/badges/deno.svg create mode 100644 site/docs/.vuepress/public/badges/nodejs.svg diff --git a/site/docs/.vuepress/public/badges/deno.svg b/site/docs/.vuepress/public/badges/deno.svg new file mode 100644 index 000000000..4271d1005 --- /dev/null +++ b/site/docs/.vuepress/public/badges/deno.svg @@ -0,0 +1 @@ +DENODENO \ No newline at end of file diff --git a/site/docs/.vuepress/public/badges/nodejs.svg b/site/docs/.vuepress/public/badges/nodejs.svg new file mode 100644 index 000000000..2bb1879ab --- /dev/null +++ b/site/docs/.vuepress/public/badges/nodejs.svg @@ -0,0 +1 @@ +NODE.JSNODE.JS \ No newline at end of file diff --git a/site/docs/es/hosting/deno-deploy.md b/site/docs/es/hosting/deno-deploy.md index 42198d707..d301898e7 100644 --- a/site/docs/es/hosting/deno-deploy.md +++ b/site/docs/es/hosting/deno-deploy.md @@ -1,4 +1,6 @@ -# Alojamiento: Deno Deploy +# Alojamiento: Deno Deploy + +![Deno badge](/badges/deno.svg) Esta guía le informa sobre las formas de alojar sus bots de grammY en [Deno Deploy](https://deno.com/deploy). diff --git a/site/docs/es/hosting/heroku.md b/site/docs/es/hosting/heroku.md index d2b182a2b..8789f140a 100644 --- a/site/docs/es/hosting/heroku.md +++ b/site/docs/es/hosting/heroku.md @@ -1,4 +1,6 @@ -# Alojamiento: Heroku +# Alojamiento: Heroku + +![Deno badge](/badges/deno.svg) ![Node.js badge](/badges/nodejs.svg) > Asumimos que tienes los conocimientos básicos sobre la creación de bots usando grammY. > Si aún no estás preparado, ¡no dudes en dirigirte a nuestra amigable [Guía](../guide)! :cohete: diff --git a/site/docs/es/hosting/supabase.md b/site/docs/es/hosting/supabase.md index 3cdac324b..635ecc75e 100644 --- a/site/docs/es/hosting/supabase.md +++ b/site/docs/es/hosting/supabase.md @@ -1,4 +1,6 @@ -# Hosting: Supabase Edge Functions +# Hosting: Supabase Edge Functions + +![Deno badge](/badges/deno.svg) Esta guía te explica cómo puedes alojar tus bots de grammY en [Supabase](https://supabase.com/). diff --git a/site/docs/es/hosting/vps.md b/site/docs/es/hosting/vps.md index 4f1862eac..956536720 100644 --- a/site/docs/es/hosting/vps.md +++ b/site/docs/es/hosting/vps.md @@ -1,4 +1,6 @@ -# Alojamiento: VPS +# Alojamiento: VPS + +![Deno badge](/badges/deno.svg) ![Node.js badge](/badges/nodejs.svg) Un servidor virtual privado, mayormente conocido como VPS, es una máquina virtual que se ejecuta en la nube y cuyos usuarios tienen el control total de su sistema. diff --git a/site/docs/hosting/deno-deploy.md b/site/docs/hosting/deno-deploy.md index 2c6a960fd..4bc360ec5 100644 --- a/site/docs/hosting/deno-deploy.md +++ b/site/docs/hosting/deno-deploy.md @@ -1,4 +1,6 @@ -# Hosting: Deno Deploy +# Hosting: Deno Deploy + +![Deno badge](/badges/deno.svg) This guide tells you about the ways you can host your grammY bots on [Deno Deploy](https://deno.com/deploy). diff --git a/site/docs/hosting/heroku.md b/site/docs/hosting/heroku.md index 90254ed13..e7cf27cd2 100644 --- a/site/docs/hosting/heroku.md +++ b/site/docs/hosting/heroku.md @@ -1,4 +1,6 @@ -# Hosting: Heroku +# Hosting: Heroku + +![Deno badge](/badges/deno.svg) ![Node.js badge](/badges/nodejs.svg) > We assume that you have the basic knowledge about creating bots using grammY. > If you are not ready yet, don't hesitate to head over to our friendly [Guide](../guide)! :rocket: diff --git a/site/docs/hosting/supabase.md b/site/docs/hosting/supabase.md index 020583f9d..408863a1d 100644 --- a/site/docs/hosting/supabase.md +++ b/site/docs/hosting/supabase.md @@ -1,4 +1,6 @@ -# Hosting: Supabase Edge Functions +# Hosting: Supabase Edge Functions + +![Deno badge](/badges/deno.svg) This guide tells you how you can host your grammY bots on [Supabase](https://supabase.com/). diff --git a/site/docs/hosting/vps.md b/site/docs/hosting/vps.md index 551480ec7..f0d740f51 100644 --- a/site/docs/hosting/vps.md +++ b/site/docs/hosting/vps.md @@ -1,4 +1,6 @@ -# Hosting: VPS +# Hosting: VPS + +![Deno badge](/badges/deno.svg) ![Node.js badge](/badges/nodejs.svg) A virtual private server, mostly known as VPS, is a virtual machine running in the cloud with its users having the full control of its system. diff --git a/site/docs/id/hosting/deno-deploy.md b/site/docs/id/hosting/deno-deploy.md index 19eb626d7..2ac8894c7 100644 --- a/site/docs/id/hosting/deno-deploy.md +++ b/site/docs/id/hosting/deno-deploy.md @@ -1,4 +1,6 @@ -# Hosting: Deno Deploy +# Hosting: Deno Deploy + +![Deno badge](/badges/deno.svg) Halaman ini berisi panduan mengenai cara-cara meng-hosting bot di [Deno Deploy](https://deno.com/deploy). diff --git a/site/docs/id/hosting/heroku.md b/site/docs/id/hosting/heroku.md index 3cda3f3a5..107660691 100644 --- a/site/docs/id/hosting/heroku.md +++ b/site/docs/id/hosting/heroku.md @@ -1,4 +1,6 @@ -# Hosting: Heroku +# Hosting: Heroku + +![Deno badge](/badges/deno.svg) ![Node.js badge](/badges/nodejs.svg) > Kami mengasumsikan bahwa kamu sudah memiliki pengetahuan dasar dalam membuat sebuah bot menggunakan grammY. > Jika belum, silahkan baca [panduan](../guide) yang telah kami buat dengan sepenuh hati! :heart: diff --git a/site/docs/id/hosting/supabase.md b/site/docs/id/hosting/supabase.md index 1295e5933..49bc22b6b 100644 --- a/site/docs/id/hosting/supabase.md +++ b/site/docs/id/hosting/supabase.md @@ -1,4 +1,6 @@ -# Hosting: Supabase Edge Functions +# Hosting: Supabase Edge Functions + +![Deno badge](/badges/deno.svg) Halaman ini berisi panduan mengenai langkah-langkah meng-hosting bot grammY di [Supabase](https://supabase.com/). diff --git a/site/docs/id/hosting/vps.md b/site/docs/id/hosting/vps.md index 5d75ac3a4..ebe737d9d 100644 --- a/site/docs/id/hosting/vps.md +++ b/site/docs/id/hosting/vps.md @@ -1,4 +1,6 @@ -# Hosting: VPS +# Hosting: VPS + +![Deno badge](/badges/deno.svg) ![Node.js badge](/badges/nodejs.svg) Virtual Private Server, atau biasa dikenal dengan VPS, adalah sebuah perangkat virtual yang berjalan di cloud, dimana pemiliknya memiliki kendali penuh atas perangkat tersebut. diff --git a/site/docs/zh/hosting/deno-deploy.md b/site/docs/zh/hosting/deno-deploy.md index 87c0eee82..a370949e5 100644 --- a/site/docs/zh/hosting/deno-deploy.md +++ b/site/docs/zh/hosting/deno-deploy.md @@ -1,4 +1,6 @@ -# 托管:Deno Deploy +# 托管:Deno Deploy + +![Deno badge](/badges/deno.svg) 这个指南告诉你如何将你的 grammY bots 托管到 [Deno Deploy](https://deno.com/deploy). diff --git a/site/docs/zh/hosting/heroku.md b/site/docs/zh/hosting/heroku.md index 62bb11d6f..d4042468f 100644 --- a/site/docs/zh/hosting/heroku.md +++ b/site/docs/zh/hosting/heroku.md @@ -1,4 +1,6 @@ -# 托管:Heroku +# 托管:Heroku + +![Deno badge](/badges/deno.svg) ![Node.js badge](/badges/nodejs.svg) > 我们假设你有关于如何使用 grammY 创建 bot 的基本知识。 > 如果你还没有准备好,不要犹豫,请查看我们十分友好的 [指南](../guide) ! :rocket: diff --git a/site/docs/zh/hosting/supabase.md b/site/docs/zh/hosting/supabase.md index ec71e5783..0b58487b5 100644 --- a/site/docs/zh/hosting/supabase.md +++ b/site/docs/zh/hosting/supabase.md @@ -1,4 +1,6 @@ -# 托管:Supabase Edge Functions +# 托管:Supabase Edge Functions + +![Deno badge](/badges/deno.svg) 这个指南告诉你如何将你的 grammY bots 托管到 [Supabase](https://supabase.com/). diff --git a/site/docs/zh/hosting/vps.md b/site/docs/zh/hosting/vps.md index b3cf372f1..84a6be2af 100644 --- a/site/docs/zh/hosting/vps.md +++ b/site/docs/zh/hosting/vps.md @@ -1,4 +1,6 @@ -# 托管: VPS +# 托管: VPS + +![Deno badge](/badges/deno.svg) ![Node.js badge](/badges/nodejs.svg) 虚拟私人服务器,大多数时候被称为 VPS,是在云中运行的虚拟机,用户拥有其系统的完整控制权。 From f06b4f76b8dd8741a2c7c3f46ab59cbcf5e7e8c2 Mon Sep 17 00:00:00 2001 From: Ciki Momogi Date: Tue, 20 Sep 2022 02:17:18 +0700 Subject: [PATCH 04/31] Implement badge into plugin --- site/docs/.vuepress/public/badges/official-es.svg | 1 + site/docs/.vuepress/public/badges/official-id.svg | 1 + site/docs/.vuepress/public/badges/official-zh.svg | 1 + site/docs/.vuepress/public/badges/official.svg | 1 + site/docs/.vuepress/public/badges/third-party-es.svg | 1 + site/docs/.vuepress/public/badges/third-party-id.svg | 1 + site/docs/.vuepress/public/badges/third-party-zh.svg | 1 + site/docs/.vuepress/public/badges/third-party.svg | 1 + site/docs/es/plugins/auto-retry.md | 2 ++ site/docs/es/plugins/autoquote.md | 2 ++ site/docs/es/plugins/console-time.md | 2 ++ site/docs/es/plugins/conversations.md | 2 ++ site/docs/es/plugins/emoji.md | 2 ++ site/docs/es/plugins/files.md | 2 ++ site/docs/es/plugins/fluent.md | 2 ++ site/docs/es/plugins/hydrate.md | 2 ++ site/docs/es/plugins/i18n.md | 2 ++ site/docs/es/plugins/menu.md | 2 ++ site/docs/es/plugins/middlewares.md | 2 ++ site/docs/es/plugins/parse-mode.md | 2 ++ site/docs/es/plugins/ratelimiter.md | 2 ++ site/docs/es/plugins/router.md | 2 ++ site/docs/es/plugins/runner.md | 2 ++ site/docs/es/plugins/stateless-question.md | 2 ++ site/docs/es/plugins/transformer-throttler.md | 2 ++ site/docs/id/plugins/auto-retry.md | 2 ++ site/docs/id/plugins/autoquote.md | 2 ++ site/docs/id/plugins/console-time.md | 2 ++ site/docs/id/plugins/conversations.md | 2 ++ site/docs/id/plugins/emoji.md | 2 ++ site/docs/id/plugins/files.md | 2 ++ site/docs/id/plugins/fluent.md | 2 ++ site/docs/id/plugins/hydrate.md | 2 ++ site/docs/id/plugins/i18n.md | 2 ++ site/docs/id/plugins/menu.md | 2 ++ site/docs/id/plugins/middlewares.md | 2 ++ site/docs/id/plugins/parse-mode.md | 2 ++ site/docs/id/plugins/ratelimiter.md | 2 ++ site/docs/id/plugins/router.md | 2 ++ site/docs/id/plugins/runner.md | 2 ++ site/docs/id/plugins/stateless-question.md | 2 ++ site/docs/id/plugins/transformer-throttler.md | 2 ++ site/docs/plugins/auto-retry.md | 2 ++ site/docs/plugins/autoquote.md | 2 ++ site/docs/plugins/console-time.md | 2 ++ site/docs/plugins/conversations.md | 2 ++ site/docs/plugins/emoji.md | 2 ++ site/docs/plugins/files.md | 2 ++ site/docs/plugins/fluent.md | 2 ++ site/docs/plugins/hydrate.md | 2 ++ site/docs/plugins/i18n.md | 2 ++ site/docs/plugins/menu.md | 2 ++ site/docs/plugins/middlewares.md | 2 ++ site/docs/plugins/parse-mode.md | 2 ++ site/docs/plugins/ratelimiter.md | 2 ++ site/docs/plugins/router.md | 2 ++ site/docs/plugins/runner.md | 2 ++ site/docs/plugins/stateless-question.md | 2 ++ site/docs/plugins/transformer-throttler.md | 2 ++ site/docs/zh/plugins/auto-retry.md | 2 ++ site/docs/zh/plugins/autoquote.md | 2 ++ site/docs/zh/plugins/console-time.md | 2 ++ site/docs/zh/plugins/conversations.md | 2 ++ site/docs/zh/plugins/emoji.md | 2 ++ site/docs/zh/plugins/files.md | 2 ++ site/docs/zh/plugins/fluent.md | 2 ++ site/docs/zh/plugins/hydrate.md | 2 ++ site/docs/zh/plugins/i18n.md | 2 ++ site/docs/zh/plugins/menu.md | 2 ++ site/docs/zh/plugins/middlewares.md | 2 ++ site/docs/zh/plugins/parse-mode.md | 2 ++ site/docs/zh/plugins/ratelimiter.md | 2 ++ site/docs/zh/plugins/router.md | 2 ++ site/docs/zh/plugins/runner.md | 2 ++ site/docs/zh/plugins/stateless-question.md | 2 ++ site/docs/zh/plugins/transformer-throttler.md | 2 ++ 76 files changed, 144 insertions(+) create mode 100644 site/docs/.vuepress/public/badges/official-es.svg create mode 100644 site/docs/.vuepress/public/badges/official-id.svg create mode 100644 site/docs/.vuepress/public/badges/official-zh.svg create mode 100644 site/docs/.vuepress/public/badges/official.svg create mode 100644 site/docs/.vuepress/public/badges/third-party-es.svg create mode 100644 site/docs/.vuepress/public/badges/third-party-id.svg create mode 100644 site/docs/.vuepress/public/badges/third-party-zh.svg create mode 100644 site/docs/.vuepress/public/badges/third-party.svg diff --git a/site/docs/.vuepress/public/badges/official-es.svg b/site/docs/.vuepress/public/badges/official-es.svg new file mode 100644 index 000000000..f6c058dcc --- /dev/null +++ b/site/docs/.vuepress/public/badges/official-es.svg @@ -0,0 +1 @@ +OFICIALOFICIAL \ No newline at end of file diff --git a/site/docs/.vuepress/public/badges/official-id.svg b/site/docs/.vuepress/public/badges/official-id.svg new file mode 100644 index 000000000..c21568dd4 --- /dev/null +++ b/site/docs/.vuepress/public/badges/official-id.svg @@ -0,0 +1 @@ +RESMIRESMI \ No newline at end of file diff --git a/site/docs/.vuepress/public/badges/official-zh.svg b/site/docs/.vuepress/public/badges/official-zh.svg new file mode 100644 index 000000000..f67d57131 --- /dev/null +++ b/site/docs/.vuepress/public/badges/official-zh.svg @@ -0,0 +1 @@ +官方维护官方维护 \ No newline at end of file diff --git a/site/docs/.vuepress/public/badges/official.svg b/site/docs/.vuepress/public/badges/official.svg new file mode 100644 index 000000000..9b9173c61 --- /dev/null +++ b/site/docs/.vuepress/public/badges/official.svg @@ -0,0 +1 @@ +OFFICIALOFFICIAL \ No newline at end of file diff --git a/site/docs/.vuepress/public/badges/third-party-es.svg b/site/docs/.vuepress/public/badges/third-party-es.svg new file mode 100644 index 000000000..b6eb7459d --- /dev/null +++ b/site/docs/.vuepress/public/badges/third-party-es.svg @@ -0,0 +1 @@ +DE TERCEROSDE TERCEROS \ No newline at end of file diff --git a/site/docs/.vuepress/public/badges/third-party-id.svg b/site/docs/.vuepress/public/badges/third-party-id.svg new file mode 100644 index 000000000..89664b536 --- /dev/null +++ b/site/docs/.vuepress/public/badges/third-party-id.svg @@ -0,0 +1 @@ +PIHAK KETIGAPIHAK KETIGA \ No newline at end of file diff --git a/site/docs/.vuepress/public/badges/third-party-zh.svg b/site/docs/.vuepress/public/badges/third-party-zh.svg new file mode 100644 index 000000000..d58bdc124 --- /dev/null +++ b/site/docs/.vuepress/public/badges/third-party-zh.svg @@ -0,0 +1 @@ +第三方第三方 \ No newline at end of file diff --git a/site/docs/.vuepress/public/badges/third-party.svg b/site/docs/.vuepress/public/badges/third-party.svg new file mode 100644 index 000000000..3b87d58f1 --- /dev/null +++ b/site/docs/.vuepress/public/badges/third-party.svg @@ -0,0 +1 @@ +THIRD-PARTYTHIRD-PARTY \ No newline at end of file diff --git a/site/docs/es/plugins/auto-retry.md b/site/docs/es/plugins/auto-retry.md index e1e2ad754..6c9aefccb 100644 --- a/site/docs/es/plugins/auto-retry.md +++ b/site/docs/es/plugins/auto-retry.md @@ -1,5 +1,7 @@ # Reintentar solicitudes de la API (`auto-retry`) +![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + > Considera usar el [plugin throttler](./transformer-throttler.md) en su lugar. Este plugin es una [función transformadora de la API](../advanced/transformers.md), lo que significa que le permite interceptar y modificar las peticiones HTTP salientes sobre la marcha. diff --git a/site/docs/es/plugins/autoquote.md b/site/docs/es/plugins/autoquote.md index 12b86e208..ea636843a 100644 --- a/site/docs/es/plugins/autoquote.md +++ b/site/docs/es/plugins/autoquote.md @@ -1,5 +1,7 @@ # Responder siempre a los mensajes +![De Terceros](/badges/third-party-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + A veces es necesario enviar siempre los mensajes como respuestas, especialmente para los bots que están destinados a ser utilizados en grupos. Normalmente hacemos esto añadiendo el parámetro `reply_to_message_id` a los métodos que envían el mensaje: `sendText`, `reply`, `sendPhoto`, `replyWithPhoto` y otros. Sin embargo, si estás haciendo esto para cada mensaje, puede ser un desastre y aburrido. diff --git a/site/docs/es/plugins/console-time.md b/site/docs/es/plugins/console-time.md index a26b85f46..c305ef30b 100644 --- a/site/docs/es/plugins/console-time.md +++ b/site/docs/es/plugins/console-time.md @@ -1,5 +1,7 @@ # Registro en la consola mientras se depura +![De Terceros](/badges/third-party-es.svg) ![Node.js](/badges/nodejs.svg) + Si estás familiarizado con JavaScript / TypeScript probablemente hayas utilizado [`console.log`](https://developer.mozilla.org/en-US/docs/Web/API/Console/log) o [`console.time`](https://developer.mozilla.org/en-US/docs/Web/API/Console/time) para comprobar lo que está sucediendo mientras depuras algo. Mientras trabajas en tu bot o middleware puede que quieras comprobar algo similar: ¿Qué ha pasado y cuánto tiempo ha tardado? diff --git a/site/docs/es/plugins/conversations.md b/site/docs/es/plugins/conversations.md index 0e1045a33..ce2b355f6 100644 --- a/site/docs/es/plugins/conversations.md +++ b/site/docs/es/plugins/conversations.md @@ -1,5 +1,7 @@ # Conversaciones (`conversations`) +![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Crea potentes interfaces conversacionales con facilidad. ## Introducción diff --git a/site/docs/es/plugins/emoji.md b/site/docs/es/plugins/emoji.md index c23de578a..b2a09316a 100644 --- a/site/docs/es/plugins/emoji.md +++ b/site/docs/es/plugins/emoji.md @@ -1,5 +1,7 @@ # Plugin Emoji (`emoji`) +![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Con este plugin, puedes insertar fácilmente emojis en tus respuestas buscándolos en lugar de copiar y pegar manualmente un emoji de la web en tu código. ## ¿Por qué debería utilizarlo? diff --git a/site/docs/es/plugins/files.md b/site/docs/es/plugins/files.md index 690e6d545..e89883bf2 100644 --- a/site/docs/es/plugins/files.md +++ b/site/docs/es/plugins/files.md @@ -1,5 +1,7 @@ # Manejo de archivos simplificado en grammY (`files`) +![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Este plugin te permite descargar fácilmente archivos de los servidores de Telegram, y obtener una URL para que puedas descargar el archivo tú mismo. ## Descargando Archivos diff --git a/site/docs/es/plugins/fluent.md b/site/docs/es/plugins/fluent.md index e55e5409a..43fd03247 100644 --- a/site/docs/es/plugins/fluent.md +++ b/site/docs/es/plugins/fluent.md @@ -1,5 +1,7 @@ # Internacionalización con Fluent (`fluent`) +![Oficial](/badges/official-es.svg) ![Node.js](/badges/nodejs.svg) + [Fluent](https://projectfluent.org/) es un sistema de localización creado por la Fundación Mozilla para realizar traducciones naturales. Tiene una sintaxis muy potente y elegante que permite a cualquiera escribir traducciones eficientes y totalmente comprensibles. Este plugin aprovecha este increíble sistema de localización para hacer que los bots alimentados por grammY sean fluidos con traducciones de alta calidad. diff --git a/site/docs/es/plugins/hydrate.md b/site/docs/es/plugins/hydrate.md index 18e2e118b..184f5e35a 100644 --- a/site/docs/es/plugins/hydrate.md +++ b/site/docs/es/plugins/hydrate.md @@ -1,5 +1,7 @@ # Plugin Hydration para grammY (`hydrate`) +![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Este plugin instala métodos útiles en dos tipos de objetos, a saber 1. los resultados de las llamadas a la API, y diff --git a/site/docs/es/plugins/i18n.md b/site/docs/es/plugins/i18n.md index eced2824a..96f548d91 100644 --- a/site/docs/es/plugins/i18n.md +++ b/site/docs/es/plugins/i18n.md @@ -1,5 +1,7 @@ # Internacionalización (`i18n`) +![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + El plugin de internacionalización hace que tu bot hable varios idiomas. ::: tip No se debe confundir diff --git a/site/docs/es/plugins/menu.md b/site/docs/es/plugins/menu.md index 2e7f687e7..53d989de2 100644 --- a/site/docs/es/plugins/menu.md +++ b/site/docs/es/plugins/menu.md @@ -1,5 +1,7 @@ # Menús interactivos (`menu`) +![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Crea fácilmente menús interactivos. ## Introducción diff --git a/site/docs/es/plugins/middlewares.md b/site/docs/es/plugins/middlewares.md index cf9ab1810..3168ce1f6 100644 --- a/site/docs/es/plugins/middlewares.md +++ b/site/docs/es/plugins/middlewares.md @@ -1,5 +1,7 @@ # Conjunto de middlewares útiles +![De Terceros](/badges/third-party-es.svg) ![Node.js](/badges/nodejs.svg) + Seguí reescribiendo los mismos middlewares una y otra vez para todos mis bots así que decidí extraerlos todos a un paquete separado. ## Instalación diff --git a/site/docs/es/plugins/parse-mode.md b/site/docs/es/plugins/parse-mode.md index 6718acad5..c4b2efd44 100644 --- a/site/docs/es/plugins/parse-mode.md +++ b/site/docs/es/plugins/parse-mode.md @@ -1,5 +1,7 @@ # Parse Mode Plugin (`parse-mode`) +![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Este plugin proporciona un transformador para establecer el `parse_mode` por defecto, y un middleware para hidratar el `Context` con los métodos variantes familiares de `reply` - es decir, `replyWithHTML`, `replyWithMarkdown`, etc. ## Uso diff --git a/site/docs/es/plugins/ratelimiter.md b/site/docs/es/plugins/ratelimiter.md index fe9712a08..0bac5f9cb 100644 --- a/site/docs/es/plugins/ratelimiter.md +++ b/site/docs/es/plugins/ratelimiter.md @@ -1,5 +1,7 @@ # Usuarios con límite de velocidad (`ratelimiter`) +![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + ratelimiter es un middleware de limitación de tasa para los bots de Telegram hechos con los frameworks de bots grammY o [Telegraf](https://github.com/telegraf/telegraf). En términos simples, es un plugin que te ayuda a desviar el spam pesado en tus bots. Para entender mejor ratelimiter, puedes echar un vistazo a la siguiente ilustración: diff --git a/site/docs/es/plugins/router.md b/site/docs/es/plugins/router.md index f05abd2a7..de7bb17f7 100644 --- a/site/docs/es/plugins/router.md +++ b/site/docs/es/plugins/router.md @@ -1,5 +1,7 @@ # Router (`router`) +![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + La clase `Router` ([Referencia API](https://doc.deno.land/https://deno.land/x/grammy_router/router.ts)) proporciona una forma de estructurar tu bot enrutando objetos de contexto a diferentes partes de tu código. Es una versión más sofisticada de `bot.route` en `Composer` ([grammY API Reference](https://doc.deno.land/https://deno.land/x/grammy/mod.ts/~/Composer#route)). diff --git a/site/docs/es/plugins/runner.md b/site/docs/es/plugins/runner.md index b07083ae0..abe8b5ca4 100644 --- a/site/docs/es/plugins/runner.md +++ b/site/docs/es/plugins/runner.md @@ -1,5 +1,7 @@ # Concurrencia con grammY runner (`runner`) +![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Este paquete se puede utilizar si ejecutas tu bot [usando long polling](../guide/deployment-types.md), y quieres que los mensajes se procesen concurrentemente. > Asegúrate de entender [Scaling Up II](../advanced/scaling.md#long-polling) antes de usar el runner de grammY. diff --git a/site/docs/es/plugins/stateless-question.md b/site/docs/es/plugins/stateless-question.md index 8914ab19a..0c5e28e86 100644 --- a/site/docs/es/plugins/stateless-question.md +++ b/site/docs/es/plugins/stateless-question.md @@ -1,5 +1,7 @@ # Pregunta sin estado (`stateless-question`) +![Oficial](/badges/official-es.svg) ![Node.js](/badges/nodejs.svg) + > Crear preguntas sin estado a los usuarios de Telegram que trabajan en modo de privacidad ¿Quieres mantener la privacidad del usuario con el [modo de privacidad de Telegram activado (por defecto)](https://core.telegram.org/bots#privacy-mode), enviar a los usuarios preguntas traducidas en su idioma y no guardar el estado que los usuarios están haciendo actualmente? diff --git a/site/docs/es/plugins/transformer-throttler.md b/site/docs/es/plugins/transformer-throttler.md index ae8cbeb24..30c9f1cfc 100644 --- a/site/docs/es/plugins/transformer-throttler.md +++ b/site/docs/es/plugins/transformer-throttler.md @@ -1,5 +1,7 @@ # Flood Control (`transformer-throttler`) +![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Este plugin pone en cola la instancia de solicitudes de API salientes a través de [Bottleneck](https://github.com/SGrondin/bottleneck) para evitar que su bot alcance los [límites de velocidad](https://core.telegram.org/bots/faq#my-bot-is-hitting-limits-how-do-i-avoid-this) como se describe en [esta sección avanzada](../advanced/flood.md) de la documentación. ::: warning Existen límites no documentados en la API diff --git a/site/docs/id/plugins/auto-retry.md b/site/docs/id/plugins/auto-retry.md index fe9fb9661..6a4129a51 100644 --- a/site/docs/id/plugins/auto-retry.md +++ b/site/docs/id/plugins/auto-retry.md @@ -1,5 +1,7 @@ # Pengulang Request API (`auto-retry`) +![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + > Pertimbangkan untuk menggunakan [plugin throttler](./transformer-throttler.md) alih-alih menggunakan plugin ini. Plugin ini adalah sebuah [API transformer function](../advanced/transformers.md). diff --git a/site/docs/id/plugins/autoquote.md b/site/docs/id/plugins/autoquote.md index a152de178..297a94f74 100644 --- a/site/docs/id/plugins/autoquote.md +++ b/site/docs/id/plugins/autoquote.md @@ -1,5 +1,7 @@ # Selalu Reply Pesan +![Pihak Ketiga](/badges/third-party-id.svg) ![Deno badge](/badges/deno.svg) ![Node.js badge](/badges/nodejs.svg) + > Catatan terjemahan: Kami membedakan istilah `balas` dengan `reply` agar tidak rancu. > Balas berarti membalas chat seperti pada umumnya. > Sedangkan reply merujuk ke [membalas pesan secara spesifik](https://telegram.org/blog/replies-mentions-hashtags#replies) sehingga menghasilkan utas pesan. diff --git a/site/docs/id/plugins/console-time.md b/site/docs/id/plugins/console-time.md index 4bcaa18be..dbfe81561 100644 --- a/site/docs/id/plugins/console-time.md +++ b/site/docs/id/plugins/console-time.md @@ -1,5 +1,7 @@ # Menggunakan Console Log untuk Men-debug +![Pihak Ketiga](/badges/third-party-id.svg) ![Node.js](/badges/nodejs.svg) + Jika kamu sudah terbiasa dengan JavaScript/TypeScript, kemungkinan besar kamu sering menggunakan [`console.log`](https://developer.mozilla.org/en-US/docs/Web/API/Console/log) atau [`console.time`](https://developer.mozilla.org/en-US/docs/Web/API/Console/time) untuk men-debug suatu program. Ketika bekerja dengan sebuah bot atau middleware, kamu mungkin juga perlu untuk melakukan hal yang serupa: Apa yang sebenarnya terjadi, dan berapa lama waktu yang dibutuhkan? diff --git a/site/docs/id/plugins/conversations.md b/site/docs/id/plugins/conversations.md index 1a0c6de12..9c00b1208 100644 --- a/site/docs/id/plugins/conversations.md +++ b/site/docs/id/plugins/conversations.md @@ -1,5 +1,7 @@ # Percakapan (`conversations`) +![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Membuat interaksi percakapan dengan mudah. ## Pengenalan diff --git a/site/docs/id/plugins/emoji.md b/site/docs/id/plugins/emoji.md index 18130b0d2..7ff4032f9 100644 --- a/site/docs/id/plugins/emoji.md +++ b/site/docs/id/plugins/emoji.md @@ -1,5 +1,7 @@ # Plugin Emoji (`emoji`) +![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Dengan plugin ini, kamu bisa menambahkan emoji secara otomatis di pesan balasanmu tanpa perlu bolak-balik copy-paste emoji dari web ke kode kamu. ## Kenapa Aku Perlu Plugin Ini? diff --git a/site/docs/id/plugins/files.md b/site/docs/id/plugins/files.md index e386d2a44..84c49f419 100644 --- a/site/docs/id/plugins/files.md +++ b/site/docs/id/plugins/files.md @@ -1,5 +1,7 @@ # Menangani File dengan Mudah di grammY (`files`) +![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Plugin ini memudahkan kamu untuk mengunduh file dari server Telegram dan memperoleh URL-nya agar kamu dapat mengunduh file tersebut secara mandiri. ## Mengunduh File diff --git a/site/docs/id/plugins/fluent.md b/site/docs/id/plugins/fluent.md index c6a244d53..3db6f116a 100644 --- a/site/docs/id/plugins/fluent.md +++ b/site/docs/id/plugins/fluent.md @@ -1,5 +1,7 @@ # Internasionalisasi dengan Fluent (`fluent`) +![Resmi](/badges/official-id.svg) ![Node.js](/badges/nodejs.svg) + [Fluent](https://projectfluent.org/) adalah sebuah sistem penerjemah bahasa yang dibuat oleh Mozilla Foundation dengan tujuan supaya hasil terjemahan terdengar lebih natural. Ia memiliki sebuah syntax yang canggih dan elegan, sehingga memungkinkan siapa pun dapat menerjemah secara efisien serta bisa dipahami dengan baik. Plugin ini memanfaatkan sistem penerjemah tersebut untuk membuat bot grammY menjadi fasih serta menghasilkan terjemahan berkualitas tinggi. diff --git a/site/docs/id/plugins/hydrate.md b/site/docs/id/plugins/hydrate.md index 84f3955e8..7aa774d93 100644 --- a/site/docs/id/plugins/hydrate.md +++ b/site/docs/id/plugins/hydrate.md @@ -1,5 +1,7 @@ # Plugin Hidrasi untuk grammY (`hydrate`) +![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Plugin ini akan menginstal method-method yang berguna di dua macam object, yaitu - hasil dari pemanggilan API; serta diff --git a/site/docs/id/plugins/i18n.md b/site/docs/id/plugins/i18n.md index 46ddf66e2..fe81bd395 100644 --- a/site/docs/id/plugins/i18n.md +++ b/site/docs/id/plugins/i18n.md @@ -1,5 +1,7 @@ # Internationalization (`i18n`) +![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Plugin internationalization bisa membuat bot kamu berbicara dalam berbagai macam bahasa. ::: tip i18n vs Fluent diff --git a/site/docs/id/plugins/menu.md b/site/docs/id/plugins/menu.md index ae9ff0afc..edd3a78fa 100644 --- a/site/docs/id/plugins/menu.md +++ b/site/docs/id/plugins/menu.md @@ -1,5 +1,7 @@ # Menu Interaktif (`menu`) +![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Membuat menu interaktif dengan mudah. ## Pengenalan diff --git a/site/docs/id/plugins/middlewares.md b/site/docs/id/plugins/middlewares.md index bf3a090c7..99e3d170e 100644 --- a/site/docs/id/plugins/middlewares.md +++ b/site/docs/id/plugins/middlewares.md @@ -1,5 +1,7 @@ # Kumpulan Middleware yang Berguna +![Pihak Ketiga](/badges/third-party-id.svg) ![Node.js](/badges/nodejs.svg) + Capek menulis middleware yang sama berulang kali? Yup, begitu juga dengan kami. Oleh karena itu, kali ini kami memutuskan untuk mengumpulkan berbagai middleware ke dalam sebuah package terpisah. diff --git a/site/docs/id/plugins/parse-mode.md b/site/docs/id/plugins/parse-mode.md index 3af67f36d..8f5f91ac3 100644 --- a/site/docs/id/plugins/parse-mode.md +++ b/site/docs/id/plugins/parse-mode.md @@ -1,5 +1,7 @@ # Plugin Parse Mode (`parse-mode`) +![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Plugin ini menyediakan sebuah transformer untuk mengatur setting-an bawaan `parse_mode` dan sebuah middleware untuk menghidrasi `Context` dengan varian method `reply` yang lebih familiar, contohnya: `replyWithHTML`, `replyWithMarkdown`, dll. ## Penggunaan diff --git a/site/docs/id/plugins/ratelimiter.md b/site/docs/id/plugins/ratelimiter.md index ca08ca56b..79ae0ec10 100644 --- a/site/docs/id/plugins/ratelimiter.md +++ b/site/docs/id/plugins/ratelimiter.md @@ -1,5 +1,7 @@ # Rate Limit Pengguna (`ratelimiter`) +![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + ratelimiter adalah sebuah middleware yang dibuat dari framework bot grammY ataupun [Telegraf](https://github.com/telegraf/telegraf) yang berfungsi untuk mengatur rate-limit pengguna bot. Simpelnya, plugin ini dapat membantu kamu dalam mencegah serangan spam ke bot. Supaya lebih paham, coba lihat ilustrasi berikut: diff --git a/site/docs/id/plugins/router.md b/site/docs/id/plugins/router.md index a0ab37ee4..25028678c 100644 --- a/site/docs/id/plugins/router.md +++ b/site/docs/id/plugins/router.md @@ -1,5 +1,7 @@ # Router (`router`) +![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Class `Router` ([Referensi API](https://doc.deno.land/https://deno.land/x/grammy_router/router.ts)) berfungsi untuk mengatur rute suatu object context ke berbagai tempat di kode kamu. Plugin ini serupa dengan `bot.route` di `Composer` ([grammY API Reference](https://doc.deno.land/https://deno.land/x/grammy/mod.ts/~/Composer#route)), namun ia jauh lebih canggih. diff --git a/site/docs/id/plugins/runner.md b/site/docs/id/plugins/runner.md index f363102a4..7badd9e63 100644 --- a/site/docs/id/plugins/runner.md +++ b/site/docs/id/plugins/runner.md @@ -1,5 +1,7 @@ # Concurrency Menggunakan grammY runner (`runner`) +![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Plugin ini dapat digunakan untuk memproses berbagai pesan secara bersamaan ketika bot dijalankan [menggunakan long polling](../guide/deployment-types.md). > Sebelum menggunakan grammY runner, pastikan kamu paham betul materi [Peningkatan II](../advanced/scaling.md#long-polling). diff --git a/site/docs/id/plugins/stateless-question.md b/site/docs/id/plugins/stateless-question.md index 6bd9d5497..67053b074 100644 --- a/site/docs/id/plugins/stateless-question.md +++ b/site/docs/id/plugins/stateless-question.md @@ -1,5 +1,7 @@ # Stateless Question (`stateless-question`) +![Resmi](/badges/official-id.svg) ![Node.js](/badges/nodejs.svg) + > Membuat stateless question di mode privasi Apakah kamu ingin mengirim pertanyaan menggunakan bahasa yang sedang digunakan user tanpa perlu mematikan [mode privasi Telegram](https://core.telegram.org/bots#privacy-mode) serta tidak menyimpan statusnya saat ini? diff --git a/site/docs/id/plugins/transformer-throttler.md b/site/docs/id/plugins/transformer-throttler.md index 319f0b251..1834b6566 100644 --- a/site/docs/id/plugins/transformer-throttler.md +++ b/site/docs/id/plugins/transformer-throttler.md @@ -1,5 +1,7 @@ # Kontrol Flood (`transformer-throttler`) +![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Plugin ini menjaga bot kamu agar terhindar dari [rate limit](https://core.telegram.org/bots/faq#my-bot-is-hitting-limits-how-do-i-avoid-this)---lihat [materi tingkat lanjut berikut](../advanced/flood.md)---dengan cara membuat daftar antrian API request yang keluar menggunakan [Bottleneck](https://github.com/SGrondin/bottleneck). ::: warning Aturan Pembatasan API yang Tidak Didokumentasikan diff --git a/site/docs/plugins/auto-retry.md b/site/docs/plugins/auto-retry.md index a5cd43eee..5fc504a1c 100644 --- a/site/docs/plugins/auto-retry.md +++ b/site/docs/plugins/auto-retry.md @@ -1,5 +1,7 @@ # Retry API Requests (`auto-retry`) +![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + > Consider using the [throttler plugin](./transformer-throttler.md) instead. This plugin is an [API transformer function](../advanced/transformers.md), which means that it let's you intercept and modify outgoing HTTP requests on the fly. diff --git a/site/docs/plugins/autoquote.md b/site/docs/plugins/autoquote.md index 0aa8c53bb..931044f83 100644 --- a/site/docs/plugins/autoquote.md +++ b/site/docs/plugins/autoquote.md @@ -1,5 +1,7 @@ # Always Replying to Messages +![Third-party](/badges/third-party.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + It is sometimes necessary to always send messages as replies, especially for bots that are meant to be used in groups. We usually do this by adding the `reply_to_message_id` parameter to the methods that send the message: `sendText`, `reply`, `sendPhoto`, `replyWithPhoto` and etc. However, if you're doing this for every single message, it can get messy and boring. diff --git a/site/docs/plugins/console-time.md b/site/docs/plugins/console-time.md index 240770d39..a8b7bbbea 100644 --- a/site/docs/plugins/console-time.md +++ b/site/docs/plugins/console-time.md @@ -1,5 +1,7 @@ # Console Logging While Debugging +![Third-party](/badges/third-party.svg) ![Node.js](/badges/nodejs.svg) + If you are familiar with JavaScript/TypeScript you probably used [`console.log`](https://developer.mozilla.org/en-US/docs/Web/API/Console/log) or [`console.time`](https://developer.mozilla.org/en-US/docs/Web/API/Console/time) to check what is happening while debugging something. While working on your bot or middleware you might want to check something similar: What happened, and how long took it? diff --git a/site/docs/plugins/conversations.md b/site/docs/plugins/conversations.md index 39475a178..0f07e9ec6 100644 --- a/site/docs/plugins/conversations.md +++ b/site/docs/plugins/conversations.md @@ -1,5 +1,7 @@ # Conversations (`conversations`) +![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Create powerful conversational interfaces with ease. ## Introduction diff --git a/site/docs/plugins/emoji.md b/site/docs/plugins/emoji.md index 50c4faecd..dbc368bb5 100644 --- a/site/docs/plugins/emoji.md +++ b/site/docs/plugins/emoji.md @@ -1,5 +1,7 @@ # Emoji Plugin (`emoji`) +![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + With this plugin, you can easily insert emojis on your replies searching for them instead of manually copying and pasting an emoji from web at your code. ## Why Should I Use This? diff --git a/site/docs/plugins/files.md b/site/docs/plugins/files.md index 350a8ae69..eefce4ae2 100644 --- a/site/docs/plugins/files.md +++ b/site/docs/plugins/files.md @@ -1,5 +1,7 @@ # File Handling Simplified in grammY (`files`) +![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + This plugin allows you to easily download files from Telegram servers, and to obtain a URL so you can download the file yourself. ## Downloading Files diff --git a/site/docs/plugins/fluent.md b/site/docs/plugins/fluent.md index 3b3a3f62e..b5a51ada3 100644 --- a/site/docs/plugins/fluent.md +++ b/site/docs/plugins/fluent.md @@ -1,5 +1,7 @@ # Internationalization with Fluent (`fluent`) +![Official](/badges/official.svg) ![Node.js](/badges/nodejs.svg) + [Fluent](https://projectfluent.org/) is a localization system made by the Mozilla Foundation for natural-sounding translations. It has a very powerful and elegant syntax that lets anyone write efficient and fully-understandable translations. This plugin takes advantage of this amazing localization system to make grammY-powered bots fluent with high-quality translations. diff --git a/site/docs/plugins/hydrate.md b/site/docs/plugins/hydrate.md index 09f8a3d1a..2943be96a 100644 --- a/site/docs/plugins/hydrate.md +++ b/site/docs/plugins/hydrate.md @@ -1,5 +1,7 @@ # Hydration Plugin for grammY (`hydrate`) +![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + This plugin installs useful methods on two types of objects, namely 1. the results of API calls, and diff --git a/site/docs/plugins/i18n.md b/site/docs/plugins/i18n.md index 955e38d31..ef25738a4 100644 --- a/site/docs/plugins/i18n.md +++ b/site/docs/plugins/i18n.md @@ -1,5 +1,7 @@ # Internationalization (`i18n`) +![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + The internationalization plugin makes your bot speak multiple languages. ::: tip Not to Be Confused diff --git a/site/docs/plugins/menu.md b/site/docs/plugins/menu.md index 1a0190bff..0ecc07628 100644 --- a/site/docs/plugins/menu.md +++ b/site/docs/plugins/menu.md @@ -1,5 +1,7 @@ # Interactive Menus (`menu`) +![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Easily create interactive menus. ## Introduction diff --git a/site/docs/plugins/middlewares.md b/site/docs/plugins/middlewares.md index c45e3dc70..63d9cd788 100644 --- a/site/docs/plugins/middlewares.md +++ b/site/docs/plugins/middlewares.md @@ -1,5 +1,7 @@ # Set of useful middlewares +![Third-party](/badges/third-party.svg) ![Node.js](/badges/nodejs.svg) + I kept rewriting the same middlewares again and again for all of my bots so I decided to extract them all to a separate package. ## Installation diff --git a/site/docs/plugins/parse-mode.md b/site/docs/plugins/parse-mode.md index 34d6c05e7..37368e5f9 100644 --- a/site/docs/plugins/parse-mode.md +++ b/site/docs/plugins/parse-mode.md @@ -1,5 +1,7 @@ # Parse Mode Plugin (`parse-mode`) +![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + This plugin provides a transformer for setting default `parse_mode`, and a middleware for hydrating `Context` with familiar `reply` variant methods - i.e. `replyWithHTML`, `replyWithMarkdown`, etc. ## Usage diff --git a/site/docs/plugins/ratelimiter.md b/site/docs/plugins/ratelimiter.md index fbf454abd..521f7cc8e 100644 --- a/site/docs/plugins/ratelimiter.md +++ b/site/docs/plugins/ratelimiter.md @@ -1,5 +1,7 @@ # Rate Limit Users (`ratelimiter`) +![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + ratelimiter is a rate-limiting middleware for Telegram bots made with grammY or [Telegraf](https://github.com/telegraf/telegraf) bot frameworks. In simple terms, it is a plugin that helps you deflect heavy spamming in your bots. To understand ratelimiter better, you can take a look at the following illustration: diff --git a/site/docs/plugins/router.md b/site/docs/plugins/router.md index e11489054..8c47bb8ec 100644 --- a/site/docs/plugins/router.md +++ b/site/docs/plugins/router.md @@ -1,5 +1,7 @@ # Router (`router`) +![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + The `Router` class ([API Reference](https://doc.deno.land/https://deno.land/x/grammy_router/router.ts)) provides a way to structure your bot by routing context objects to different parts of your code. It is a more sophisticated version of `bot.route` on `Composer` ([grammY API Reference](https://doc.deno.land/https://deno.land/x/grammy/mod.ts/~/Composer#route)). diff --git a/site/docs/plugins/runner.md b/site/docs/plugins/runner.md index 9120b8774..dbf90240a 100644 --- a/site/docs/plugins/runner.md +++ b/site/docs/plugins/runner.md @@ -1,5 +1,7 @@ # Concurrency With grammY runner (`runner`) +![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + This package can be used if you run your bot [using long polling](../guide/deployment-types.md), and you want messages to be processed concurrently. > Make sure to understand [Scaling Up II](../advanced/scaling.md#long-polling) before you use grammY runner. diff --git a/site/docs/plugins/stateless-question.md b/site/docs/plugins/stateless-question.md index 21b3118bd..a03a5442f 100644 --- a/site/docs/plugins/stateless-question.md +++ b/site/docs/plugins/stateless-question.md @@ -1,5 +1,7 @@ # Stateless Question (`stateless-question`) +![Official](/badges/official.svg) ![Node.js](/badges/nodejs.svg) + > Create stateless questions to Telegram users working in privacy mode You want to keep the privacy of the user with [Telegrams privacy mode enabled (by default)](https://core.telegram.org/bots#privacy-mode), send users translated questions in their language and don't save the state what users are currently doing? diff --git a/site/docs/plugins/transformer-throttler.md b/site/docs/plugins/transformer-throttler.md index bd574bbe5..fb21f73a9 100644 --- a/site/docs/plugins/transformer-throttler.md +++ b/site/docs/plugins/transformer-throttler.md @@ -1,5 +1,7 @@ # Flood Control (`transformer-throttler`) +![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + This plugin enqueues outgoing API requests instance via [Bottleneck](https://github.com/SGrondin/bottleneck) in order to prevent your bot from hitting [rate limits](https://core.telegram.org/bots/faq#my-bot-is-hitting-limits-how-do-i-avoid-this) as described in [this advanced section](../advanced/flood.md) of the documentation. ::: warning Undocumented API Limits Exist diff --git a/site/docs/zh/plugins/auto-retry.md b/site/docs/zh/plugins/auto-retry.md index 3d718378f..b1e2574a1 100644 --- a/site/docs/zh/plugins/auto-retry.md +++ b/site/docs/zh/plugins/auto-retry.md @@ -1,5 +1,7 @@ # 重试 API 请求(`auto-retry`) +![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + > 请考虑使用 [流量控制插件](./transformer-throttler.md) 替代。 这个插件是一个 [API 转换函数](../advanced/transformers.md),这意味着它可以让你动态地拦截和修改传出的 HTTP 请求。 diff --git a/site/docs/zh/plugins/autoquote.md b/site/docs/zh/plugins/autoquote.md index 6d313c6a3..a1d5c097a 100644 --- a/site/docs/zh/plugins/autoquote.md +++ b/site/docs/zh/plugins/autoquote.md @@ -1,5 +1,7 @@ # 总是回复消息 +![第三方](/badges/third-party-zh.svg) ![Deno badge](/badges/deno.svg) ![Node.js badge](/badges/nodejs.svg) + 有时候有必要总是将消息作为回复发送,特别是对于那些打算要在群组中使用的 bot。 我们通常通过在发送消息的方法中添加 `reply_to_message_id` 参数来实现这一点:`sendText`, `reply`, `sendPhoto`, `replyWithPhoto` 等等。 然而,如果你对每一条消息都这样做,这会使得代码变得很无聊和繁琐。 diff --git a/site/docs/zh/plugins/console-time.md b/site/docs/zh/plugins/console-time.md index c47a7b0dc..514909df8 100644 --- a/site/docs/zh/plugins/console-time.md +++ b/site/docs/zh/plugins/console-time.md @@ -1,5 +1,7 @@ # 调试时输出日志 +![第三方](/badges/third-party-zh.svg) ![Node.js badge](/badges/nodejs.svg) + 如果你熟悉 JavaScript / TypeScript,你可能使用 [`console.log`](https://developer.mozilla.org/en-US/docs/Web/API/Console/log) 或 [`console.time`](https://developer.mozilla.org/en-US/docs/Web/API/Console/time) 来检查你正在调试的事情。 当你在你的 bot 或中间件中工作时,你可能想要检查一个类似的事情:发生了什么,花了多少时间? diff --git a/site/docs/zh/plugins/conversations.md b/site/docs/zh/plugins/conversations.md index b760f4206..375479b2e 100644 --- a/site/docs/zh/plugins/conversations.md +++ b/site/docs/zh/plugins/conversations.md @@ -1,5 +1,7 @@ # 对话 (`conversations`) +![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + 轻松创建强大的对话界面。 ## 介绍 diff --git a/site/docs/zh/plugins/emoji.md b/site/docs/zh/plugins/emoji.md index a2150017a..039f5ce11 100644 --- a/site/docs/zh/plugins/emoji.md +++ b/site/docs/zh/plugins/emoji.md @@ -1,5 +1,7 @@ # Emoji 插件(`emoji`) +![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + 有了这个插件,你可以轻松地在你的回复中插入搜索到的 emoji,而不是在你的代码中手动复制和粘贴网络上的一个 emoji。 ## 我为什么要使用它? diff --git a/site/docs/zh/plugins/files.md b/site/docs/zh/plugins/files.md index f70b25f9c..3f9ee04f6 100644 --- a/site/docs/zh/plugins/files.md +++ b/site/docs/zh/plugins/files.md @@ -1,5 +1,7 @@ # 文件助手(`files`) +![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + 这个插件允许你轻松地从 Telegram 服务器下载文件,并且获取一个URL,以便你自己下载文件。 ## 下载文件 diff --git a/site/docs/zh/plugins/fluent.md b/site/docs/zh/plugins/fluent.md index c791bf218..846822381 100644 --- a/site/docs/zh/plugins/fluent.md +++ b/site/docs/zh/plugins/fluent.md @@ -1,5 +1,7 @@ # 使用 Fluent 进行国际化 (`fluent`) +![官方维护](/badges/official-zh.svg) ![Node.js](/badges/nodejs.svg) + [Fluent](https://projectfluent.org/) 是 Mozilla 基金会制作的一个本地化系统,用于自然发音的翻译。 它有一个非常强大和优雅的语法,可以让任何人写出高效和完全可理解的翻译。 这个插件利用了这个惊人的本地化系统,使得由 grammY 驱动的 bot 能够流畅地进行高质量的翻译。 diff --git a/site/docs/zh/plugins/hydrate.md b/site/docs/zh/plugins/hydrate.md index 570926451..32179249e 100644 --- a/site/docs/zh/plugins/hydrate.md +++ b/site/docs/zh/plugins/hydrate.md @@ -1,5 +1,7 @@ # Hydration(`hydrate`) +![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + 这个插件会安装一些有用的方法在两种类型的对象,即 1. API调用的结果, 和 diff --git a/site/docs/zh/plugins/i18n.md b/site/docs/zh/plugins/i18n.md index 23591573a..df572c903 100644 --- a/site/docs/zh/plugins/i18n.md +++ b/site/docs/zh/plugins/i18n.md @@ -1,5 +1,7 @@ # 国际化 (`i18n`) +![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + 这个国际化插件可以让你的 bot 使用多种不同的语言。 ::: tip 不要困惑 diff --git a/site/docs/zh/plugins/menu.md b/site/docs/zh/plugins/menu.md index 76454eacc..e8641111e 100644 --- a/site/docs/zh/plugins/menu.md +++ b/site/docs/zh/plugins/menu.md @@ -1,5 +1,7 @@ # 互动菜单 (`menu`) +![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + 轻松地创建一个互动菜单。 ## 简介 diff --git a/site/docs/zh/plugins/middlewares.md b/site/docs/zh/plugins/middlewares.md index f5fac73a5..5ac3b4f3b 100644 --- a/site/docs/zh/plugins/middlewares.md +++ b/site/docs/zh/plugins/middlewares.md @@ -1,5 +1,7 @@ # 一套有用的中间件 +![第三方](/badges/third-party-zh.svg) ![Node.js badge](/badges/nodejs.svg) + 我一直在为我所有的 bot 写重复的中间件,所以我决定把它们全部提取到一个单独的包中。 ## 安装 diff --git a/site/docs/zh/plugins/parse-mode.md b/site/docs/zh/plugins/parse-mode.md index ddc03e997..d31bf78c7 100644 --- a/site/docs/zh/plugins/parse-mode.md +++ b/site/docs/zh/plugins/parse-mode.md @@ -1,5 +1,7 @@ # 解析模式(`parse-mode`) +![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + 这个插件提供了一个设置默认的 `parse_mode` 的 transformer,以及一个中间件,用于将 `Context` 中的 `reply` 方法转换成常用的 `replyWithHTML`,`replyWithMarkdown`,等等方法。 ## 使用方法 diff --git a/site/docs/zh/plugins/ratelimiter.md b/site/docs/zh/plugins/ratelimiter.md index d60ed29ec..7cd7f3e61 100644 --- a/site/docs/zh/plugins/ratelimiter.md +++ b/site/docs/zh/plugins/ratelimiter.md @@ -1,5 +1,7 @@ # 限制用户速率 (`ratelimiter`) +![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + ratelimiter 是用 grammY 或 [Telegraf](https://github.com/telegraf/telegraf) bot 框架制作的一个限速中间件。简单来说,它是一个帮助你的 bot 阻塞垃圾信息的插件。要更好地理解 ratelimiter,你可以看下面的图示: ![速率限制器在抵御垃圾信息中的作用](/ratelimiter-role.png) diff --git a/site/docs/zh/plugins/router.md b/site/docs/zh/plugins/router.md index 0ccd8d4ee..6887fac2e 100644 --- a/site/docs/zh/plugins/router.md +++ b/site/docs/zh/plugins/router.md @@ -1,5 +1,7 @@ # 路由器(`router`) +![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + `Router` 类([API 参考](https://doc.deno.land/https://deno.land/x/grammy_router/router.ts))提供了一种更为灵活的方式来结构化你的 bot,通过路由上下文对象到不同的部分代码。 它是 `Composer` 的 `bot.route` 的更高级版本([grammY API 参考](https://doc.deno.land/https://deno.land/x/grammy/mod.ts/~/Composer#route))。 diff --git a/site/docs/zh/plugins/runner.md b/site/docs/zh/plugins/runner.md index 5c9506cc4..e3c419862 100644 --- a/site/docs/zh/plugins/runner.md +++ b/site/docs/zh/plugins/runner.md @@ -1,5 +1,7 @@ # 并发 (`runner`) +![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + 如果你使用 [长轮询](../guide/deployment-types.md) 的方式运行你的机器人,你可以使用这个包来并发处理消息。 > 在使用 grammY runner 之前,请确保你了解 [关注点二:高负载](../advanced/scaling.md#长轮询)。 diff --git a/site/docs/zh/plugins/stateless-question.md b/site/docs/zh/plugins/stateless-question.md index 2fed4bb9b..4b4f51f11 100644 --- a/site/docs/zh/plugins/stateless-question.md +++ b/site/docs/zh/plugins/stateless-question.md @@ -1,5 +1,7 @@ # 无状态问题 (`stateless-question`) +![官方维护](/badges/official-zh.svg) ![Node.js](/badges/nodejs.svg) + > 向隐私模式下的 Telegram 用户创建无状态问题 你想在 [启用 Telegrams 隐私模式(默认)](https://core.telegram.org/bots#privacy-mode) 的情况下,保护用户的隐私,向用户发送他们所使用的语言的问题,并且不保存用户当前状态? diff --git a/site/docs/zh/plugins/transformer-throttler.md b/site/docs/zh/plugins/transformer-throttler.md index b4801831a..a510f79a2 100644 --- a/site/docs/zh/plugins/transformer-throttler.md +++ b/site/docs/zh/plugins/transformer-throttler.md @@ -1,5 +1,7 @@ # 流量控制(`transformer-throttler`) +![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + 这个插件通过 [Bottleneck](https://github.com/SGrondin/bottleneck) 对传出的 API 请求实例进行排队,以防止你的 bot 被 [限流](https://core.telegram.org/bots/faq#my-bot-is-hitting-limits-how-do-i-avoid-this),正如在 [这个高级部分](../advanced/flood.md) 的文档中描述的那样。 ::: warning 不存在文档中的 API 限制 From 1db7dd7f60063cd0b5c6b46b5882982f78dafef4 Mon Sep 17 00:00:00 2001 From: Ciki Momogi Date: Tue, 20 Sep 2022 16:20:49 +0700 Subject: [PATCH 05/31] Add Tag component --- site/docs/.vuepress/components/Tag.vue | 31 +++++++++++++++++++ site/docs/.vuepress/config.ts | 2 ++ .../.vuepress/plugins/registerComponents.ts | 11 +++++++ site/package-lock.json | 23 ++++++++++++++ site/package.json | 1 + 5 files changed, 68 insertions(+) create mode 100644 site/docs/.vuepress/components/Tag.vue create mode 100644 site/docs/.vuepress/plugins/registerComponents.ts diff --git a/site/docs/.vuepress/components/Tag.vue b/site/docs/.vuepress/components/Tag.vue new file mode 100644 index 000000000..847a7a5f7 --- /dev/null +++ b/site/docs/.vuepress/components/Tag.vue @@ -0,0 +1,31 @@ + + + + + \ No newline at end of file diff --git a/site/docs/.vuepress/config.ts b/site/docs/.vuepress/config.ts index 203b5edcb..3c44e6ff1 100644 --- a/site/docs/.vuepress/config.ts +++ b/site/docs/.vuepress/config.ts @@ -2,6 +2,7 @@ import { defaultTheme, defineUserConfig } from "vuepress-vite"; import { betterLineBreaks } from "./plugins/better-line-breaks"; import { currentVersions } from "./plugins/current-versions/plugin"; import { docsearch } from "./plugins/docsearch"; +import { registerComponents } from "./plugins/registerComponents"; export default defineUserConfig({ locales: { @@ -1504,6 +1505,7 @@ export default defineUserConfig({ }), betterLineBreaks(), currentVersions(), + registerComponents(), ], markdown: { typographer: true, diff --git a/site/docs/.vuepress/plugins/registerComponents.ts b/site/docs/.vuepress/plugins/registerComponents.ts new file mode 100644 index 000000000..a5e914553 --- /dev/null +++ b/site/docs/.vuepress/plugins/registerComponents.ts @@ -0,0 +1,11 @@ +import { registerComponentsPlugin } from "@vuepress/plugin-register-components"; +import { getDirname, path } from "@vuepress/utils"; +import { type Plugin } from "vuepress-vite"; + +export function registerComponents(): Plugin { + const __dirname = getDirname(import.meta.url); + + return registerComponentsPlugin({ + componentsDir: path.resolve(__dirname, "../components"), + }); +} diff --git a/site/package-lock.json b/site/package-lock.json index 4c794e0c5..2d199e89e 100644 --- a/site/package-lock.json +++ b/site/package-lock.json @@ -10,6 +10,7 @@ "license": "MIT", "devDependencies": { "@vuepress/plugin-docsearch": "^2.0.0-beta.51", + "@vuepress/plugin-register-components": "^2.0.0-beta.51", "deno-bin": ">=1.25.2", "static-sitemap-cli": "^2.1.2", "vuepress-vite": "^2.0.0-beta.51" @@ -843,6 +844,17 @@ "prismjs": "^1.28.0" } }, + "node_modules/@vuepress/plugin-register-components": { + "version": "2.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@vuepress/plugin-register-components/-/plugin-register-components-2.0.0-beta.51.tgz", + "integrity": "sha512-9zZgv37gdQlDwpZnif/CChJvKJVeHQ2LSbkw0ab6L5GIjrTegDBc3AHXjoNJBIG80Xo+/fAdR1dWjAlR7YfgKg==", + "dev": true, + "dependencies": { + "@vuepress/core": "2.0.0-beta.51", + "@vuepress/utils": "2.0.0-beta.51", + "chokidar": "^3.5.3" + } + }, "node_modules/@vuepress/plugin-theme-data": { "version": "2.0.0-beta.51", "resolved": "https://registry.npmjs.org/@vuepress/plugin-theme-data/-/plugin-theme-data-2.0.0-beta.51.tgz", @@ -4536,6 +4548,17 @@ "prismjs": "^1.28.0" } }, + "@vuepress/plugin-register-components": { + "version": "2.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@vuepress/plugin-register-components/-/plugin-register-components-2.0.0-beta.51.tgz", + "integrity": "sha512-9zZgv37gdQlDwpZnif/CChJvKJVeHQ2LSbkw0ab6L5GIjrTegDBc3AHXjoNJBIG80Xo+/fAdR1dWjAlR7YfgKg==", + "dev": true, + "requires": { + "@vuepress/core": "2.0.0-beta.51", + "@vuepress/utils": "2.0.0-beta.51", + "chokidar": "^3.5.3" + } + }, "@vuepress/plugin-theme-data": { "version": "2.0.0-beta.51", "resolved": "https://registry.npmjs.org/@vuepress/plugin-theme-data/-/plugin-theme-data-2.0.0-beta.51.tgz", diff --git a/site/package.json b/site/package.json index a77e6d63c..455ef7cc0 100644 --- a/site/package.json +++ b/site/package.json @@ -18,6 +18,7 @@ "license": "MIT", "devDependencies": { "@vuepress/plugin-docsearch": "^2.0.0-beta.51", + "@vuepress/plugin-register-components": "^2.0.0-beta.51", "deno-bin": ">=1.25.2", "static-sitemap-cli": "^2.1.2", "vuepress-vite": "^2.0.0-beta.51" From 94c85588d2a4c575e43de2576b8b6f8bad60f911 Mon Sep 17 00:00:00 2001 From: Ciki Momogi Date: Tue, 20 Sep 2022 16:43:16 +0700 Subject: [PATCH 06/31] Update all tags --- site/docs/es/hosting/deno-deploy.md | 2 +- site/docs/es/hosting/heroku.md | 2 +- site/docs/es/hosting/supabase.md | 2 +- site/docs/es/hosting/vps.md | 2 +- site/docs/es/plugins/auto-retry.md | 2 +- site/docs/es/plugins/autoquote.md | 2 +- site/docs/es/plugins/console-time.md | 2 +- site/docs/es/plugins/conversations.md | 2 +- site/docs/es/plugins/emoji.md | 2 +- site/docs/es/plugins/files.md | 2 +- site/docs/es/plugins/fluent.md | 2 +- site/docs/es/plugins/hydrate.md | 2 +- site/docs/es/plugins/i18n.md | 2 +- site/docs/es/plugins/menu.md | 2 +- site/docs/es/plugins/middlewares.md | 2 +- site/docs/es/plugins/parse-mode.md | 2 +- site/docs/es/plugins/ratelimiter.md | 2 +- site/docs/es/plugins/router.md | 2 +- site/docs/es/plugins/runner.md | 2 +- site/docs/es/plugins/stateless-question.md | 2 +- site/docs/es/plugins/transformer-throttler.md | 2 +- site/docs/hosting/deno-deploy.md | 2 +- site/docs/hosting/heroku.md | 2 +- site/docs/hosting/supabase.md | 2 +- site/docs/hosting/vps.md | 2 +- site/docs/id/hosting/deno-deploy.md | 2 +- site/docs/id/hosting/heroku.md | 2 +- site/docs/id/hosting/supabase.md | 2 +- site/docs/id/hosting/vps.md | 2 +- site/docs/id/plugins/auto-retry.md | 2 +- site/docs/id/plugins/autoquote.md | 2 +- site/docs/id/plugins/console-time.md | 2 +- site/docs/id/plugins/conversations.md | 2 +- site/docs/id/plugins/emoji.md | 2 +- site/docs/id/plugins/files.md | 2 +- site/docs/id/plugins/fluent.md | 2 +- site/docs/id/plugins/hydrate.md | 2 +- site/docs/id/plugins/i18n.md | 2 +- site/docs/id/plugins/menu.md | 2 +- site/docs/id/plugins/middlewares.md | 2 +- site/docs/id/plugins/parse-mode.md | 2 +- site/docs/id/plugins/ratelimiter.md | 2 +- site/docs/id/plugins/router.md | 2 +- site/docs/id/plugins/runner.md | 2 +- site/docs/id/plugins/stateless-question.md | 2 +- site/docs/id/plugins/transformer-throttler.md | 2 +- site/docs/plugins/auto-retry.md | 2 +- site/docs/plugins/autoquote.md | 2 +- site/docs/plugins/console-time.md | 2 +- site/docs/plugins/conversations.md | 2 +- site/docs/plugins/emoji.md | 2 +- site/docs/plugins/files.md | 2 +- site/docs/plugins/fluent.md | 2 +- site/docs/plugins/hydrate.md | 2 +- site/docs/plugins/i18n.md | 2 +- site/docs/plugins/menu.md | 2 +- site/docs/plugins/middlewares.md | 2 +- site/docs/plugins/parse-mode.md | 2 +- site/docs/plugins/ratelimiter.md | 2 +- site/docs/plugins/router.md | 2 +- site/docs/plugins/runner.md | 2 +- site/docs/plugins/stateless-question.md | 2 +- site/docs/plugins/transformer-throttler.md | 2 +- site/docs/zh/hosting/deno-deploy.md | 2 +- site/docs/zh/hosting/heroku.md | 2 +- site/docs/zh/hosting/supabase.md | 2 +- site/docs/zh/hosting/vps.md | 2 +- site/docs/zh/plugins/auto-retry.md | 2 +- site/docs/zh/plugins/autoquote.md | 2 +- site/docs/zh/plugins/console-time.md | 2 +- site/docs/zh/plugins/conversations.md | 2 +- site/docs/zh/plugins/emoji.md | 2 +- site/docs/zh/plugins/files.md | 2 +- site/docs/zh/plugins/fluent.md | 2 +- site/docs/zh/plugins/hydrate.md | 2 +- site/docs/zh/plugins/i18n.md | 2 +- site/docs/zh/plugins/menu.md | 2 +- site/docs/zh/plugins/middlewares.md | 2 +- site/docs/zh/plugins/parse-mode.md | 2 +- site/docs/zh/plugins/ratelimiter.md | 2 +- site/docs/zh/plugins/router.md | 2 +- site/docs/zh/plugins/runner.md | 2 +- site/docs/zh/plugins/stateless-question.md | 2 +- site/docs/zh/plugins/transformer-throttler.md | 2 +- 84 files changed, 84 insertions(+), 84 deletions(-) diff --git a/site/docs/es/hosting/deno-deploy.md b/site/docs/es/hosting/deno-deploy.md index d301898e7..85ea27795 100644 --- a/site/docs/es/hosting/deno-deploy.md +++ b/site/docs/es/hosting/deno-deploy.md @@ -1,6 +1,6 @@ # Alojamiento: Deno Deploy -![Deno badge](/badges/deno.svg) + Esta guía le informa sobre las formas de alojar sus bots de grammY en [Deno Deploy](https://deno.com/deploy). diff --git a/site/docs/es/hosting/heroku.md b/site/docs/es/hosting/heroku.md index 8789f140a..fc8850df7 100644 --- a/site/docs/es/hosting/heroku.md +++ b/site/docs/es/hosting/heroku.md @@ -1,6 +1,6 @@ # Alojamiento: Heroku -![Deno badge](/badges/deno.svg) ![Node.js badge](/badges/nodejs.svg) + > Asumimos que tienes los conocimientos básicos sobre la creación de bots usando grammY. > Si aún no estás preparado, ¡no dudes en dirigirte a nuestra amigable [Guía](../guide)! :cohete: diff --git a/site/docs/es/hosting/supabase.md b/site/docs/es/hosting/supabase.md index 635ecc75e..95a3d8b62 100644 --- a/site/docs/es/hosting/supabase.md +++ b/site/docs/es/hosting/supabase.md @@ -1,6 +1,6 @@ # Hosting: Supabase Edge Functions -![Deno badge](/badges/deno.svg) + Esta guía te explica cómo puedes alojar tus bots de grammY en [Supabase](https://supabase.com/). diff --git a/site/docs/es/hosting/vps.md b/site/docs/es/hosting/vps.md index 956536720..cbf169500 100644 --- a/site/docs/es/hosting/vps.md +++ b/site/docs/es/hosting/vps.md @@ -1,6 +1,6 @@ # Alojamiento: VPS -![Deno badge](/badges/deno.svg) ![Node.js badge](/badges/nodejs.svg) + Un servidor virtual privado, mayormente conocido como VPS, es una máquina virtual que se ejecuta en la nube y cuyos usuarios tienen el control total de su sistema. diff --git a/site/docs/es/plugins/auto-retry.md b/site/docs/es/plugins/auto-retry.md index 6c9aefccb..10987b6cc 100644 --- a/site/docs/es/plugins/auto-retry.md +++ b/site/docs/es/plugins/auto-retry.md @@ -1,6 +1,6 @@ # Reintentar solicitudes de la API (`auto-retry`) -![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + > Considera usar el [plugin throttler](./transformer-throttler.md) en su lugar. diff --git a/site/docs/es/plugins/autoquote.md b/site/docs/es/plugins/autoquote.md index ea636843a..bba0a3002 100644 --- a/site/docs/es/plugins/autoquote.md +++ b/site/docs/es/plugins/autoquote.md @@ -1,6 +1,6 @@ # Responder siempre a los mensajes -![De Terceros](/badges/third-party-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + A veces es necesario enviar siempre los mensajes como respuestas, especialmente para los bots que están destinados a ser utilizados en grupos. Normalmente hacemos esto añadiendo el parámetro `reply_to_message_id` a los métodos que envían el mensaje: `sendText`, `reply`, `sendPhoto`, `replyWithPhoto` y otros. diff --git a/site/docs/es/plugins/console-time.md b/site/docs/es/plugins/console-time.md index c305ef30b..06282fc6e 100644 --- a/site/docs/es/plugins/console-time.md +++ b/site/docs/es/plugins/console-time.md @@ -1,6 +1,6 @@ # Registro en la consola mientras se depura -![De Terceros](/badges/third-party-es.svg) ![Node.js](/badges/nodejs.svg) + Si estás familiarizado con JavaScript / TypeScript probablemente hayas utilizado [`console.log`](https://developer.mozilla.org/en-US/docs/Web/API/Console/log) o [`console.time`](https://developer.mozilla.org/en-US/docs/Web/API/Console/time) para comprobar lo que está sucediendo mientras depuras algo. Mientras trabajas en tu bot o middleware puede que quieras comprobar algo similar: ¿Qué ha pasado y cuánto tiempo ha tardado? diff --git a/site/docs/es/plugins/conversations.md b/site/docs/es/plugins/conversations.md index ce2b355f6..1f58e29df 100644 --- a/site/docs/es/plugins/conversations.md +++ b/site/docs/es/plugins/conversations.md @@ -1,6 +1,6 @@ # Conversaciones (`conversations`) -![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Crea potentes interfaces conversacionales con facilidad. diff --git a/site/docs/es/plugins/emoji.md b/site/docs/es/plugins/emoji.md index b2a09316a..c4fb9f4af 100644 --- a/site/docs/es/plugins/emoji.md +++ b/site/docs/es/plugins/emoji.md @@ -1,6 +1,6 @@ # Plugin Emoji (`emoji`) -![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Con este plugin, puedes insertar fácilmente emojis en tus respuestas buscándolos en lugar de copiar y pegar manualmente un emoji de la web en tu código. diff --git a/site/docs/es/plugins/files.md b/site/docs/es/plugins/files.md index e89883bf2..68cd14930 100644 --- a/site/docs/es/plugins/files.md +++ b/site/docs/es/plugins/files.md @@ -1,6 +1,6 @@ # Manejo de archivos simplificado en grammY (`files`) -![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Este plugin te permite descargar fácilmente archivos de los servidores de Telegram, y obtener una URL para que puedas descargar el archivo tú mismo. diff --git a/site/docs/es/plugins/fluent.md b/site/docs/es/plugins/fluent.md index 43fd03247..0349f8c87 100644 --- a/site/docs/es/plugins/fluent.md +++ b/site/docs/es/plugins/fluent.md @@ -1,6 +1,6 @@ # Internacionalización con Fluent (`fluent`) -![Oficial](/badges/official-es.svg) ![Node.js](/badges/nodejs.svg) + [Fluent](https://projectfluent.org/) es un sistema de localización creado por la Fundación Mozilla para realizar traducciones naturales. Tiene una sintaxis muy potente y elegante que permite a cualquiera escribir traducciones eficientes y totalmente comprensibles. diff --git a/site/docs/es/plugins/hydrate.md b/site/docs/es/plugins/hydrate.md index 184f5e35a..682cf4d9c 100644 --- a/site/docs/es/plugins/hydrate.md +++ b/site/docs/es/plugins/hydrate.md @@ -1,6 +1,6 @@ # Plugin Hydration para grammY (`hydrate`) -![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Este plugin instala métodos útiles en dos tipos de objetos, a saber diff --git a/site/docs/es/plugins/i18n.md b/site/docs/es/plugins/i18n.md index 96f548d91..d3ba0c6f5 100644 --- a/site/docs/es/plugins/i18n.md +++ b/site/docs/es/plugins/i18n.md @@ -1,6 +1,6 @@ # Internacionalización (`i18n`) -![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + El plugin de internacionalización hace que tu bot hable varios idiomas. diff --git a/site/docs/es/plugins/menu.md b/site/docs/es/plugins/menu.md index 53d989de2..1deb4fb63 100644 --- a/site/docs/es/plugins/menu.md +++ b/site/docs/es/plugins/menu.md @@ -1,6 +1,6 @@ # Menús interactivos (`menu`) -![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Crea fácilmente menús interactivos. diff --git a/site/docs/es/plugins/middlewares.md b/site/docs/es/plugins/middlewares.md index 3168ce1f6..76497ce07 100644 --- a/site/docs/es/plugins/middlewares.md +++ b/site/docs/es/plugins/middlewares.md @@ -1,6 +1,6 @@ # Conjunto de middlewares útiles -![De Terceros](/badges/third-party-es.svg) ![Node.js](/badges/nodejs.svg) + Seguí reescribiendo los mismos middlewares una y otra vez para todos mis bots así que decidí extraerlos todos a un paquete separado. diff --git a/site/docs/es/plugins/parse-mode.md b/site/docs/es/plugins/parse-mode.md index c4b2efd44..cbbe10d79 100644 --- a/site/docs/es/plugins/parse-mode.md +++ b/site/docs/es/plugins/parse-mode.md @@ -1,6 +1,6 @@ # Parse Mode Plugin (`parse-mode`) -![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Este plugin proporciona un transformador para establecer el `parse_mode` por defecto, y un middleware para hidratar el `Context` con los métodos variantes familiares de `reply` - es decir, `replyWithHTML`, `replyWithMarkdown`, etc. diff --git a/site/docs/es/plugins/ratelimiter.md b/site/docs/es/plugins/ratelimiter.md index 0bac5f9cb..9227c8030 100644 --- a/site/docs/es/plugins/ratelimiter.md +++ b/site/docs/es/plugins/ratelimiter.md @@ -1,6 +1,6 @@ # Usuarios con límite de velocidad (`ratelimiter`) -![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + ratelimiter es un middleware de limitación de tasa para los bots de Telegram hechos con los frameworks de bots grammY o [Telegraf](https://github.com/telegraf/telegraf). En términos simples, es un plugin que te ayuda a desviar el spam pesado en tus bots. diff --git a/site/docs/es/plugins/router.md b/site/docs/es/plugins/router.md index de7bb17f7..efc67ac8c 100644 --- a/site/docs/es/plugins/router.md +++ b/site/docs/es/plugins/router.md @@ -1,6 +1,6 @@ # Router (`router`) -![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + La clase `Router` ([Referencia API](https://doc.deno.land/https://deno.land/x/grammy_router/router.ts)) proporciona una forma de estructurar tu bot enrutando objetos de contexto a diferentes partes de tu código. Es una versión más sofisticada de `bot.route` en `Composer` ([grammY API Reference](https://doc.deno.land/https://deno.land/x/grammy/mod.ts/~/Composer#route)). diff --git a/site/docs/es/plugins/runner.md b/site/docs/es/plugins/runner.md index abe8b5ca4..dd6783f70 100644 --- a/site/docs/es/plugins/runner.md +++ b/site/docs/es/plugins/runner.md @@ -1,6 +1,6 @@ # Concurrencia con grammY runner (`runner`) -![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Este paquete se puede utilizar si ejecutas tu bot [usando long polling](../guide/deployment-types.md), y quieres que los mensajes se procesen concurrentemente. diff --git a/site/docs/es/plugins/stateless-question.md b/site/docs/es/plugins/stateless-question.md index 0c5e28e86..d16e60dda 100644 --- a/site/docs/es/plugins/stateless-question.md +++ b/site/docs/es/plugins/stateless-question.md @@ -1,6 +1,6 @@ # Pregunta sin estado (`stateless-question`) -![Oficial](/badges/official-es.svg) ![Node.js](/badges/nodejs.svg) + > Crear preguntas sin estado a los usuarios de Telegram que trabajan en modo de privacidad diff --git a/site/docs/es/plugins/transformer-throttler.md b/site/docs/es/plugins/transformer-throttler.md index 30c9f1cfc..a8062e565 100644 --- a/site/docs/es/plugins/transformer-throttler.md +++ b/site/docs/es/plugins/transformer-throttler.md @@ -1,6 +1,6 @@ # Flood Control (`transformer-throttler`) -![Oficial](/badges/official-es.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Este plugin pone en cola la instancia de solicitudes de API salientes a través de [Bottleneck](https://github.com/SGrondin/bottleneck) para evitar que su bot alcance los [límites de velocidad](https://core.telegram.org/bots/faq#my-bot-is-hitting-limits-how-do-i-avoid-this) como se describe en [esta sección avanzada](../advanced/flood.md) de la documentación. diff --git a/site/docs/hosting/deno-deploy.md b/site/docs/hosting/deno-deploy.md index 4bc360ec5..06437582c 100644 --- a/site/docs/hosting/deno-deploy.md +++ b/site/docs/hosting/deno-deploy.md @@ -1,6 +1,6 @@ # Hosting: Deno Deploy -![Deno badge](/badges/deno.svg) + This guide tells you about the ways you can host your grammY bots on [Deno Deploy](https://deno.com/deploy). diff --git a/site/docs/hosting/heroku.md b/site/docs/hosting/heroku.md index e7cf27cd2..5a357b07c 100644 --- a/site/docs/hosting/heroku.md +++ b/site/docs/hosting/heroku.md @@ -1,6 +1,6 @@ # Hosting: Heroku -![Deno badge](/badges/deno.svg) ![Node.js badge](/badges/nodejs.svg) + > We assume that you have the basic knowledge about creating bots using grammY. > If you are not ready yet, don't hesitate to head over to our friendly [Guide](../guide)! :rocket: diff --git a/site/docs/hosting/supabase.md b/site/docs/hosting/supabase.md index 408863a1d..ff16e653b 100644 --- a/site/docs/hosting/supabase.md +++ b/site/docs/hosting/supabase.md @@ -1,6 +1,6 @@ # Hosting: Supabase Edge Functions -![Deno badge](/badges/deno.svg) + This guide tells you how you can host your grammY bots on [Supabase](https://supabase.com/). diff --git a/site/docs/hosting/vps.md b/site/docs/hosting/vps.md index f0d740f51..73909c522 100644 --- a/site/docs/hosting/vps.md +++ b/site/docs/hosting/vps.md @@ -1,6 +1,6 @@ # Hosting: VPS -![Deno badge](/badges/deno.svg) ![Node.js badge](/badges/nodejs.svg) + A virtual private server, mostly known as VPS, is a virtual machine running in the cloud with its users having the full control of its system. diff --git a/site/docs/id/hosting/deno-deploy.md b/site/docs/id/hosting/deno-deploy.md index 2ac8894c7..fc525ef21 100644 --- a/site/docs/id/hosting/deno-deploy.md +++ b/site/docs/id/hosting/deno-deploy.md @@ -1,6 +1,6 @@ # Hosting: Deno Deploy -![Deno badge](/badges/deno.svg) + Halaman ini berisi panduan mengenai cara-cara meng-hosting bot di [Deno Deploy](https://deno.com/deploy). diff --git a/site/docs/id/hosting/heroku.md b/site/docs/id/hosting/heroku.md index 107660691..0eec51780 100644 --- a/site/docs/id/hosting/heroku.md +++ b/site/docs/id/hosting/heroku.md @@ -1,6 +1,6 @@ # Hosting: Heroku -![Deno badge](/badges/deno.svg) ![Node.js badge](/badges/nodejs.svg) + > Kami mengasumsikan bahwa kamu sudah memiliki pengetahuan dasar dalam membuat sebuah bot menggunakan grammY. > Jika belum, silahkan baca [panduan](../guide) yang telah kami buat dengan sepenuh hati! :heart: diff --git a/site/docs/id/hosting/supabase.md b/site/docs/id/hosting/supabase.md index 49bc22b6b..aa9bd738d 100644 --- a/site/docs/id/hosting/supabase.md +++ b/site/docs/id/hosting/supabase.md @@ -1,6 +1,6 @@ # Hosting: Supabase Edge Functions -![Deno badge](/badges/deno.svg) + Halaman ini berisi panduan mengenai langkah-langkah meng-hosting bot grammY di [Supabase](https://supabase.com/). diff --git a/site/docs/id/hosting/vps.md b/site/docs/id/hosting/vps.md index ebe737d9d..499a10d95 100644 --- a/site/docs/id/hosting/vps.md +++ b/site/docs/id/hosting/vps.md @@ -1,6 +1,6 @@ # Hosting: VPS -![Deno badge](/badges/deno.svg) ![Node.js badge](/badges/nodejs.svg) + Virtual Private Server, atau biasa dikenal dengan VPS, adalah sebuah perangkat virtual yang berjalan di cloud, dimana pemiliknya memiliki kendali penuh atas perangkat tersebut. diff --git a/site/docs/id/plugins/auto-retry.md b/site/docs/id/plugins/auto-retry.md index 6a4129a51..1b1335f70 100644 --- a/site/docs/id/plugins/auto-retry.md +++ b/site/docs/id/plugins/auto-retry.md @@ -1,6 +1,6 @@ # Pengulang Request API (`auto-retry`) -![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + > Pertimbangkan untuk menggunakan [plugin throttler](./transformer-throttler.md) alih-alih menggunakan plugin ini. diff --git a/site/docs/id/plugins/autoquote.md b/site/docs/id/plugins/autoquote.md index 297a94f74..95efe1faa 100644 --- a/site/docs/id/plugins/autoquote.md +++ b/site/docs/id/plugins/autoquote.md @@ -1,6 +1,6 @@ # Selalu Reply Pesan -![Pihak Ketiga](/badges/third-party-id.svg) ![Deno badge](/badges/deno.svg) ![Node.js badge](/badges/nodejs.svg) + > Catatan terjemahan: Kami membedakan istilah `balas` dengan `reply` agar tidak rancu. > Balas berarti membalas chat seperti pada umumnya. diff --git a/site/docs/id/plugins/console-time.md b/site/docs/id/plugins/console-time.md index dbfe81561..875ed7944 100644 --- a/site/docs/id/plugins/console-time.md +++ b/site/docs/id/plugins/console-time.md @@ -1,6 +1,6 @@ # Menggunakan Console Log untuk Men-debug -![Pihak Ketiga](/badges/third-party-id.svg) ![Node.js](/badges/nodejs.svg) + Jika kamu sudah terbiasa dengan JavaScript/TypeScript, kemungkinan besar kamu sering menggunakan [`console.log`](https://developer.mozilla.org/en-US/docs/Web/API/Console/log) atau [`console.time`](https://developer.mozilla.org/en-US/docs/Web/API/Console/time) untuk men-debug suatu program. Ketika bekerja dengan sebuah bot atau middleware, kamu mungkin juga perlu untuk melakukan hal yang serupa: Apa yang sebenarnya terjadi, dan berapa lama waktu yang dibutuhkan? diff --git a/site/docs/id/plugins/conversations.md b/site/docs/id/plugins/conversations.md index 9c00b1208..1cdc03381 100644 --- a/site/docs/id/plugins/conversations.md +++ b/site/docs/id/plugins/conversations.md @@ -1,6 +1,6 @@ # Percakapan (`conversations`) -![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Membuat interaksi percakapan dengan mudah. diff --git a/site/docs/id/plugins/emoji.md b/site/docs/id/plugins/emoji.md index 7ff4032f9..9401007a5 100644 --- a/site/docs/id/plugins/emoji.md +++ b/site/docs/id/plugins/emoji.md @@ -1,6 +1,6 @@ # Plugin Emoji (`emoji`) -![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Dengan plugin ini, kamu bisa menambahkan emoji secara otomatis di pesan balasanmu tanpa perlu bolak-balik copy-paste emoji dari web ke kode kamu. diff --git a/site/docs/id/plugins/files.md b/site/docs/id/plugins/files.md index 84c49f419..f5a1a031a 100644 --- a/site/docs/id/plugins/files.md +++ b/site/docs/id/plugins/files.md @@ -1,6 +1,6 @@ # Menangani File dengan Mudah di grammY (`files`) -![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Plugin ini memudahkan kamu untuk mengunduh file dari server Telegram dan memperoleh URL-nya agar kamu dapat mengunduh file tersebut secara mandiri. diff --git a/site/docs/id/plugins/fluent.md b/site/docs/id/plugins/fluent.md index 3db6f116a..1504e66a5 100644 --- a/site/docs/id/plugins/fluent.md +++ b/site/docs/id/plugins/fluent.md @@ -1,6 +1,6 @@ # Internasionalisasi dengan Fluent (`fluent`) -![Resmi](/badges/official-id.svg) ![Node.js](/badges/nodejs.svg) + [Fluent](https://projectfluent.org/) adalah sebuah sistem penerjemah bahasa yang dibuat oleh Mozilla Foundation dengan tujuan supaya hasil terjemahan terdengar lebih natural. Ia memiliki sebuah syntax yang canggih dan elegan, sehingga memungkinkan siapa pun dapat menerjemah secara efisien serta bisa dipahami dengan baik. diff --git a/site/docs/id/plugins/hydrate.md b/site/docs/id/plugins/hydrate.md index 7aa774d93..05663c9fd 100644 --- a/site/docs/id/plugins/hydrate.md +++ b/site/docs/id/plugins/hydrate.md @@ -1,6 +1,6 @@ # Plugin Hidrasi untuk grammY (`hydrate`) -![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Plugin ini akan menginstal method-method yang berguna di dua macam object, yaitu diff --git a/site/docs/id/plugins/i18n.md b/site/docs/id/plugins/i18n.md index fe81bd395..dc6d9c0bd 100644 --- a/site/docs/id/plugins/i18n.md +++ b/site/docs/id/plugins/i18n.md @@ -1,6 +1,6 @@ # Internationalization (`i18n`) -![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Plugin internationalization bisa membuat bot kamu berbicara dalam berbagai macam bahasa. diff --git a/site/docs/id/plugins/menu.md b/site/docs/id/plugins/menu.md index edd3a78fa..8e3ca50d3 100644 --- a/site/docs/id/plugins/menu.md +++ b/site/docs/id/plugins/menu.md @@ -1,6 +1,6 @@ # Menu Interaktif (`menu`) -![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Membuat menu interaktif dengan mudah. diff --git a/site/docs/id/plugins/middlewares.md b/site/docs/id/plugins/middlewares.md index 99e3d170e..2701272a0 100644 --- a/site/docs/id/plugins/middlewares.md +++ b/site/docs/id/plugins/middlewares.md @@ -1,6 +1,6 @@ # Kumpulan Middleware yang Berguna -![Pihak Ketiga](/badges/third-party-id.svg) ![Node.js](/badges/nodejs.svg) + Capek menulis middleware yang sama berulang kali? Yup, begitu juga dengan kami. diff --git a/site/docs/id/plugins/parse-mode.md b/site/docs/id/plugins/parse-mode.md index 8f5f91ac3..8cce48be9 100644 --- a/site/docs/id/plugins/parse-mode.md +++ b/site/docs/id/plugins/parse-mode.md @@ -1,6 +1,6 @@ # Plugin Parse Mode (`parse-mode`) -![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Plugin ini menyediakan sebuah transformer untuk mengatur setting-an bawaan `parse_mode` dan sebuah middleware untuk menghidrasi `Context` dengan varian method `reply` yang lebih familiar, contohnya: `replyWithHTML`, `replyWithMarkdown`, dll. diff --git a/site/docs/id/plugins/ratelimiter.md b/site/docs/id/plugins/ratelimiter.md index 79ae0ec10..0ff5cf398 100644 --- a/site/docs/id/plugins/ratelimiter.md +++ b/site/docs/id/plugins/ratelimiter.md @@ -1,6 +1,6 @@ # Rate Limit Pengguna (`ratelimiter`) -![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + ratelimiter adalah sebuah middleware yang dibuat dari framework bot grammY ataupun [Telegraf](https://github.com/telegraf/telegraf) yang berfungsi untuk mengatur rate-limit pengguna bot. Simpelnya, plugin ini dapat membantu kamu dalam mencegah serangan spam ke bot. diff --git a/site/docs/id/plugins/router.md b/site/docs/id/plugins/router.md index 25028678c..1523df09d 100644 --- a/site/docs/id/plugins/router.md +++ b/site/docs/id/plugins/router.md @@ -1,6 +1,6 @@ # Router (`router`) -![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Class `Router` ([Referensi API](https://doc.deno.land/https://deno.land/x/grammy_router/router.ts)) berfungsi untuk mengatur rute suatu object context ke berbagai tempat di kode kamu. Plugin ini serupa dengan `bot.route` di `Composer` ([grammY API Reference](https://doc.deno.land/https://deno.land/x/grammy/mod.ts/~/Composer#route)), namun ia jauh lebih canggih. diff --git a/site/docs/id/plugins/runner.md b/site/docs/id/plugins/runner.md index 7badd9e63..2e04c5075 100644 --- a/site/docs/id/plugins/runner.md +++ b/site/docs/id/plugins/runner.md @@ -1,6 +1,6 @@ # Concurrency Menggunakan grammY runner (`runner`) -![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Plugin ini dapat digunakan untuk memproses berbagai pesan secara bersamaan ketika bot dijalankan [menggunakan long polling](../guide/deployment-types.md). diff --git a/site/docs/id/plugins/stateless-question.md b/site/docs/id/plugins/stateless-question.md index 67053b074..80e27c39e 100644 --- a/site/docs/id/plugins/stateless-question.md +++ b/site/docs/id/plugins/stateless-question.md @@ -1,6 +1,6 @@ # Stateless Question (`stateless-question`) -![Resmi](/badges/official-id.svg) ![Node.js](/badges/nodejs.svg) + > Membuat stateless question di mode privasi diff --git a/site/docs/id/plugins/transformer-throttler.md b/site/docs/id/plugins/transformer-throttler.md index 1834b6566..a212f7199 100644 --- a/site/docs/id/plugins/transformer-throttler.md +++ b/site/docs/id/plugins/transformer-throttler.md @@ -1,6 +1,6 @@ # Kontrol Flood (`transformer-throttler`) -![Resmi](/badges/official-id.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Plugin ini menjaga bot kamu agar terhindar dari [rate limit](https://core.telegram.org/bots/faq#my-bot-is-hitting-limits-how-do-i-avoid-this)---lihat [materi tingkat lanjut berikut](../advanced/flood.md)---dengan cara membuat daftar antrian API request yang keluar menggunakan [Bottleneck](https://github.com/SGrondin/bottleneck). diff --git a/site/docs/plugins/auto-retry.md b/site/docs/plugins/auto-retry.md index 5fc504a1c..20ad91de8 100644 --- a/site/docs/plugins/auto-retry.md +++ b/site/docs/plugins/auto-retry.md @@ -1,6 +1,6 @@ # Retry API Requests (`auto-retry`) -![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + > Consider using the [throttler plugin](./transformer-throttler.md) instead. diff --git a/site/docs/plugins/autoquote.md b/site/docs/plugins/autoquote.md index 931044f83..5d0b73352 100644 --- a/site/docs/plugins/autoquote.md +++ b/site/docs/plugins/autoquote.md @@ -1,6 +1,6 @@ # Always Replying to Messages -![Third-party](/badges/third-party.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + It is sometimes necessary to always send messages as replies, especially for bots that are meant to be used in groups. We usually do this by adding the `reply_to_message_id` parameter to the methods that send the message: `sendText`, `reply`, `sendPhoto`, `replyWithPhoto` and etc. diff --git a/site/docs/plugins/console-time.md b/site/docs/plugins/console-time.md index a8b7bbbea..4bc14f2c4 100644 --- a/site/docs/plugins/console-time.md +++ b/site/docs/plugins/console-time.md @@ -1,6 +1,6 @@ # Console Logging While Debugging -![Third-party](/badges/third-party.svg) ![Node.js](/badges/nodejs.svg) + If you are familiar with JavaScript/TypeScript you probably used [`console.log`](https://developer.mozilla.org/en-US/docs/Web/API/Console/log) or [`console.time`](https://developer.mozilla.org/en-US/docs/Web/API/Console/time) to check what is happening while debugging something. While working on your bot or middleware you might want to check something similar: What happened, and how long took it? diff --git a/site/docs/plugins/conversations.md b/site/docs/plugins/conversations.md index 0f07e9ec6..c716d815a 100644 --- a/site/docs/plugins/conversations.md +++ b/site/docs/plugins/conversations.md @@ -1,6 +1,6 @@ # Conversations (`conversations`) -![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Create powerful conversational interfaces with ease. diff --git a/site/docs/plugins/emoji.md b/site/docs/plugins/emoji.md index dbc368bb5..1302d37ad 100644 --- a/site/docs/plugins/emoji.md +++ b/site/docs/plugins/emoji.md @@ -1,6 +1,6 @@ # Emoji Plugin (`emoji`) -![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + With this plugin, you can easily insert emojis on your replies searching for them instead of manually copying and pasting an emoji from web at your code. diff --git a/site/docs/plugins/files.md b/site/docs/plugins/files.md index eefce4ae2..51fa1e9a8 100644 --- a/site/docs/plugins/files.md +++ b/site/docs/plugins/files.md @@ -1,6 +1,6 @@ # File Handling Simplified in grammY (`files`) -![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + This plugin allows you to easily download files from Telegram servers, and to obtain a URL so you can download the file yourself. diff --git a/site/docs/plugins/fluent.md b/site/docs/plugins/fluent.md index b5a51ada3..070fbd8bf 100644 --- a/site/docs/plugins/fluent.md +++ b/site/docs/plugins/fluent.md @@ -1,6 +1,6 @@ # Internationalization with Fluent (`fluent`) -![Official](/badges/official.svg) ![Node.js](/badges/nodejs.svg) + [Fluent](https://projectfluent.org/) is a localization system made by the Mozilla Foundation for natural-sounding translations. It has a very powerful and elegant syntax that lets anyone write efficient and fully-understandable translations. diff --git a/site/docs/plugins/hydrate.md b/site/docs/plugins/hydrate.md index 2943be96a..4271f9ea6 100644 --- a/site/docs/plugins/hydrate.md +++ b/site/docs/plugins/hydrate.md @@ -1,6 +1,6 @@ # Hydration Plugin for grammY (`hydrate`) -![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + This plugin installs useful methods on two types of objects, namely diff --git a/site/docs/plugins/i18n.md b/site/docs/plugins/i18n.md index ef25738a4..b97b717b8 100644 --- a/site/docs/plugins/i18n.md +++ b/site/docs/plugins/i18n.md @@ -1,6 +1,6 @@ # Internationalization (`i18n`) -![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + The internationalization plugin makes your bot speak multiple languages. diff --git a/site/docs/plugins/menu.md b/site/docs/plugins/menu.md index 0ecc07628..6f4db9307 100644 --- a/site/docs/plugins/menu.md +++ b/site/docs/plugins/menu.md @@ -1,6 +1,6 @@ # Interactive Menus (`menu`) -![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + Easily create interactive menus. diff --git a/site/docs/plugins/middlewares.md b/site/docs/plugins/middlewares.md index 63d9cd788..c6400eff2 100644 --- a/site/docs/plugins/middlewares.md +++ b/site/docs/plugins/middlewares.md @@ -1,6 +1,6 @@ # Set of useful middlewares -![Third-party](/badges/third-party.svg) ![Node.js](/badges/nodejs.svg) + I kept rewriting the same middlewares again and again for all of my bots so I decided to extract them all to a separate package. diff --git a/site/docs/plugins/parse-mode.md b/site/docs/plugins/parse-mode.md index 37368e5f9..8436946e6 100644 --- a/site/docs/plugins/parse-mode.md +++ b/site/docs/plugins/parse-mode.md @@ -1,6 +1,6 @@ # Parse Mode Plugin (`parse-mode`) -![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + This plugin provides a transformer for setting default `parse_mode`, and a middleware for hydrating `Context` with familiar `reply` variant methods - i.e. `replyWithHTML`, `replyWithMarkdown`, etc. diff --git a/site/docs/plugins/ratelimiter.md b/site/docs/plugins/ratelimiter.md index 521f7cc8e..137326f2b 100644 --- a/site/docs/plugins/ratelimiter.md +++ b/site/docs/plugins/ratelimiter.md @@ -1,6 +1,6 @@ # Rate Limit Users (`ratelimiter`) -![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + ratelimiter is a rate-limiting middleware for Telegram bots made with grammY or [Telegraf](https://github.com/telegraf/telegraf) bot frameworks. In simple terms, it is a plugin that helps you deflect heavy spamming in your bots. diff --git a/site/docs/plugins/router.md b/site/docs/plugins/router.md index 8c47bb8ec..ffb8b1123 100644 --- a/site/docs/plugins/router.md +++ b/site/docs/plugins/router.md @@ -1,6 +1,6 @@ # Router (`router`) -![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + The `Router` class ([API Reference](https://doc.deno.land/https://deno.land/x/grammy_router/router.ts)) provides a way to structure your bot by routing context objects to different parts of your code. It is a more sophisticated version of `bot.route` on `Composer` ([grammY API Reference](https://doc.deno.land/https://deno.land/x/grammy/mod.ts/~/Composer#route)). diff --git a/site/docs/plugins/runner.md b/site/docs/plugins/runner.md index dbf90240a..db5600dd2 100644 --- a/site/docs/plugins/runner.md +++ b/site/docs/plugins/runner.md @@ -1,6 +1,6 @@ # Concurrency With grammY runner (`runner`) -![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + This package can be used if you run your bot [using long polling](../guide/deployment-types.md), and you want messages to be processed concurrently. diff --git a/site/docs/plugins/stateless-question.md b/site/docs/plugins/stateless-question.md index a03a5442f..7e94724d0 100644 --- a/site/docs/plugins/stateless-question.md +++ b/site/docs/plugins/stateless-question.md @@ -1,6 +1,6 @@ # Stateless Question (`stateless-question`) -![Official](/badges/official.svg) ![Node.js](/badges/nodejs.svg) + > Create stateless questions to Telegram users working in privacy mode diff --git a/site/docs/plugins/transformer-throttler.md b/site/docs/plugins/transformer-throttler.md index fb21f73a9..cc37ebd94 100644 --- a/site/docs/plugins/transformer-throttler.md +++ b/site/docs/plugins/transformer-throttler.md @@ -1,6 +1,6 @@ # Flood Control (`transformer-throttler`) -![Official](/badges/official.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + This plugin enqueues outgoing API requests instance via [Bottleneck](https://github.com/SGrondin/bottleneck) in order to prevent your bot from hitting [rate limits](https://core.telegram.org/bots/faq#my-bot-is-hitting-limits-how-do-i-avoid-this) as described in [this advanced section](../advanced/flood.md) of the documentation. diff --git a/site/docs/zh/hosting/deno-deploy.md b/site/docs/zh/hosting/deno-deploy.md index a370949e5..8d199562b 100644 --- a/site/docs/zh/hosting/deno-deploy.md +++ b/site/docs/zh/hosting/deno-deploy.md @@ -1,6 +1,6 @@ # 托管:Deno Deploy -![Deno badge](/badges/deno.svg) + 这个指南告诉你如何将你的 grammY bots 托管到 [Deno Deploy](https://deno.com/deploy). diff --git a/site/docs/zh/hosting/heroku.md b/site/docs/zh/hosting/heroku.md index d4042468f..220044efc 100644 --- a/site/docs/zh/hosting/heroku.md +++ b/site/docs/zh/hosting/heroku.md @@ -1,6 +1,6 @@ # 托管:Heroku -![Deno badge](/badges/deno.svg) ![Node.js badge](/badges/nodejs.svg) + > 我们假设你有关于如何使用 grammY 创建 bot 的基本知识。 > 如果你还没有准备好,不要犹豫,请查看我们十分友好的 [指南](../guide) ! :rocket: diff --git a/site/docs/zh/hosting/supabase.md b/site/docs/zh/hosting/supabase.md index 0b58487b5..746d476fb 100644 --- a/site/docs/zh/hosting/supabase.md +++ b/site/docs/zh/hosting/supabase.md @@ -1,6 +1,6 @@ # 托管:Supabase Edge Functions -![Deno badge](/badges/deno.svg) + 这个指南告诉你如何将你的 grammY bots 托管到 [Supabase](https://supabase.com/). diff --git a/site/docs/zh/hosting/vps.md b/site/docs/zh/hosting/vps.md index 84a6be2af..82be5c165 100644 --- a/site/docs/zh/hosting/vps.md +++ b/site/docs/zh/hosting/vps.md @@ -1,6 +1,6 @@ # 托管: VPS -![Deno badge](/badges/deno.svg) ![Node.js badge](/badges/nodejs.svg) + 虚拟私人服务器,大多数时候被称为 VPS,是在云中运行的虚拟机,用户拥有其系统的完整控制权。 diff --git a/site/docs/zh/plugins/auto-retry.md b/site/docs/zh/plugins/auto-retry.md index b1e2574a1..f56ec92b7 100644 --- a/site/docs/zh/plugins/auto-retry.md +++ b/site/docs/zh/plugins/auto-retry.md @@ -1,6 +1,6 @@ # 重试 API 请求(`auto-retry`) -![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + > 请考虑使用 [流量控制插件](./transformer-throttler.md) 替代。 diff --git a/site/docs/zh/plugins/autoquote.md b/site/docs/zh/plugins/autoquote.md index a1d5c097a..9e548627a 100644 --- a/site/docs/zh/plugins/autoquote.md +++ b/site/docs/zh/plugins/autoquote.md @@ -1,6 +1,6 @@ # 总是回复消息 -![第三方](/badges/third-party-zh.svg) ![Deno badge](/badges/deno.svg) ![Node.js badge](/badges/nodejs.svg) + 有时候有必要总是将消息作为回复发送,特别是对于那些打算要在群组中使用的 bot。 我们通常通过在发送消息的方法中添加 `reply_to_message_id` 参数来实现这一点:`sendText`, `reply`, `sendPhoto`, `replyWithPhoto` 等等。 diff --git a/site/docs/zh/plugins/console-time.md b/site/docs/zh/plugins/console-time.md index 514909df8..7fbbe0ec3 100644 --- a/site/docs/zh/plugins/console-time.md +++ b/site/docs/zh/plugins/console-time.md @@ -1,6 +1,6 @@ # 调试时输出日志 -![第三方](/badges/third-party-zh.svg) ![Node.js badge](/badges/nodejs.svg) + 如果你熟悉 JavaScript / TypeScript,你可能使用 [`console.log`](https://developer.mozilla.org/en-US/docs/Web/API/Console/log) 或 [`console.time`](https://developer.mozilla.org/en-US/docs/Web/API/Console/time) 来检查你正在调试的事情。 当你在你的 bot 或中间件中工作时,你可能想要检查一个类似的事情:发生了什么,花了多少时间? diff --git a/site/docs/zh/plugins/conversations.md b/site/docs/zh/plugins/conversations.md index 375479b2e..7d662b697 100644 --- a/site/docs/zh/plugins/conversations.md +++ b/site/docs/zh/plugins/conversations.md @@ -1,6 +1,6 @@ # 对话 (`conversations`) -![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + 轻松创建强大的对话界面。 diff --git a/site/docs/zh/plugins/emoji.md b/site/docs/zh/plugins/emoji.md index 039f5ce11..b5a715eee 100644 --- a/site/docs/zh/plugins/emoji.md +++ b/site/docs/zh/plugins/emoji.md @@ -1,6 +1,6 @@ # Emoji 插件(`emoji`) -![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + 有了这个插件,你可以轻松地在你的回复中插入搜索到的 emoji,而不是在你的代码中手动复制和粘贴网络上的一个 emoji。 diff --git a/site/docs/zh/plugins/files.md b/site/docs/zh/plugins/files.md index 3f9ee04f6..76672bf60 100644 --- a/site/docs/zh/plugins/files.md +++ b/site/docs/zh/plugins/files.md @@ -1,6 +1,6 @@ # 文件助手(`files`) -![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + 这个插件允许你轻松地从 Telegram 服务器下载文件,并且获取一个URL,以便你自己下载文件。 diff --git a/site/docs/zh/plugins/fluent.md b/site/docs/zh/plugins/fluent.md index 846822381..6c0d964d1 100644 --- a/site/docs/zh/plugins/fluent.md +++ b/site/docs/zh/plugins/fluent.md @@ -1,6 +1,6 @@ # 使用 Fluent 进行国际化 (`fluent`) -![官方维护](/badges/official-zh.svg) ![Node.js](/badges/nodejs.svg) + [Fluent](https://projectfluent.org/) 是 Mozilla 基金会制作的一个本地化系统,用于自然发音的翻译。 它有一个非常强大和优雅的语法,可以让任何人写出高效和完全可理解的翻译。 diff --git a/site/docs/zh/plugins/hydrate.md b/site/docs/zh/plugins/hydrate.md index 32179249e..53ec25b08 100644 --- a/site/docs/zh/plugins/hydrate.md +++ b/site/docs/zh/plugins/hydrate.md @@ -1,6 +1,6 @@ # Hydration(`hydrate`) -![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + 这个插件会安装一些有用的方法在两种类型的对象,即 diff --git a/site/docs/zh/plugins/i18n.md b/site/docs/zh/plugins/i18n.md index df572c903..fdedd1cf5 100644 --- a/site/docs/zh/plugins/i18n.md +++ b/site/docs/zh/plugins/i18n.md @@ -1,6 +1,6 @@ # 国际化 (`i18n`) -![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + 这个国际化插件可以让你的 bot 使用多种不同的语言。 diff --git a/site/docs/zh/plugins/menu.md b/site/docs/zh/plugins/menu.md index e8641111e..cafed4c2b 100644 --- a/site/docs/zh/plugins/menu.md +++ b/site/docs/zh/plugins/menu.md @@ -1,6 +1,6 @@ # 互动菜单 (`menu`) -![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + 轻松地创建一个互动菜单。 diff --git a/site/docs/zh/plugins/middlewares.md b/site/docs/zh/plugins/middlewares.md index 5ac3b4f3b..353497925 100644 --- a/site/docs/zh/plugins/middlewares.md +++ b/site/docs/zh/plugins/middlewares.md @@ -1,6 +1,6 @@ # 一套有用的中间件 -![第三方](/badges/third-party-zh.svg) ![Node.js badge](/badges/nodejs.svg) + 我一直在为我所有的 bot 写重复的中间件,所以我决定把它们全部提取到一个单独的包中。 diff --git a/site/docs/zh/plugins/parse-mode.md b/site/docs/zh/plugins/parse-mode.md index d31bf78c7..e6e3d968b 100644 --- a/site/docs/zh/plugins/parse-mode.md +++ b/site/docs/zh/plugins/parse-mode.md @@ -1,6 +1,6 @@ # 解析模式(`parse-mode`) -![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + 这个插件提供了一个设置默认的 `parse_mode` 的 transformer,以及一个中间件,用于将 `Context` 中的 `reply` 方法转换成常用的 `replyWithHTML`,`replyWithMarkdown`,等等方法。 diff --git a/site/docs/zh/plugins/ratelimiter.md b/site/docs/zh/plugins/ratelimiter.md index 7cd7f3e61..015c690e7 100644 --- a/site/docs/zh/plugins/ratelimiter.md +++ b/site/docs/zh/plugins/ratelimiter.md @@ -1,6 +1,6 @@ # 限制用户速率 (`ratelimiter`) -![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + ratelimiter 是用 grammY 或 [Telegraf](https://github.com/telegraf/telegraf) bot 框架制作的一个限速中间件。简单来说,它是一个帮助你的 bot 阻塞垃圾信息的插件。要更好地理解 ratelimiter,你可以看下面的图示: diff --git a/site/docs/zh/plugins/router.md b/site/docs/zh/plugins/router.md index 6887fac2e..92307336c 100644 --- a/site/docs/zh/plugins/router.md +++ b/site/docs/zh/plugins/router.md @@ -1,6 +1,6 @@ # 路由器(`router`) -![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + `Router` 类([API 参考](https://doc.deno.land/https://deno.land/x/grammy_router/router.ts))提供了一种更为灵活的方式来结构化你的 bot,通过路由上下文对象到不同的部分代码。 它是 `Composer` 的 `bot.route` 的更高级版本([grammY API 参考](https://doc.deno.land/https://deno.land/x/grammy/mod.ts/~/Composer#route))。 diff --git a/site/docs/zh/plugins/runner.md b/site/docs/zh/plugins/runner.md index e3c419862..e97d74eb3 100644 --- a/site/docs/zh/plugins/runner.md +++ b/site/docs/zh/plugins/runner.md @@ -1,6 +1,6 @@ # 并发 (`runner`) -![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + 如果你使用 [长轮询](../guide/deployment-types.md) 的方式运行你的机器人,你可以使用这个包来并发处理消息。 diff --git a/site/docs/zh/plugins/stateless-question.md b/site/docs/zh/plugins/stateless-question.md index 4b4f51f11..a5e0918ef 100644 --- a/site/docs/zh/plugins/stateless-question.md +++ b/site/docs/zh/plugins/stateless-question.md @@ -1,6 +1,6 @@ # 无状态问题 (`stateless-question`) -![官方维护](/badges/official-zh.svg) ![Node.js](/badges/nodejs.svg) + > 向隐私模式下的 Telegram 用户创建无状态问题 diff --git a/site/docs/zh/plugins/transformer-throttler.md b/site/docs/zh/plugins/transformer-throttler.md index a510f79a2..9314473c3 100644 --- a/site/docs/zh/plugins/transformer-throttler.md +++ b/site/docs/zh/plugins/transformer-throttler.md @@ -1,6 +1,6 @@ # 流量控制(`transformer-throttler`) -![官方维护](/badges/official-zh.svg) ![Deno](/badges/deno.svg) ![Node.js](/badges/nodejs.svg) + 这个插件通过 [Bottleneck](https://github.com/SGrondin/bottleneck) 对传出的 API 请求实例进行排队,以防止你的 bot 被 [限流](https://core.telegram.org/bots/faq#my-bot-is-hitting-limits-how-do-i-avoid-this),正如在 [这个高级部分](../advanced/flood.md) 的文档中描述的那样。 From c6df756c8d35774db40ab701aa37513a85cc2651 Mon Sep 17 00:00:00 2001 From: Ciki Momogi Date: Sat, 24 Sep 2022 18:55:22 +0700 Subject: [PATCH 07/31] Update tag * Add tagGroup * Add several options --- .vscode/settings.json | 4 +- site/docs/.vuepress/components/Tag.vue | 220 ++++++++++++++++-- site/docs/.vuepress/components/TagGroup.vue | 44 ++++ site/docs/.vuepress/public/badges/deno.svg | 1 - site/docs/.vuepress/public/badges/nodejs.svg | 1 - .../.vuepress/public/badges/official-es.svg | 1 - .../.vuepress/public/badges/official-id.svg | 1 - .../.vuepress/public/badges/official-zh.svg | 1 - .../docs/.vuepress/public/badges/official.svg | 1 - .../public/badges/third-party-es.svg | 1 - .../public/badges/third-party-id.svg | 1 - .../public/badges/third-party-zh.svg | 1 - .../.vuepress/public/badges/third-party.svg | 1 - .../public/tag/icon/patch-check-fill.svg | 3 + .../.vuepress/public/tag/icon/people-fill.svg | 5 + site/docs/.vuepress/public/tag/logo/deno.svg | 1 + .../.vuepress/public/tag/logo/nodedotjs.svg | 1 + tsconfig.json | 44 ++++ 18 files changed, 304 insertions(+), 28 deletions(-) create mode 100644 site/docs/.vuepress/components/TagGroup.vue delete mode 100644 site/docs/.vuepress/public/badges/deno.svg delete mode 100644 site/docs/.vuepress/public/badges/nodejs.svg delete mode 100644 site/docs/.vuepress/public/badges/official-es.svg delete mode 100644 site/docs/.vuepress/public/badges/official-id.svg delete mode 100644 site/docs/.vuepress/public/badges/official-zh.svg delete mode 100644 site/docs/.vuepress/public/badges/official.svg delete mode 100644 site/docs/.vuepress/public/badges/third-party-es.svg delete mode 100644 site/docs/.vuepress/public/badges/third-party-id.svg delete mode 100644 site/docs/.vuepress/public/badges/third-party-zh.svg delete mode 100644 site/docs/.vuepress/public/badges/third-party.svg create mode 100644 site/docs/.vuepress/public/tag/icon/patch-check-fill.svg create mode 100644 site/docs/.vuepress/public/tag/icon/people-fill.svg create mode 100644 site/docs/.vuepress/public/tag/logo/deno.svg create mode 100644 site/docs/.vuepress/public/tag/logo/nodedotjs.svg create mode 100644 tsconfig.json diff --git a/.vscode/settings.json b/.vscode/settings.json index b172d7fe3..65466931d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,6 +9,8 @@ "./site/docs/hosting/", "./site/docs/plugins/", "./site/docs/resources/", - "./site/docs/zh/" + "./site/docs/zh/", + "./site/docs/es/", + "./site/docs/id/" ] } diff --git a/site/docs/.vuepress/components/Tag.vue b/site/docs/.vuepress/components/Tag.vue index 847a7a5f7..0ac10e8bd 100644 --- a/site/docs/.vuepress/components/Tag.vue +++ b/site/docs/.vuepress/components/Tag.vue @@ -1,31 +1,217 @@ + + \ No newline at end of file + diff --git a/site/docs/.vuepress/components/TagGroup.vue b/site/docs/.vuepress/components/TagGroup.vue new file mode 100644 index 000000000..5a15c6824 --- /dev/null +++ b/site/docs/.vuepress/components/TagGroup.vue @@ -0,0 +1,44 @@ + + + + + + + \ No newline at end of file diff --git a/site/docs/.vuepress/public/badges/deno.svg b/site/docs/.vuepress/public/badges/deno.svg deleted file mode 100644 index 4271d1005..000000000 --- a/site/docs/.vuepress/public/badges/deno.svg +++ /dev/null @@ -1 +0,0 @@ -DENODENO \ No newline at end of file diff --git a/site/docs/.vuepress/public/badges/nodejs.svg b/site/docs/.vuepress/public/badges/nodejs.svg deleted file mode 100644 index 2bb1879ab..000000000 --- a/site/docs/.vuepress/public/badges/nodejs.svg +++ /dev/null @@ -1 +0,0 @@ -NODE.JSNODE.JS \ No newline at end of file diff --git a/site/docs/.vuepress/public/badges/official-es.svg b/site/docs/.vuepress/public/badges/official-es.svg deleted file mode 100644 index f6c058dcc..000000000 --- a/site/docs/.vuepress/public/badges/official-es.svg +++ /dev/null @@ -1 +0,0 @@ -OFICIALOFICIAL \ No newline at end of file diff --git a/site/docs/.vuepress/public/badges/official-id.svg b/site/docs/.vuepress/public/badges/official-id.svg deleted file mode 100644 index c21568dd4..000000000 --- a/site/docs/.vuepress/public/badges/official-id.svg +++ /dev/null @@ -1 +0,0 @@ -RESMIRESMI \ No newline at end of file diff --git a/site/docs/.vuepress/public/badges/official-zh.svg b/site/docs/.vuepress/public/badges/official-zh.svg deleted file mode 100644 index f67d57131..000000000 --- a/site/docs/.vuepress/public/badges/official-zh.svg +++ /dev/null @@ -1 +0,0 @@ -官方维护官方维护 \ No newline at end of file diff --git a/site/docs/.vuepress/public/badges/official.svg b/site/docs/.vuepress/public/badges/official.svg deleted file mode 100644 index 9b9173c61..000000000 --- a/site/docs/.vuepress/public/badges/official.svg +++ /dev/null @@ -1 +0,0 @@ -OFFICIALOFFICIAL \ No newline at end of file diff --git a/site/docs/.vuepress/public/badges/third-party-es.svg b/site/docs/.vuepress/public/badges/third-party-es.svg deleted file mode 100644 index b6eb7459d..000000000 --- a/site/docs/.vuepress/public/badges/third-party-es.svg +++ /dev/null @@ -1 +0,0 @@ -DE TERCEROSDE TERCEROS \ No newline at end of file diff --git a/site/docs/.vuepress/public/badges/third-party-id.svg b/site/docs/.vuepress/public/badges/third-party-id.svg deleted file mode 100644 index 89664b536..000000000 --- a/site/docs/.vuepress/public/badges/third-party-id.svg +++ /dev/null @@ -1 +0,0 @@ -PIHAK KETIGAPIHAK KETIGA \ No newline at end of file diff --git a/site/docs/.vuepress/public/badges/third-party-zh.svg b/site/docs/.vuepress/public/badges/third-party-zh.svg deleted file mode 100644 index d58bdc124..000000000 --- a/site/docs/.vuepress/public/badges/third-party-zh.svg +++ /dev/null @@ -1 +0,0 @@ -第三方第三方 \ No newline at end of file diff --git a/site/docs/.vuepress/public/badges/third-party.svg b/site/docs/.vuepress/public/badges/third-party.svg deleted file mode 100644 index 3b87d58f1..000000000 --- a/site/docs/.vuepress/public/badges/third-party.svg +++ /dev/null @@ -1 +0,0 @@ -THIRD-PARTYTHIRD-PARTY \ No newline at end of file diff --git a/site/docs/.vuepress/public/tag/icon/patch-check-fill.svg b/site/docs/.vuepress/public/tag/icon/patch-check-fill.svg new file mode 100644 index 000000000..13014151d --- /dev/null +++ b/site/docs/.vuepress/public/tag/icon/patch-check-fill.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/site/docs/.vuepress/public/tag/icon/people-fill.svg b/site/docs/.vuepress/public/tag/icon/people-fill.svg new file mode 100644 index 000000000..2c7389d23 --- /dev/null +++ b/site/docs/.vuepress/public/tag/icon/people-fill.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/site/docs/.vuepress/public/tag/logo/deno.svg b/site/docs/.vuepress/public/tag/logo/deno.svg new file mode 100644 index 000000000..ea6459994 --- /dev/null +++ b/site/docs/.vuepress/public/tag/logo/deno.svg @@ -0,0 +1 @@ +Deno \ No newline at end of file diff --git a/site/docs/.vuepress/public/tag/logo/nodedotjs.svg b/site/docs/.vuepress/public/tag/logo/nodedotjs.svg new file mode 100644 index 000000000..281c82962 --- /dev/null +++ b/site/docs/.vuepress/public/tag/logo/nodedotjs.svg @@ -0,0 +1 @@ +Node.js \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 000000000..032aed5d7 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,44 @@ +{ + "compilerOptions": { + "module": "ESNext", + "moduleResolution": "Node", + "resolveJsonModule": true, + "useDefineForClassFields": true, + + // Required in Vue projects + "jsx": "preserve", + + // `"noImplicitThis": true` is part of `strict` + // Added again here in case some users decide to disable `strict`. + // This enables stricter inference for data properties on `this`. + "noImplicitThis": true, + "strict": true, + + // Required in Vite + "isolatedModules": true, + // For `