Dev 3.x flat package (#961)

* Move packages

* Added changelog

* Update examples/echo_bot.py

Co-authored-by: Oleg A. <t0rr@mail.ru>

* Rename `handler` -> `handlers`

* Update __init__.py

Co-authored-by: Oleg A. <t0rr@mail.ru>
This commit is contained in:
Alex Root Junior 2022-08-14 01:07:52 +03:00 committed by GitHub
parent 5e7932ca20
commit 4315ecf1a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
111 changed files with 376 additions and 390 deletions

View file

@ -42,13 +42,17 @@ Decode it back example:
await message.answer(f"Your payload: {payload}")
"""
from __future__ import annotations
import re
from base64 import urlsafe_b64decode, urlsafe_b64encode
from typing import Literal, cast
from typing import TYPE_CHECKING, Literal, cast
from aiogram import Bot
from aiogram.utils.link import create_telegram_link
if TYPE_CHECKING:
from aiogram import Bot
BAD_PATTERN = re.compile(r"[^_A-z0-9-]")