mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fixed deprecation message
This commit is contained in:
parent
4a99661b38
commit
3925b19084
1 changed files with 2 additions and 2 deletions
|
|
@ -37,8 +37,8 @@ class MessageEntity(MutableTelegramObject):
|
||||||
|
|
||||||
def extract(self, text: str) -> str:
|
def extract(self, text: str) -> str:
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
"Method `MessageEntity.get_text(...)` deprecated and will be removed in 3.0b5.\n"
|
"Method `MessageEntity.extract(...)` deprecated and will be removed in 3.0b5.\n"
|
||||||
" Use `MessageEntity.extract(...)` instead.",
|
" Use `MessageEntity.extract_from(...)` instead.",
|
||||||
DeprecationWarning,
|
DeprecationWarning,
|
||||||
)
|
)
|
||||||
return self.extract_from(text=text)
|
return self.extract_from(text=text)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue