Minor documentation fixes

pull/3/head
Ilya Kowalewski 9 years ago
parent 4bb4333bb1
commit 37f537bfab

@ -1,2 +1,4 @@
# telebot
Telegram bot framework written in Go
# Telebot
>Telegram bot framework written in Go
TBA.

@ -1,5 +1,6 @@
package telebot
// Login error, which basically occurs on broken token.
type AuthError struct {
Payload string
}

@ -1,3 +1,5 @@
// Package telebot provides a handy wrapper for interactions
// with Telegram bots.
package telebot
import (
@ -9,10 +11,11 @@ import (
type Bot struct {
Token string
// A "user" behind bot instance
// Bot as `User` on API level.
Identity User
}
// Attempts to construct a Bot with `token` given.
func Create(token string) (Bot, error) {
request := "https://api.telegram.org/bot" + token + "/getMe"

Loading…
Cancel
Save