ALL >> Web-Design >> View Article
Vue 3 Telegram Login
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 )
Add Comment
Web Design Articles
1. Best It Company In Dehradun: Powering A Smarter Digital FutureAuthor: Tejomaya Oneway Innovation LLP
2. Why Patna Brands Need Smarter Seo, Social Media And Google Ads
Author: Finder21 Technology
3. How To Build An Effective Social Media Strategy For Business Growth
Author: LiveBits Team
4. Transforming Businesses With Mobile App Design, Branding And Ai Automation Solutions In Hyderabad
Author: weblinksolutions
5. Choosing The Right Web And Mobile App Development Partner In Hyderabad
Author: weblinksolutions
6. Why Google Cares About Your Facebook Page (even If You Don't)
Author: Online Consulting
7. Ai-powered Mobile Apps Transform Business Growth
Author: Kamal Vahi
8. Why Ada Compliant Website Design Matters
Author: pondSoup
9. E-commerce Website Development Cost In India (2026): Complete Pricing Guide For Business Owners
Author: IV Infotech
10. Ensure Business Growth With A Professionally Designed Website
Author: Liam Mackie
11. Website Design In Thoothukudi
Author: SM Tech
12. Why Businesses Need A Professional Social Media Branding Agency For Long-term Growth
Author: Cloudy Bites
13. How To Find Website Design Near You – Digital Webdesign India
Author: Soma Manna
14. Find Best Website Design Company In Kolkata
Author: Soma Manna
15. Best Digital Marketing Agency In Noida: A Complete 2026 Guide For Businesses
Author: Visionclick360






