#1520 Fixed event context resolving for the callback query (#1521)

* #1520 Fixed event context resolving for the callback query that is coming from the business account

* Simplify some conditions

* Added changelog

* Fixed AttributeError
This commit is contained in:
Alex Root Junior 2024-07-06 20:46:45 +03:00 committed by GitHub
parent 46e033e6da
commit 7f47609585
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 24 additions and 17 deletions

View file

@ -2,12 +2,12 @@ import datetime
from aiogram.methods import SendPaidMedia
from aiogram.types import (
Message,
Chat,
PaidMediaPhoto,
PaidMediaInfo,
PhotoSize,
InputPaidMediaPhoto,
Message,
PaidMediaInfo,
PaidMediaPhoto,
PhotoSize,
)
from tests.mocked_bot import MockedBot

View file

@ -24,6 +24,7 @@ from aiogram.methods import (
SendLocation,
SendMediaGroup,
SendMessage,
SendPaidMedia,
SendPhoto,
SendPoll,
SendSticker,
@ -35,7 +36,6 @@ from aiogram.methods import (
StopMessageLiveLocation,
TelegramMethod,
UnpinChatMessage,
SendPaidMedia,
)
from aiogram.types import (
UNSET_PARSE_MODE,