mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 01:54:53 +00:00
handler(message: types.Message)
This commit is contained in:
parent
03c7e4a6d8
commit
2192d4b7ea
3 changed files with 9 additions and 9 deletions
|
|
@ -5,7 +5,7 @@ Babel is required.
|
|||
import asyncio
|
||||
import logging
|
||||
|
||||
from aiogram import Bot
|
||||
from aiogram import Bot, types
|
||||
from aiogram.dispatcher import Dispatcher
|
||||
from aiogram.types import ParseMode
|
||||
from aiogram.utils.markdown import *
|
||||
|
|
@ -20,7 +20,7 @@ dp = Dispatcher(bot)
|
|||
|
||||
|
||||
@dp.message_handler()
|
||||
async def check_language(message):
|
||||
async def check_language(message: types.Message):
|
||||
locale = message.from_user.locale
|
||||
|
||||
await message.reply(text(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue