all repos — telegram-bot-api @ 3dbc5f3892080163fb6ca95887c9c07ed7aa2149

Golang bindings for the Telegram Bot API

Remove other deprecated method.
Syfaro syfaro@foxpaw.in
Mon, 04 Jan 2016 11:19:13 -0600
commit

3dbc5f3892080163fb6ca95887c9c07ed7aa2149

parent

80e30d7c192be106dd6c5c3777fdf3705f3a3b4a

1 files changed, 0 insertions(+), 9 deletions(-)

jump to
M types.gotypes.go

@@ -123,15 +123,6 @@ func (m *Message) Time() time.Time {

return time.Unix(int64(m.Date), 0) } -// IsGroup returns if the message was sent to a group. -// -// Deprecated in favor of Chat.IsGroup. -func (m *Message) IsGroup() bool { - log.Println("Message.IsGroup is deprecated.") - log.Println("Please use Chat.IsGroup instead.") - return m.Chat.IsGroup() -} - // IsCommand returns true if message starts with '/'. func (m *Message) IsCommand() bool { return m.Text != "" && m.Text[0] == '/'