options: go fmt

pull/292/head
dande 4 years ago
parent ef05beb4e7
commit ef00a90aef

@ -1366,6 +1366,6 @@ func (b *Bot) SetCommands(cmds []Command) error {
return err
}
func(b *Bot) NewMarkup() *ReplyMarkup{
func (b *Bot) NewMarkup() *ReplyMarkup {
return &ReplyMarkup{}
}
}

@ -91,7 +91,7 @@ func (t *InlineButton) With(data string) *InlineButton {
InlineQueryChat: t.InlineQueryChat,
Login: t.Login,
Data: data,
Data: data,
}
}

@ -161,6 +161,7 @@ func (pt PollType) MarshalJSON() ([]byte, error) {
}
type row []Btn
func (r *ReplyMarkup) Row(many ...Btn) row {
return many
}
@ -202,36 +203,35 @@ func (r *ReplyMarkup) Reply(rows ...row) {
r.ReplyKeyboard = replyKeys
}
func(r *ReplyMarkup) Text(unique,text string) Btn {
func (r *ReplyMarkup) Text(unique, text string) Btn {
return Btn{Unique: unique, Text: text}
}
func(r *ReplyMarkup) URL(unique,text,url string) Btn {
func (r *ReplyMarkup) URL(unique, text, url string) Btn {
return Btn{Unique: unique, Text: text, URL: url}
}
func(r *ReplyMarkup) Query(unique string, text,query string) Btn {
return Btn{Unique: unique,Text: text, 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, text,query string) Btn {
return Btn{Unique: unique,Text: text, 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 {
func (r *ReplyMarkup) Login(unique, text string, login *Login) Btn {
return Btn{Unique: unique, Login: login, Text: text}
}
func(r *ReplyMarkup) Contact(text string) Btn {
return Btn{Contact:true, Text: text}
func (r *ReplyMarkup) Contact(text string) Btn {
return Btn{Contact: true, Text: text}
}
func(r *ReplyMarkup) Location(text string) Btn {
return Btn{Location:true, Text: text}
func (r *ReplyMarkup) Location(text string) Btn {
return Btn{Location: true, Text: text}
}
func(r *ReplyMarkup) Poll(poll PollType) Btn {
func (r *ReplyMarkup) Poll(poll PollType) Btn {
return Btn{Poll: poll}
}

Loading…
Cancel
Save