in src/services/messenger.py [0:0]
def send_start_messages(messenger):
"""Function to launch at the start of restart of the chatbot"""
txt = _(
u"🙏🏼 Hi %(first_name)s, so you’ve decided to make your first steps in"
" Open Source. That’s great.",
**user
)
messenger.send({"text": txt}, "RESPONSE")
messenger.send_action(typing_on)
sleep(3)
# A quick reply to the main menu
qr1 = quick_replies.QuickReply(
title=_("✔️ Yes"), payload="KNOW_OS_YES_FULL")
qr2 = quick_replies.QuickReply(title=_("❌ Not yet"), payload="KNOW_OS_NO")
qrs = quick_replies.QuickReplies(quick_replies=[qr1, qr2])
text = {
"text": _(
u"So, tell me %(first_name)s do you know what Open Source"
" is? 👇🏼", **user
),
"quick_replies": qrs.to_dict(),
}
messenger.send(text, "RESPONSE")