2015-06-26 06:26:24 +02:00
|
|
|
package tgbotapi
|
2015-06-25 07:34:05 +02:00
|
|
|
|
2015-06-26 06:26:24 +02:00
|
|
|
type BotApi struct {
|
|
|
|
Token string `json:"token"`
|
|
|
|
Debug bool `json:"debug"`
|
|
|
|
Updates chan Update `json:"-"`
|
2015-06-25 07:34:05 +02:00
|
|
|
}
|
|
|
|
|
2015-06-26 06:26:24 +02:00
|
|
|
func NewBotApi(token string) *BotApi {
|
|
|
|
return &BotApi{
|
|
|
|
Token: token,
|
2015-06-25 23:15:28 +02:00
|
|
|
}
|
|
|
|
}
|