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. Sms Service In Dehradun: Better Ways To Connect With Customers In 2026Author: Tejomaya Oneway Innovation LLP
2. Website Designing Services: Build A Professional Website For Your Business
Author: Nilesh Jire
3. Why Professional Web Design Matters For Business Growth
Author: praveen
4. Website Development Company In Dubai: What Makes A Business Website Successful?
Author: Doors Studio
5. Local Seo New York Ny: Why Your Business Isn't Showing On Google Maps
Author: Captivate Designs
6. Drupal 11 In 2026: New Development Trends, Site Performance, And Modern Website Design
Author: James
7. What Businesses Often Get Wrong When Choosing A Website Design Service
Author: Soumali
8. Why Custom Ai Development Is Becoming Important For Modern Businesses
Author: Proses India
9. Answer Engine Optimization Vs Seo: Key Differences And Best Practices
Author: Ricky
10. How Does A Chicken Road Clone Script Support Flexible Gameplay And Platform Management ?
Author: GwenJasmine
11. Streamlining Full-stack Web Development And Ai Integration For Modern Enterprises
Author: Shanthanu C
12. Search Engine Optimization (seo): A Powerful Strategy For Online Business Growth
Author: Deepesh Singh Koshyari
13. Ai Integration Services & Consultants | Pti Webtech
Author: Khurshid Mohammad
14. How To Choose An Angular Development Company In Chennai
Author: bharathi
15. Best It Company In Dehradun For Future-ready Business Technology
Author: Tejomaya Oneway Innovation LLP






