mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-14 02:52:12 +00:00
Bump dev dependencies (#1512)
* Bump dev dependencies * Pre-commit py3.8 support * Pre-commit py3.8 support (v3.5+) * Mute mypy python version bug
This commit is contained in:
parent
0df95a0276
commit
7760ab1d0d
20 changed files with 92 additions and 75 deletions
|
|
@ -14,7 +14,7 @@ class HelloFilter(Filter):
|
|||
async def __call__(
|
||||
self,
|
||||
message: Message,
|
||||
event_from_user: User
|
||||
event_from_user: User,
|
||||
# Filters also can accept keyword parameters like in handlers
|
||||
) -> Union[bool, Dict[str, Any]]:
|
||||
if message.text.casefold() == "hello":
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
"""
|
||||
This example shows how to use webhook on behind of any reverse proxy (nginx, traefik, ingress etc.)
|
||||
"""
|
||||
|
||||
import logging
|
||||
import sys
|
||||
from os import getenv
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
"""
|
||||
This example shows how to use webhook with SSL certificate.
|
||||
"""
|
||||
|
||||
import logging
|
||||
import ssl
|
||||
import sys
|
||||
|
|
|
|||
|
|
@ -14,5 +14,4 @@ class MyFilter(Filter):
|
|||
|
||||
|
||||
@router.message(MyFilter("hello"))
|
||||
async def my_handler(message: Message):
|
||||
...
|
||||
async def my_handler(message: Message): ...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue