From 79004942bd328dd028df894fc06cb8909a35d2c1 Mon Sep 17 00:00:00 2001 From: eleksir Date: Mon, 22 Feb 2021 23:49:42 +0300 Subject: [PATCH] Teapot lib: document canTalk() function --- lib/Teapot/Bot/Object/ChatPermissions.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/Teapot/Bot/Object/ChatPermissions.pm b/lib/Teapot/Bot/Object/ChatPermissions.pm index 675986a..0b2a45d 100644 --- a/lib/Teapot/Bot/Object/ChatPermissions.pm +++ b/lib/Teapot/Bot/Object/ChatPermissions.pm @@ -97,6 +97,14 @@ The base class for Telegram 'ChatPermissions' type objects. See L for details of the attributes available for L objects. +=head1 METHODS + +=head2 canTalk + +A convenience method to check if bot can talk in given conversation. + +Returns true if the bot can talk in given conversation, otherwise false. + =head1 AUTHOR Sergei Fedosov