all repos — telegram-bot-api @ 89bbb1edff353a7c6d10ef10cfd2675056ad8a58

Golang bindings for the Telegram Bot API

Merge pull request #82 from davidmz/patch-1

Remove double call of strings.SplitN
Syfaro syfaro@foxpaw.in
Mon, 20 Mar 2017 10:20:14 -0500
commit

89bbb1edff353a7c6d10ef10cfd2675056ad8a58

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.