Skip to content

Commit 7705e6a

Browse files
authored
Fixing experiments
1 parent 8e561b8 commit 7705e6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ async function onUpdate (update) {
5959
*/
6060
function onMessage (message) {
6161
try {
62-
const {fixedURL, title} = getFixedURL(message)
62+
const {fixedURL, title} = await getFixedURL(message)
6363
return sendPlainText(message.chat.id, fixedURL)
6464
}
6565
catch {
@@ -84,7 +84,7 @@ async function sendPlainText (chatId, text) {
8484
*/
8585
async function onInlineQuery (inlineQuery) {
8686
const originalURL = inlineQuery.query;
87-
const {fixedURL, title} = getFixedURL(originalURL)
87+
const {fixedURL, title} = await getFixedURL(originalURL)
8888
const results = [({
8989
type: 'article',
9090
id: crypto.randomUUID(),

0 commit comments

Comments
 (0)