Commit 01893846 authored by Jack'lul's avatar Jack'lul

Another code improvement (thanks to @noplanman)

parent 4f822d87
...@@ -136,7 +136,7 @@ class Botan ...@@ -136,7 +136,7 @@ class Botan
'callback_query' => 'Callback Query' 'callback_query' => 'Callback Query'
]; ];
if (in_array($update_type, ['message', 'edited_message', 'channel_post', 'edited_channel_post', 'inline_query', 'chosen_inline_result', 'callback_query'], true)) { if (array_key_exists($update_type, $update_object_names)) {
$data = $update_data[$update_type]; $data = $update_data[$update_type];
$event_name = $update_object_names[$update_type]; $event_name = $update_object_names[$update_type];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment