Some more work on sendChatAction()

* Fix return value
* Add POD inline for this method
This commit is contained in:
eleksir
2020-10-29 15:53:31 +03:00
parent 45318757df
commit 113a918010

View File

@@ -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<https://core.telegram.org/bots/api#sendphoto>.
Returns a L<Teapot::Bot::Object::Message> object.
=head2 sendChatAction
See L<https://core.telegram.org/bots/api#sendchataction>.
Returns nothing, it's send-only method (Telegram API returns true on success)
=head1 SEE ALSO
=over 4