return;
}
- $this->replyWithMessage(
+ $numE = count($pranks);
+ $pranks[$numE- 1] .= "\n——————————————";
+ $chatid = getTelegram()->getWebhookUpdates()->get('message')->get('chat')->get('id');
+ getTelegram()->sendMessage(
[
- 'text' => "High scores for $arguments ...\n\n" . unlines($pranks)
+ 'chat_id' => $chatid,
+ 'parse_mode' => 'Markdown',
+ 'text' => "High scores for $arguments ...\n\n```" . unlines($pranks) . "```"
]
);
}