Skip to content

Commit 9daae04

Browse files
author
Pietro Albini
committed
Fix wrong deprecation messages in Bot.send*
1 parent 09944db commit 9daae04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

botogram/frozenbot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ def hide_commands(self):
273273

274274
for _proxy in _proxied_sends:
275275
@utils.wraps(_proxy)
276-
@utils.deprecated("0.1", "1.0", "Use Bot.chat(id).%s() instead."
277-
% _proxy.__name__)
276+
@utils.deprecated("Bot.%s()" % _proxy.__name__, "1.0",
277+
"Use Bot.chat(id).%s() instead." % _proxy.__name__)
278278
def _wrapper(self, chat, *args, __proxy=_proxy, **kwargs):
279279
# String chats are channels
280280
if type(chat) == str:

0 commit comments

Comments
 (0)