From 5f2d76ceca82e06e43d7f0d995729f82f7bccbc4 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 23 Jun 2019 01:34:27 +0200 Subject: [PATCH] Remove outdated note --- docs/source/start/updates.rst | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/docs/source/start/updates.rst b/docs/source/start/updates.rst index 9ac428b3..9b0a5a32 100644 --- a/docs/source/start/updates.rst +++ b/docs/source/start/updates.rst @@ -96,14 +96,3 @@ to do so is by decorating your callback function with the :meth:`~pyrogram.Clien app.run() - - -.. note:: - - Due to how these decorators work in Pyrogram, they will wrap your defined callback function in a tuple consisting of - ``(handler, group)``; this will be the value held by your function identifier (e.g.: *my_function* from the example - above). - - In case, for some reason, you want to get your own function back after it has been decorated, you need to access - ``my_function[0].callback``, that is, the *callback* field of the *handler* object which is the first element in the - tuple, accessed by bracket notation *[0]*.