package main
import (
"github.com/amarnathcjd/gogram/telegram"
)
func main() {
// Create a new Telegram client with your API credentials
client, _ := telegram.NewClient(telegram.ClientConfig{
AppID: 6, // Your API ID from my.telegram.org
AppHash: "YOUR_APP_HASH", // Your API Hash from my.telegram.org
})
// Authenticate as a bot using token from @BotFather
client.LoginBot("YOUR_BOT_TOKEN")
// Send a message to yourself (Saved Messages)
// "me" is a special identifier for your own Saved Messages
client.SendMessage("me", "hello world!")
}