From 408dccd1b5823d7939f812ff2f04daa357905f69 Mon Sep 17 00:00:00 2001 From: eleksir Date: Thu, 8 May 2025 15:06:12 +0300 Subject: [PATCH] Fix variable name in Brain.pm that explodes bot --- lib/Teapot/Bot/Brain.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Teapot/Bot/Brain.pm b/lib/Teapot/Bot/Brain.pm index 6bd9e19..ba539a2 100644 --- a/lib/Teapot/Bot/Brain.pm +++ b/lib/Teapot/Bot/Brain.pm @@ -939,7 +939,7 @@ sub _process_message { $update = Teapot::Bot::Object::PollAnswer->create_from_hash($item->{poll_answer}, $self) if $item->{poll_answer}; $update = Teapot::Bot::Object::ChatMemberUpdated->create_from_hash($item->{my_chat_member}, $self) if $item->{my_chat_member}; $update = Teapot::Bot::Object::ChatMemberUpdated->create_from_hash($item->{chat_member}, $self) if $item->{chat_member}; - $update = Teapot::Bot::Object::MessageReaction->create_from_hash($item->{message_reaction}, self) if $item->{message_reaction}; + $update = Teapot::Bot::Object::MessageReaction->create_from_hash($item->{message_reaction}, $self) if $item->{message_reaction}; # if we got to this point without creating a response, it must be a type we # don't handle yet if (! $update) {