How do I pass additional arguments to callback functions? #3880
-
I am tring to create a class that will manage my telegram bot and will handle interaction with other classes. Here is a minimal example of the code I would like to be able to run; however it is not possible to pass the
Expected output: Do you know how I could achieve such a behavior? I would like to not have to add a bunch of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is no need to pass anything extra. |
Beta Was this translation helpful? Give feedback.
There is no need to pass anything extra.
self.hi
is a bound method ofself
, so you can readily useself
in the method.