KOW-8: Display a message when searching for a pony (#59)

This commit is contained in:
Giovani Finazzi 2025-06-22 16:24:39 -03:00 committed by GitHub
parent ecf62327c4
commit 3338698576
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 0 deletions

View file

@ -14,6 +14,10 @@ export default (bot: Telegraf<Context>) => {
bot.command(["rpony", "randompony", "mlpart"], spamwatchMiddleware, async (ctx: Context & { message: { text: string } }) => {
const Strings = getStrings(languageCode(ctx));
const reply_to_message_id = replyToMessageId(ctx);
ctx.reply(Strings.ponyApi.searching, {
parse_mode: 'Markdown',
...({ reply_to_message_id })
});
try {
const response = await axios(Resources.randomPonyApi);
let tags: string[] = [];