diff --git a/src/index.ts b/src/index.ts index 6bff531..56b9387 100644 --- a/src/index.ts +++ b/src/index.ts @@ -166,9 +166,9 @@ bot.command("list", async (ctx) => { bot.on("message", async ctx => { const chatid = ctx.chat.id; + Logging.debug("Message From:", chatid, ctx.message); const urls = ctx.message.entities.filter(e => e.type === "url").map(e => ctx.message.text.substr(e.offset, e.length)); - Logging.debug(ctx.message); await Promise.all(urls.map(async url => { Database.addSubscriber(url, chatid); await ctx.reply("Subscribed to: " + url);