go fmt
This commit is contained in:
parent
5859ba3970
commit
d638757359
2 changed files with 7 additions and 7 deletions
4
bot.go
4
bot.go
|
@ -13,8 +13,8 @@ import (
|
|||
"net/url"
|
||||
"os"
|
||||
"strconv"
|
||||
"time"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
// BotAPI has methods for interacting with all of Telegram's Bot API endpoints.
|
||||
|
@ -198,7 +198,7 @@ func (bot *BotAPI) GetMe() (User, error) {
|
|||
return user, nil
|
||||
}
|
||||
|
||||
func (bot *BotAPI) IsMessageToMe(message Message) (bool) {
|
||||
func (bot *BotAPI) IsMessageToMe(message Message) bool {
|
||||
return strings.Contains(message.Text, "@"+bot.Self.UserName)
|
||||
}
|
||||
|
||||
|
|
2
types.go
2
types.go
|
@ -3,8 +3,8 @@ package tgbotapi
|
|||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"time"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
// APIResponse is a response from the Telegram API with the result stored raw.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue