mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
fix(bot-telegram): proper syntax support (#25)
This commit is contained in:
@@ -13,14 +13,13 @@ export default {
|
||||
if (response.threshold > intent.confidence) return;
|
||||
if (!response.reply) return;
|
||||
|
||||
// Because for some reason the markdown parser in TG is a pain in the ass,
|
||||
// there won't be markdown support for now.
|
||||
bot.sendMessage(
|
||||
ids[0],
|
||||
`**${response.reply.title}**\n\n${response.reply.description}\n`,
|
||||
{
|
||||
message_thread_id: ids[1],
|
||||
reply_to_message_id: ids[2]
|
||||
reply_to_message_id: ids[2],
|
||||
parse_mode: 'markdown'
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -6,14 +6,14 @@ export default {
|
||||
|
||||
for (const ocrReply of config.ocrResponses) {
|
||||
if (ocrRes.ocrText.match(ocrReply.regex)) {
|
||||
// Because for some reason the markdown parser in TG is a pain in the ass,
|
||||
// there won't be markdown support for now.
|
||||
|
||||
bot.sendMessage(
|
||||
ids[0],
|
||||
`## ${ocrReply.reply.title}\n\n${ocrReply.reply.description}`,
|
||||
{
|
||||
message_thread_id: ids[1],
|
||||
reply_to_message_id: ids[2]
|
||||
reply_to_message_id: ids[2],
|
||||
parse_mode: 'markdown'
|
||||
}
|
||||
);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user