mirror of
https://github.com/tucnak/telebot
synced 2024-11-05 06:00:58 +00:00
keyboards: fixed url and query constructors
This commit is contained in:
parent
49a392391a
commit
ef05beb4e7
12
options.go
12
options.go
@ -206,17 +206,17 @@ func(r *ReplyMarkup) Text(unique,text string) Btn {
|
||||
return Btn{Unique: unique, Text: text}
|
||||
}
|
||||
|
||||
func(r *ReplyMarkup) URL(unique,url string) Btn {
|
||||
return Btn{Unique: unique, URL: url}
|
||||
func(r *ReplyMarkup) URL(unique,text,url string) Btn {
|
||||
return Btn{Unique: unique, Text: text, URL: url}
|
||||
}
|
||||
|
||||
|
||||
func(r *ReplyMarkup) Query(unique string, query string) Btn {
|
||||
return Btn{Unique: unique, InlineQuery: query}
|
||||
func(r *ReplyMarkup) Query(unique string, text,query string) Btn {
|
||||
return Btn{Unique: unique,Text: text, InlineQuery: query}
|
||||
}
|
||||
|
||||
func(r *ReplyMarkup) QueryChat(unique string, query string) Btn {
|
||||
return Btn{Unique: unique, InlineQueryChat: query}
|
||||
func(r *ReplyMarkup) QueryChat(unique string, text,query string) Btn {
|
||||
return Btn{Unique: unique,Text: text, InlineQueryChat: query}
|
||||
}
|
||||
|
||||
func(r *ReplyMarkup) Login(unique,text string,login *Login) Btn {
|
||||
|
Loading…
Reference in New Issue
Block a user