Poll Telegram API until response

Note that 'mail' != "mail" in elixir, since the former is a charlist and the latter is a binary.

Would you mind showing me an example on how I would integrate that Auther Module into my procedural browser automation code?

Sure, maybe a blocking call would work

fill_email_password("mail", "password")
click_auth_button
auth_code = get_code_from_telegram()
fill_auth_code(code_from_telegram)

This can be achieved with Task.await, for example, where you’d call the Auther module to add a chat id to its internal state to wait an auth code for.