File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,16 @@ import (
1313 "net/url"
1414 "os"
1515 "strconv"
16- "time"
1716 "strings"
17+ "time"
1818)
1919
2020// BotAPI has methods for interacting with all of Telegram's Bot API endpoints.
2121type BotAPI struct {
22- Token string `json:"token"`
23- Debug bool `json:"debug"`
24- Self User `json:"-"`
25- Client * http.Client `json:"-"`
22+ Token string `json:"token"`
23+ Debug bool `json:"debug"`
24+ Self User `json:"-"`
25+ Client * http.Client `json:"-"`
2626}
2727
2828// NewBotAPI creates a new BotAPI instance.
@@ -198,7 +198,7 @@ func (bot *BotAPI) GetMe() (User, error) {
198198 return user , nil
199199}
200200
201- func (bot * BotAPI ) IsMessageToMe (message Message ) ( bool ) {
201+ func (bot * BotAPI ) IsMessageToMe (message Message ) bool {
202202 return strings .Contains (message .Text , "@" + bot .Self .UserName )
203203}
204204
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ package tgbotapi
33import (
44 "encoding/json"
55 "fmt"
6- "time"
76 "strings"
7+ "time"
88)
99
1010// APIResponse is a response from the Telegram API with the result stored raw.
You can’t perform that action at this time.
0 commit comments