Skip to content

Commit

Permalink
Merge pull request #407 from bettersg/develop
Browse files Browse the repository at this point in the history
3.2.1
  • Loading branch information
sarge1989 authored Aug 14, 2024
2 parents 4b351ca + 8dd36a8 commit 915c3fa
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -545,13 +545,14 @@ const sendQuizPrompt = async (
) => {
const whatsappId = checkerSnap.data()?.whatsappId
const name = checkerSnap.data()?.name
const linkURL = `${TYPEFORM_URL}#name=${name}&phone=${whatsappId}`
await bot.telegram.sendMessage(
chatId,
`${
isFirstPrompt
? "Thank you for verifying your WhatsApp number"
: "We noticed you have not completed the quiz yet"
}. Please proceed to complete the onboarding quiz <a href="${TYPEFORM_URL}#name=${name}&phone=${whatsappId}">here</a>. This will equip you with the skills and knowledge to be a better checker!`,
}. Please proceed to complete the onboarding quiz <a href="${linkURL}">here</a>. This will equip you with the skills and knowledge to be a better checker!`,
{
reply_markup: {
inline_keyboard: [
Expand All @@ -564,6 +565,10 @@ const sendQuizPrompt = async (
],
},
parse_mode: "HTML",
link_preview_options: {
is_disabled: true, //preview link doesn't show hashes, so we just disable it entirely
url: linkURL,
},
}
)
}
Expand Down

0 comments on commit 915c3fa

Please sign in to comment.