Skip to content

mike-kob/GetProfileBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GetProfile Telegram Bot

This is code for GetMe Bot. This bot returns profile info that Telegram sends to bot with every update without any additional permissions.

It may be useful, if you need to look up your telegram ID, for example for bot development purposes.

Project structure

  • main.go - file for debugging purposes locally. You need to set TOKEN env variable and change YOUR_URL to the URL, to which you want to recieve updates (for example, ngrok tunnel URL).
  • api/update.go - file that is used by Vercel to make cloud function. Contains handler function (docs) and the main logic of the bot.

About

Telegram bot in Go that returns user info

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages