Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tucnak committed Aug 5, 2015
1 parent 4a633dc commit 0192b09
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (b Bot) Listen(subscription chan<- Message, timeout time.Duration) {
go func() {
latestUpdate := 0
for {
if updates, err := getUpdates(b.Token, latestUpdate+1, int(timeout / time.Second)); err == nil {
if updates, err := getUpdates(b.Token, latestUpdate+1, int(timeout/time.Second)); err == nil {
for _, update := range updates {
latestUpdate = update.ID
subscription <- update.Payload
Expand Down
3 changes: 0 additions & 3 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ type ReplyMarkup struct {
// has selected the bot‘s message and tapped "Reply").
ForceReply bool `json:"force_reply,omitempty"`


// CustomKeyboard is Array of button rows, each represented by an Array of Strings.
//
// Note: you don't need to set HideCustomKeyboard field to show custom keyboard.
Expand All @@ -32,13 +31,11 @@ type ReplyMarkup struct {
// Requests clients to hide the keyboard as soon as it's been used. Defaults to false.
OneTimeKeyboard bool `json:"one_time_keyboard,omitempty"`


// Requests clients to hide the custom keyboard.
//
// Note: You dont need to set CustomKeyboard field to hide custom keyboard.
HideCustomKeyboard bool `json:"hide_keyboard,omitempty"`


// Use this param if you want to force reply from
// specific users only.
//
Expand Down

0 comments on commit 0192b09

Please sign in to comment.