From 573e13a17bd7743d74a8139c5ff0c55229461b59 Mon Sep 17 00:00:00 2001 From: Kostiantyn Kriuchkov <36363097+Latand@users.noreply.github.com> Date: Fri, 15 Sep 2023 11:49:48 +0300 Subject: [PATCH 1/4] Update migration_2_to_3.rst Co-authored-by: Oleg A. --- docs/migration_2_to_3.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/migration_2_to_3.rst b/docs/migration_2_to_3.rst index 3251e664..1a4650dc 100644 --- a/docs/migration_2_to_3.rst +++ b/docs/migration_2_to_3.rst @@ -54,7 +54,7 @@ Filtering events You must specify them explicitly if you wish to use them. For example instead of using :code:`@dp.message_handler(content_types=ContentType.PHOTO)` you should use :code:`@router.message(F.photo)` -- Most common filters have been replaced by the "magic filter." (:ref:`Read more » `) +- Most common filters have been replaced with the "magic filter." (:ref:`Read more » `) - By default, the message handler now receives any content type. If you want a specific one, simply add the appropriate filters (Magic or any other). - The state filter is no longer enabled by default. This means that if you used :code:`state="*"` From 3dfd6f102fb0af9f9950bc5e3231ee812ffd6225 Mon Sep 17 00:00:00 2001 From: Kostiantyn Kriuchkov <36363097+Latand@users.noreply.github.com> Date: Fri, 15 Sep 2023 11:50:32 +0300 Subject: [PATCH 2/4] Update migration_2_to_3.rst Co-authored-by: Oleg A. --- docs/migration_2_to_3.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/migration_2_to_3.rst b/docs/migration_2_to_3.rst index 1a4650dc..55483e84 100644 --- a/docs/migration_2_to_3.rst +++ b/docs/migration_2_to_3.rst @@ -141,7 +141,7 @@ Webhook ======= - The aiohttp web app configuration has been simplified. -- By default, the ability to upload files has been added when you use the reply function in a webhook. +- By default, the ability to upload files has been added when you `make requests in response to updates `_ (available for webhook only). Telegram API Server From 65810d6011161f619eedb2b192277dcfcb856b95 Mon Sep 17 00:00:00 2001 From: Kostiantyn Kriuchkov <36363097+Latand@users.noreply.github.com> Date: Fri, 15 Sep 2023 17:33:52 +0300 Subject: [PATCH 3/4] Update migration_2_to_3.rst Co-authored-by: Oleg A. --- docs/migration_2_to_3.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/migration_2_to_3.rst b/docs/migration_2_to_3.rst index 55483e84..0eeef2bf 100644 --- a/docs/migration_2_to_3.rst +++ b/docs/migration_2_to_3.rst @@ -34,7 +34,7 @@ Dispatcher - With routes, you can easily modularize your code and potentially share these modules between projects. - Removed the **_handler** suffix from all event handler decorators and registering methods. (:ref:`Read more » `) -- The Executor has been entirely removed; you can now use the Dispatcher directly to start polling or handle webhooks. +- The Executor has been entirely removed; you can now use the Dispatcher directly to start poll the API or handle webhooks from it. - The throttling method has been completely removed; you can now use middlewares to control the execution context and implement any throttling mechanism you desire. - Removed global context variables from the API types, Bot and Dispatcher object, From 27c97ee26b912b432c988f0256d288d50cbb20d3 Mon Sep 17 00:00:00 2001 From: Kostiantyn Kriuchkov <36363097+Latand@users.noreply.github.com> Date: Sun, 17 Sep 2023 14:26:42 +0300 Subject: [PATCH 4/4] Update docs/locale/uk_UA/LC_MESSAGES/api/methods/set_sticker_set_thumb.po Co-authored-by: Oleg A. --- .../uk_UA/LC_MESSAGES/api/methods/set_sticker_set_thumb.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_sticker_set_thumb.po b/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_sticker_set_thumb.po index 337eb866..786b6309 100644 --- a/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_sticker_set_thumb.po +++ b/docs/locale/uk_UA/LC_MESSAGES/api/methods/set_sticker_set_thumb.po @@ -47,7 +47,7 @@ msgstr "Ідентифікатор користувача власника на #: ../../docstring #: aiogram.methods.set_sticker_set_thumb.SetStickerSetThumbnail.thumbnail:1 of msgid "A **.WEBP** or **.PNG** image with the thumbnail, must be up to 128 kilobytes in size and have a width and height of exactly 100px, or a **.TGS** animation with a thumbnail up to 32 kilobytes in size (see `https://core.telegram.org/stickers#animated-sticker-requirements `_`https://core.telegram.org/stickers#animated-sticker-requirements `_ for animated sticker technical requirements), or a **WEBM** video with the thumbnail up to 32 kilobytes in size; see `https://core.telegram.org/stickers#video-sticker-requirements `_`https://core.telegram.org/stickers#video-sticker-requirements `_ for video sticker technical requirements. Pass a *file_id* as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. :ref:`More information on Sending Files » `. Animated and video sticker set thumbnails can't be uploaded via HTTP URL. If omitted, then the thumbnail is dropped and the first sticker is used as the thumbnail." -msgstr "Зображення у форматі **.WEBP** або **.PNG** з мініатюрою має бути розміром до 128 кілобайт і мати ширину та висоту рівно 100 пікселів, або анімація у форматі **.TGS** з мініатюрою розміром до 32 кілобайт (див. `https://core.telegram.org/stickers#animated-sticker-requirements `_`https://core.telegram.org/stickers#animated-sticker-requirements `_ технічні вимоги до анімованих наліпок), або **WEBM** відео з мініатюрою розміром до 32 кілобайт; дивіться `https://core.telegram.org/stickers#video-sticker-requirements `_`https://core.telegram.org/stickers#video-sticker-requirements `_ технічні вимоги до відео наліпок. Передайте *file_id* як рядок, щоб надіслати файл, який вже існує на серверах Telegram, передайте HTTP URL як рядок, щоб Telegram отримав файл з Інтернету, або завантажте новий файл за допомогою мультичастини/форма-даних. :ref:`Додаткова інформація про надсилання файлів \" `. Ескізи анімованих і відео-наборів наклейок не можуть бути завантажені через HTTP URL. Якщо цей параметр не вказано, то мініатюру буде вилучено, а замість неї буде використано першу наліпку." +msgstr "Зображення у форматі **.WEBP** або **.PNG** з мініатюрою має бути розміром до 128 кілобайт і мати ширину та висоту рівно 100 пікселів, або анімацією у форматі **.TGS** з мініатюрою розміром до 32 кілобайт (див. `https://core.telegram.org/stickers#animated-sticker-requirements `_`https://core.telegram.org/stickers#animated-sticker-requirements `_ технічні вимоги до анімованих наліпок), або **WEBM** відео з мініатюрою розміром до 32 кілобайт; дивіться `https://core.telegram.org/stickers#video-sticker-requirements `_`https://core.telegram.org/stickers#video-sticker-requirements `_ технічні вимоги до відео наліпок. Передайте *file_id* як рядок, щоб надіслати файл, який вже існує на серверах Telegram, передайте HTTP URL як рядок, щоб Telegram отримав файл з Інтернету, або завантажте новий файл за допомогою мультичастини/форма-даних. :ref:`Додаткова інформація про надсилання файлів \" `. Ескізи анімованих і відео-наборів наклейок не можуть бути завантажені через HTTP URL. Якщо цей параметр не вказано, то мініатюру буде вилучено, а замість неї буде використано першу наліпку." #: ../../api/methods/set_sticker_set_thumb.rst:14 msgid "Usage"