|
|
|
@ -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) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|