feat: message buttons for training

This commit is contained in:
GramingFoxTeam
2023-03-20 23:51:53 +03:00
parent 4373ede855
commit 6551ca9dad
5 changed files with 80 additions and 45 deletions

View File

@@ -12,13 +12,14 @@ 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.desc}\n\n_Confidence: ${intent.confidence}_\n\nThis bot is currently being tested in production. Ignore it, if it's wrong.`,
{
message_thread_id: ids[1],
reply_to_message_id: ids[2],
parse_mode: 'Markdown'
}
);