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. Want To Sell On Zepto? Zane Makes Seller Onboarding Simpler And FasterAuthor: Zane
2. Why Professional Powerpoint Design Uk Services Matter For Business Growth
Author: Visual Spiders
3. Business Growth Website Experts Sochtek| Chandigarh
Author: sochtek
4. Top Mobile App Development Companies In Saudi Arabia In 2026
Author: Jesse Hilton
5. Ai Powered Web Development Services For Modern Businesses Scalable Solutions
Author: Kamal Vahi
6. Building Effective Websites For Small Businesses In The Azores
Author: Emanuel Luis
7. Ensure Maximum User Experience By Hiring A Website Design Company
Author: Liam Mackie
8. Digital Marketing Company Bhadrak Helping Businesses Grow Digitally
Author: Ethan Davis
9. Digital Marketing Company Baripada Driving Business Growth Online
Author: Ethan Davis
10. Digital Marketing Company Balasore Helping Businesses Grow Online
Author: Ethan Davis
11. Website Design Company In Bhubaneswar Building Modern Business Websites
Author: Ethan Davis
12. What Makes A Cannabis Web Development Company Right For You?
Author: DNA Digital Group
13. Web Development Agency In Gurgaon With Creative Ui/ux Expertise
Author: WebSenor
14. Seo Friendly Custom Website Development Company
Author: other
15. Cloud-based Adult Website Design For High-traffic Platforms
Author: Cloudy Bites






