Skip to content

gkiryaziev/Go-Telegram.Bot-WebHook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Bot (Golang / Ngrok / WebHook)

Info

This is Telegram Bot, written in Go language with WebHook.
The answer comes to the local server through the Ngrok service.
It's a shit-code, but it works, I was just too lazy to make it beautiful ;D.

Usage

- create bot and get token
- set token and local port in main.go file
- build and run server
- run ngrok and get https url
- set webhook with token and url sending GET request in favorite browser
- enjoy

WebHook Link

https://api.telegram.org/botYOURTOKEN/setWebhook?url=https://f2368743.ngrok.io/api/v1/update

Ngrok screenshot

Alt text

About

Telegram Bot (Golang / Ngrok / WebHook)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages