H
H
hpmalo2018-03-16 18:03:47
Python
hpmalo, 2018-03-16 18:03:47

What does (func=lambda c: True) mean?

@bot.callback_query_handler(func=lambda c: True)
What does func=lambda c:True mean.
Where can I find a guide?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2018-03-16
@hpmalo

The decorator @bot.callback_query_handlertakes in a named argument func an anonymous function that returns True.
The manual can be found, for example, here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question