Take into account possible api errors

This commit is contained in:
eleksir
2022-04-24 01:13:36 +03:00
parent 281a5e6b3c
commit 35104f883c
2 changed files with 12 additions and 5 deletions

View File

@@ -103,8 +103,7 @@ sub __on_msg {
unless ($myid) {
my $myObj = $self->getMe ();
unless ($myObj) {
$log->error ('[ERROR] Unable to get chatid, API Error?');
if ($myObj->{error}) {
return;
}