From 3153cffdeff4ce698ed41a234c15704b5decd6fb Mon Sep 17 00:00:00 2001 From: Markus Ressel Date: Sat, 29 Aug 2020 03:51:42 +0200 Subject: [PATCH] updated README --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 78deab2..0f0b16b 100644 --- a/README.md +++ b/README.md @@ -243,6 +243,11 @@ def hide_whois_if_admin(update: Update, context: CallbackContext): return user_id not in [123456] ``` +This function is evaluated on each message and therefore provides +the `update` and `context` object from **python-telegram-bot**, which +allows you to make decisions based on chat and user properties +among other things. + ## Error handling **telegram-click** automatically handles errors in most situations.