/go-telegram-bot

Repo to play around with telegram api using go

Primary LanguageGo

golang-telegram-bot

Simple telegram bot written in golang. I'll try to implement it from scratch without using any libraries.

Resources:

  1. Basic tutorial (meant to run with webhooks)

    https://medium.com/swlh/build-a-telegram-bot-in-go-in-9-minutes-e06ad38acef1

  2. Getting updates from telegram (long-polling method)

    https://core.telegram.org/bots/api#getupdates

  3. More on long-polling (server-side):

    http://www.golangpatterns.info/web/long-poll-server

    https://github.com/jcuga/golongpoll

    https://en.wikipedia.org/wiki/Push_technology#Long_polling

  4. Sqlite3 with golang

    https://www.allhandsontech.com/programming/golang/how-to-use-sqlite-with-go/

    https://github.com/mattn/go-sqlite3

    https://earthly.dev/blog/golang-sqlite/

  5. Calling functions dynamically

    https://medium.com/@vicky.kurniawan/go-call-a-function-from-string-name-30b41dcb9e12

    https://github.com/huahuayu/go-dynamic-call