more comments on things
This commit is contained in:
parent
07072ebce7
commit
90c48448d2
2 changed files with 4 additions and 0 deletions
3
bot.go
3
bot.go
|
@ -1,3 +1,4 @@
|
|||
// Methods for interacting with the Telegram Bot API.
|
||||
package tgbotapi
|
||||
|
||||
type BotApi struct {
|
||||
|
@ -7,6 +8,8 @@ type BotApi struct {
|
|||
Updates chan Update `json:"-"`
|
||||
}
|
||||
|
||||
// Creates a new BotApi instance.
|
||||
// Requires a token, provided by @BotFather on Telegram
|
||||
func NewBotApi(token string) (*BotApi, error) {
|
||||
bot := &BotApi{
|
||||
Token: token,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue