Skip to content

Commit

Permalink
quran bot v6.2 but report
Browse files Browse the repository at this point in the history
  • Loading branch information
saber13812002 committed Aug 12, 2023
1 parent 2973130 commit a40d76c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Http/Controllers/QuranWordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,10 @@ public function index(BotRequest $request)
} else if ($command == "report") {
$chatId = $bot->ChatID();
$this->quranBotUserRankingService->specificUserReport($chatId, $bot);
BotHelper::sendMessage($bot, trans("bot.report.this is your reports. your last 7 days activities. click on this link:") . "
https://bots.pardisania.ir/report?chat_id=" . $chatId . '&language=' . $request->input('language') . '&origin=' . $type);
$message = trans("bot.report.this is your reports. your last 7 days activities. click on this link:") . "
https://bots.pardisania.ir/report?chat_id=" . $chatId . '&language=' . $request->input('language') . '&origin=' . $type;
BotHelper::sendMessage($bot, $message);
BotHelper::sendMessageToSuperAdmin($message, $type);
} else if ($command == "reportall") {
if ($type == 'telegram') {
BotHelper::sendMessage($bot, "this command not work in telegram");
Expand Down

0 comments on commit a40d76c

Please sign in to comment.