From 113a9180104f04beaaf3bcfbce835ecf280a764e Mon Sep 17 00:00:00 2001 From: eleksir Date: Thu, 29 Oct 2020 15:53:31 +0300 Subject: [PATCH] Some more work on sendChatAction() * Fix return value * Add POD inline for this method --- lib/Teapot/Bot/Brain.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/Teapot/Bot/Brain.pm b/lib/Teapot/Bot/Brain.pm index c2d0f4e..31bd0c8 100644 --- a/lib/Teapot/Bot/Brain.pm +++ b/lib/Teapot/Bot/Brain.pm @@ -219,7 +219,7 @@ sub sendChatAction { my $url = "https://api.telegram.org/bot${token}/sendChatAction"; my $api_response = $self->_post_request ($url, $send_args); - return Telegram::Bot::Object::User->create_from_hash($api_response, $self); + return; } @@ -407,6 +407,11 @@ See L. Returns a L object. +=head2 sendChatAction +See L. + +Returns nothing, it's send-only method (Telegram API returns true on success) + =head1 SEE ALSO =over 4