We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e561b8 commit 7705e6aCopy full SHA for 7705e6a
worker.js
@@ -59,7 +59,7 @@ async function onUpdate (update) {
59
*/
60
function onMessage (message) {
61
try {
62
- const {fixedURL, title} = getFixedURL(message)
+ const {fixedURL, title} = await getFixedURL(message)
63
return sendPlainText(message.chat.id, fixedURL)
64
}
65
catch {
@@ -84,7 +84,7 @@ async function sendPlainText (chatId, text) {
84
85
async function onInlineQuery (inlineQuery) {
86
const originalURL = inlineQuery.query;
87
- const {fixedURL, title} = getFixedURL(originalURL)
+ const {fixedURL, title} = await getFixedURL(originalURL)
88
const results = [({
89
type: 'article',
90
id: crypto.randomUUID(),
0 commit comments