Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 746 Bytes

README.md

File metadata and controls

26 lines (22 loc) · 746 Bytes

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