Skip to content

Commit d638757

Browse files
committed
go fmt
1 parent 5859ba3 commit d638757

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

bot.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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.
2121
type 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

types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package tgbotapi
33
import (
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.

0 commit comments

Comments
 (0)