Added full support of Bot API 6.4 (#1088)

* Remove warnings about pytest asyncio mode

* Update Bot API to 6.4

* Bump version

* Added changelog

* Update translations
This commit is contained in:
Alex Root Junior 2022-12-30 22:44:25 +02:00 committed by GitHub
parent b93b75804c
commit 730485e43a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
239 changed files with 2522 additions and 892 deletions

View file

@ -10,8 +10,6 @@ from aiogram.dispatcher.event.handler import HandlerObject
from aiogram.handlers import BaseHandler
from aiogram.types import Chat, Message, Update
pytestmark = pytest.mark.asyncio
class MyHandler(BaseHandler):
async def handle(self) -> Any:

View file

@ -1,12 +1,8 @@
from typing import Any
import pytest
from aiogram.handlers import CallbackQueryHandler
from aiogram.types import CallbackQuery, User
pytestmark = pytest.mark.asyncio
class TestCallbackQueryHandler:
async def test_attributes_aliases(self):

View file

@ -1,13 +1,9 @@
import datetime
from typing import Any
import pytest
from aiogram.handlers import ChatMemberHandler
from aiogram.types import Chat, ChatMemberMember, ChatMemberUpdated, User
pytestmark = pytest.mark.asyncio
class TestChatMemberUpdated:
async def test_attributes_aliases(self):

View file

@ -1,12 +1,8 @@
from typing import Any
import pytest
from aiogram.handlers import ChosenInlineResultHandler
from aiogram.types import ChosenInlineResult, User
pytestmark = pytest.mark.asyncio
class TestChosenInlineResultHandler:
async def test_attributes_aliases(self):

View file

@ -1,11 +1,7 @@
from typing import Any
import pytest
from aiogram.handlers import ErrorHandler
pytestmark = pytest.mark.asyncio
class TestErrorHandler:
async def test_extensions(self):

View file

@ -1,12 +1,8 @@
from typing import Any
import pytest
from aiogram.handlers import InlineQueryHandler
from aiogram.types import InlineQuery, User
pytestmark = pytest.mark.asyncio
class TestCallbackQueryHandler:
async def test_attributes_aliases(self):

View file

@ -1,14 +1,10 @@
import datetime
from typing import Any
import pytest
from aiogram.filters import CommandObject
from aiogram.handlers import MessageHandler, MessageHandlerCommandMixin
from aiogram.types import Chat, Message, User
pytestmark = pytest.mark.asyncio
class MyHandler(MessageHandler):
async def handle(self) -> Any:

View file

@ -1,12 +1,8 @@
from typing import Any
import pytest
from aiogram.handlers import PollHandler
from aiogram.types import Poll, PollOption
pytestmark = pytest.mark.asyncio
class TestShippingQueryHandler:
async def test_attributes_aliases(self):

View file

@ -1,12 +1,8 @@
from typing import Any
import pytest
from aiogram.handlers import PreCheckoutQueryHandler
from aiogram.types import PreCheckoutQuery, User
pytestmark = pytest.mark.asyncio
class TestPreCheckoutQueryHandler:
async def test_attributes_aliases(self):

View file

@ -1,12 +1,8 @@
from typing import Any
import pytest
from aiogram.handlers import ShippingQueryHandler
from aiogram.types import ShippingAddress, ShippingQuery, User
pytestmark = pytest.mark.asyncio
class TestShippingQueryHandler:
async def test_attributes_aliases(self):