GoGram
Telegram MTProto API Framework for Golang
What is Gogram?
This library modern, elegant and asynchronous MTProto API framework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot identity (bot API alternative) using Golang.
Quick start
This is a simple example of how to create a client and send a message to a bot.
main.go
package main
import (
"github.com/amarnathcjd/gogram/telegram"
)
func main() {
client, _ := telegram.NewClient(telegram.ClientConfig{
AppID: 6,
AppHash: "app_hash",
})
client.Start()
client.SendMessage("@stickeroptimizerbot", "/start")
}
Support and Contribution
If you have any questions or suggestions, feel free to open an issue or a pull request. We are always happy to help you with your problems or improve the library.
If youβd like to support Gogram, you can consider:
Become a GitHub Sponsor