Hello World
This example demonstrates a basic API usage
main.go
package main
import (
"fmt"
"github.com/amarnathcjd/gogram/telegram"
)
func main() {
client, _ := telegram.NewClient(telegram.ClientConfig{ // Create a new client
AppID: 6,
AppHash: "app_hash",
})
client.Start()
client.SendMessage("me", "Hello World!")
}