Skip to content

Commit

Permalink
add support for edited messages
Browse files Browse the repository at this point in the history
  • Loading branch information
stargo committed Jan 7, 2018
1 parent 18f63d4 commit 728d753
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions telegram.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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}));
Expand Down

0 comments on commit 728d753

Please sign in to comment.