Templates Plugins Courses

🆃 Telegram Login - New Plugin from Zeroqode

The Telegram login widget is a simple way to authorize users on your website.

For details, screenshots and demos please visit the plugin page at: https://zeroqode.com/plugin/telegram-login-1591688567409x470198354234493630

Levon Terteryan

Founder @ Zeroqode

zeroqode-for-web-160x120

Bubble Templates

Zeroqode Blocks

Bubble Plugins

Bubble Courses

Convert Web to iOS & Android

No-code Development Services

Hi Levon! I bought plugin yesterday, but can’t figure out how to make it work.

Here is my page:


I want to show users content of my app only after they logged in with telegram.

Is there a way to redirect user to another page after he clicked on “login with telegram” button and successfully logged in?
Is it possible to do do it in 1 click?

From what i can see on the demo page https://zeroqode-demo-21.bubbleapps.io/telegram_login user actually logs in, and page receives info about the user only after clicking on “Icon fa fa-info-circle”, which is a very counter-intuitive UX.

Hi @mevist77,

Thanks for reaching out. Let me provide some insights here.

Please check our docs here https://docs.zeroqode.com/plugins/telegram-login-plugin for guidance, where you can find demo+editor links to preview all plugin settings as well. Give it a try, and if you experience any confusions or issues, let us know.

Sure, it is possible to accomplish it. I’m afraid it is not possible to set the event when the ‘Login with Telegram button’ is clicked because it is not an actual button, but the plugin element itself. However, you can use the state workaround. So, initially you have a state (e.g. ‘user_logged’ as in our demo) for checking whether user is logged in or not, with its value as “no”, and when you perform the Telegram login process (meaning, the first_name and/or last_name is not empty anymore), you set the value as “yes”. Thus, you can implement the workflow to show users the content of your app only when user is logged in.

You’re right, it might be a counter-intuitive UX, indeed. But we have added a pop-up message that indicates to actually log in, first:

image

In order to be able to see user’s information. However, we’ve taken into account your feedback for future improvements!

Best,
Alex

Hi @alexander Thank you for your feedback!
So, in the demo in order to change state of “user_logged” to “yes” i have to click on the “Telegram login A” first, and than on “Icon fa fa-info-circle”, correct?
That’s 2 clicks

You said, that it is possible to accomplish it in 1 click. Can you please tell me, how?
How can i change the state “user_logged” to “yes” in 1 click?

Hi @mevist77,

Thanks for feedback. Unfortunately, you might be right, indeed, as it can require 2 clicks. We cannot provide exact solutions as it is beyond our support services, but I can try to hint into a right direction at least. You can simply set on page load to set the value of state as ‘yes’ only when first_name and last_name is not empty, meaning it checking whether user has logged in via Telegram or not, and then show the content of your app with condition when logged in is ‘yes’. In this case, you’ll just have to “one-click” the ‘log in with Telegram’, meaning it is not required to click on any additional icons. Or, you can use Bubble’s Do when a condition is true event, and play around with it to show the page content only when ‘logged in’ value is ‘yes’.

If you have more Bubble dev related questions, it would be best to address here https://forum.bubble.io/.

Hope it helps.