From 728d7535c137fe88b1664af3d948b70de8fcf953 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sun, 7 Jan 2018 22:34:00 +0100 Subject: [PATCH] add support for edited messages --- telegram.pl | 2 ++ 1 file changed, 2 insertions(+) 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}));