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. How Corporate Powerpoint Trends Are Changing Client Pitches In 2026Author: Visual Spiders
2. How Long Does It Take To Build A Custom Dental Website Design For A Clinic?
Author: PSM Canada
3. Important Benefits Of Choosing Professional Website Design
Author: Liam Mackie
4. What Are The Key Benefits Of Using A Flash Loan Bot For Crypto Trading?
Author: avery
5. Smart Business Solutions By Easywebplans It Llc
Author: Easywebplans
6. Why Website Speed Matters For Google Rankings In 2026
Author: Abhiit
7. The Valuable And Amazing Website Development Company Bhubaneswar
Author: Algopage IT Solutions Pvt. Ltd.
8. Ecommerce Development Company In Dubai: Creating Future-ready Online Stores
Author: Nitin Guleria
9. Why Custom Crm Is Better Than Saas
Author: Creamerz Soft
10. Web Designing Companies In Ernakulam: Building High-performance Websites For Business Growth
Author: SanjuSeo
11. The Most Effective Benefits Of Choosing An Ecommerce Website Design
Author: Liam Mackie
12. Planning To Transform Business Efficiency: Choosthe Rightsoftware Companies In Kolkata
Author: James
13. Transform Your Ecommerce With Shopify Experts India
Author: Pradeep Sendhav
14. Why Should Landing Page Design Services And Ads Fall Under One Roof?
Author: Dart Digital Agency
15. How A Digital Marketing Agency In Pakistan Can Boost Your Online Sales
Author: ClickMasters Digital Marketing Team






