Merge branch 'aiogram:dev-3.x' into patch-1

This commit is contained in:
monosans 2025-01-18 15:01:57 +00:00 committed by GitHub
commit 73f0ff963f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 7 additions and 3 deletions

1
CHANGES/1630.bugfix.rst Normal file
View file

@ -0,0 +1 @@
Fix the regex pattern that finds the "bad characters" for deeplink payload.

1
CHANGES/1631.misc.rst Normal file
View file

@ -0,0 +1 @@
Increased max :code:`redis` version support from “<5.1.0” to “<5.3.0”

View file

@ -18,7 +18,7 @@ from aiogram.utils.payload import decode_payload, encode_payload
if TYPE_CHECKING:
from aiogram import Bot
BAD_PATTERN = re.compile(r"[^A-z0-9-]")
BAD_PATTERN = re.compile(r"[^a-zA-Z0-9-_]")
async def create_start_link(

View file

@ -173,7 +173,7 @@ msgstr ""
#: ../../../README.rst:71
msgid "If you have any questions, you can visit our community chats on Telegram:"
msgstr "Якщо є якість додаткові запитання, ласкаво просимо до онлайн-спільнот:"
msgstr "Якщо є додаткові запитання, ласкаво просимо до онлайн-спільнот:"
#: ../../../README.rst:73
msgid "🇺🇸 `@aiogram <https://t.me/aiogram>`_"

View file

@ -60,7 +60,7 @@ fast = [
"aiodns>=3.0.0",
]
redis = [
"redis[hiredis]>=5.0.1,<5.1.0",
"redis[hiredis]>=5.0.1,<5.3.0",
]
mongo = [
"motor>=3.3.2,<3.7.0",

View file

@ -10,12 +10,14 @@ PAYLOADS = [
"aaBBccDDeeFF5544332211",
-12345678901234567890,
12345678901234567890,
"underscore_and-dash",
]
WRONG_PAYLOADS = [
"@BotFather",
"Some:special$characters#=",
"spaces spaces spaces",
1234567890123456789.0,
"has`backtick",
]