Skip to content

Commit

Permalink
Renamed variable for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjasoturi committed Feb 13, 2024
1 parent 2405606 commit abeb5c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mods/trainer_share.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$botUser->accessCheck('trainer-share');

// Get chat object by chat short id
$chat = get_config_chat_by_short_id($data['c']);
$chatObj = get_config_chat_by_short_id($data['c']);

// Get text and keys.
$text = show_trainerinfo($update);
Expand All @@ -23,7 +23,7 @@
$tg_json = array();

// Send the message.
$tg_json[] = send_message($chat, $text, $keys, ['disable_web_page_preview' => 'true'], true, 'trainer');
$tg_json[] = send_message($chatObj, $text, $keys, ['disable_web_page_preview' => 'true'], true, 'trainer');

// Set callback keys and message
$callback_msg = getTranslation('successfully_shared');
Expand Down

0 comments on commit abeb5c2

Please sign in to comment.