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 Website Builder For Small BusinessAuthor: Scope Hosts
2. Wordpress Web Design Trends In 2026: How Ai, Ux And Seo Are Shaping Modern Websites
Author: Michael Lordan
3. Let Your Business Flourish With Web Development Services
Author: Liam Mackie
4. Optimize Your Website For Lead Generation
Author: Scope Hosts
5. Seo Services In Kochi: Grow Your Business With Higher Rankings And More Qualified Leads
Author: SanjuSeo
6. Why Businesses Choose A Custom Web Development Company In India For Scalable Digital Solutions
Author: Nikhat Parveen
7. How To Develop An Adult Website: A Complete Development Guide
Author: Cloudy Bites
8. Why Ai Chatbots Became The First Thing Enterprises Upgraded In 2026
Author: RemoteState
9. What Is The Difference Between Custom And Ready-made Cryptocurrency Wallet Development?
Author: avery
10. Seo Company In Chennai: Your Partner For Long-term Online Success
Author: brainmetech
11. Stress-free Website Redesign Process
Author: VPS9
12. How Long Does It Take For Cpanel Website Setup?
Author: Scope Hosts
13. Why Custom Crm Development Is Essential For Growing Businesses
Author: Proses India
14. Mobile App Design In Hyderabad, Logo & Branding In Hyderabad And Ai Automations Company In Hyderabad
Author: weblinksolutions
15. Web Development Company In Hyderabad – Build A Strong Digital Presence
Author: weblinksolutions






