all repos — telegram-bot-api @ 963864785d6eca2390e47049021c243854079e6b

Golang bindings for the Telegram Bot API

Remove double call of strings.SplitN
Давид Мзареулян david@hiero.ru
Sat, 18 Mar 2017 14:42:30 +0300
commit

963864785d6eca2390e47049021c243854079e6b

parent

f5c6a478a0e3271a51649c64661ac90ed3d30bf1

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

jump to
M types.gotypes.go

@@ -194,7 +194,7 @@ if len(split) != 2 {

return "" } - return strings.SplitN(m.Text, " ", 2)[1] + return split[1] } // MessageEntity contains information about data in a Message.