diff --git a/telegram.pl b/telegram.pl index 3cccd71..f2b7c2a 100644 --- a/telegram.pl +++ b/telegram.pl @@ -141,6 +141,8 @@ sub telegram_handle_message { next if ($msg->{update_id} <= $offset); $offset = $msg->{update_id}; + $msg->{message} = $msg->{edited_message} if (defined($msg->{edited_message}) && (!defined($msg->{message}))); + next if (!defined($msg->{message})); next if (!defined($msg->{message}->{from}));