mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
Fix typing
This commit is contained in:
parent
3f5c51e805
commit
eea75b8e9a
2 changed files with 2 additions and 1 deletions
|
|
@ -192,7 +192,7 @@ class Dispatcher(Router):
|
|||
)
|
||||
process_updates.add_done_callback(release_waiter, context=ctx)
|
||||
|
||||
def process_response(task: asyncio.Task):
|
||||
def process_response(task: Future):
|
||||
warnings.warn(
|
||||
f"Detected slow response into webhook.\n"
|
||||
f"Telegram is waiting for response only first 60 seconds and then re-send update.\n"
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import time
|
|||
import warnings
|
||||
|
||||
import pytest
|
||||
|
||||
from aiogram import Bot
|
||||
from aiogram.api.methods import GetMe, GetUpdates, SendMessage
|
||||
from aiogram.api.types import Chat, Message, Update, User
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue