Categorygithub.com/aliforever/go-telegram-bot-api
repositorypackage
0.4.2
Repository: https://github.com/aliforever/go-telegram-bot-api.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

Go-Telegram-Bot-API

Download

go get -u github.com/aliforever/go-telegram-bot-api

Import

import "github.com/aliforever/go-telegram-bot-api"

Usage

botToken := "" // Place your bot token here
bot, err := tgbotapi.NewTelegramBot(botToken)
if err != nil {
    fmt.Println(err)
    return
}

chatId := int64(0) // Place your chatId here
bot.Send(bot.Message().SetChatId(chatId).SetText("Hello!"))