123ArticleOnline Logo
Welcome to 123ArticleOnline.com!
ALL >> Web-Design >> View Article

Vue 3 Telegram Login

Profile Picture
By Author: Rizwan Aslam
Total Articles: 1
Comment this article
Facebook ShareTwitter ShareGoogle+ ShareTwitter Share

Installation
You've to run this command to install it with npm:

$ npm i vue3-telegram-login --save
Usage
Next, You've to Import telegram-login-temp, pass it to the component, and then you can utilize it in your template.



Loading...



import { telegramLoginTemp } from 'vue3-telegram-login'
import { ref } from 'vue'

const isLoaded = ref(false)

function telegramLoadedCallbackFunc () {
console.log('script is loaded')
isLoaded.value = true
}

function yourCallbackFunction (user) {
// gets user as an input
// id, first_name, last_name, username,
// photo_url, auth_date and hash
console.log(user)
}

Closing Notes
You need to set the domain to your bot if you want to use Telegram Login (/setdomain command to @BotFather)
You've to validate the authentication and the integrity of the data received by correlating the received hash parameter with the hexadecimal representation of the HMAC-SHA-256 signature of the data-check-string with the SHA256 hash of the bot's token utilized as a secret key (source).
You can observe some code samples on this page.
Don't disable third party cookies if you want to use Telegram Login as a User (thanks @robverhoef )

Total Views: 404Word Count: 221See All articles From Author

Add Comment

Web Design Articles

1. How Gsc Fatoorax Reduces Zatca E-invoicing Costs For Saudi Enterprises
Author: Andy

2. How Web Design & Development Affects User Experience?
Author: Optimist

3. Driving Digital Growth In The Uk With Wordpress Development Expertise From India
Author: Sanjeevani Nair

4. Real Seo Vs Fake Seo Reporting: The Truth Every Business Owner Must Know
Author: sochtek

5. What Are The Benefits Of Hiring Top Dental Website Design Companies For Clinics?
Author: PSM

6. Why Your Business Needs A Shopify Development Agency In 2026
Author: Devis

7. How Indian Businesses Are Building Mobile Apps For Long-term Growth
Author: digittrix Infotech

8. Digital Marketing Company In Noida Delivering Result Driven Strategies For Modern Businesses
Author: Digital Notebook

9. Google Business Profile Optimization Checklist For 2026
Author: sochtek

10. Best Website Designing Company In Dubai | Professional & Custom Web Solutions
Author: GlobosoftSEO

11. Revolutionizing Communication: The Whatsapp Clone By Omninos Solutions
Author: BY Omninos solution

12. Seo Vs Ppc: Which Brings Better Roi For Small Businesses In 2026?
Author: sochtek

13. Hire The Best Vue.js Developers In Riyadh For Your Applications
Author: Andy

14. What All You Need To Understand About Website Design And Development
Author: Liam Mackie

15. Drupal Web Development Services In Riyadh For Strategic Growth
Author: Andy

Login To Account
Login Email:
Password:
Forgot Password?
New User?
Sign Up Newsletter
Email Address: