- create telegram bot search in your telegram
BotFatherand typing/newbotand enter - typing your naming boot example tes_bot and enter
_botis required in your last name - if your success your have recived message token save your token
- copy environment variable with your terminal
cp .env-sample .env- fill the TELEGRAM_TOKEN your bot token in
.env
go run server.go- using
localhost.run - in your terminal
ssh -R 80:localhost:8080 ssh.localhost.runafter your running ssh yout have tunnel url
ex root-fa5d3df2.localhost.run
running curl
curl -F "url=your-tunnel-localhost.run" https://api.telegram.org/botYOUR_BOT_TOKEN_HERE/setWebhook