Fix inlinebutton With func

the InlineButton With func returned a new button with it's url property mangled (t.Text instead of t.URL)
this caused telegram to respoind with 400
pull/324/head
profawk 4 years ago committed by GitHub
parent ecf4ef2231
commit e6c93d3fdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -82,7 +82,7 @@ func (t *InlineButton) With(data string) *InlineButton {
return &InlineButton{
Unique: t.Unique,
Text: t.Text,
URL: t.Text,
URL: t.URL,
InlineQuery: t.InlineQuery,
InlineQueryChat: t.InlineQueryChat,
Login: t.Login,

Loading…
Cancel
Save