mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Refactor aiogram/utils/auth_widget.py
+ fix check auth widget token in BaseBot, fix tests
This commit is contained in:
parent
9b2971a525
commit
7863f052d9
6 changed files with 103 additions and 46 deletions
|
|
@ -13,7 +13,7 @@ from aiohttp.helpers import sentinel
|
|||
from . import api
|
||||
from ..types import ParseMode, base
|
||||
from ..utils import json
|
||||
from ..utils.auth_widget import check_token
|
||||
from ..utils.auth_widget import check_integrity
|
||||
|
||||
|
||||
class BaseBot:
|
||||
|
|
@ -266,4 +266,4 @@ class BaseBot:
|
|||
self.parse_mode = None
|
||||
|
||||
def check_auth_widget(self, data):
|
||||
return check_token(data, self.__token)
|
||||
return check_integrity(self.__token, data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue