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.
main.go
- file for debugging purposes locally. You need to setTOKEN
env variable and changeYOUR_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.