Skip to content

Commit

Permalink
Implement IsInline helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
demget committed Dec 8, 2019
1 parent 53bfa49 commit f286f15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions callbacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ type Callback struct {
Data string `json:"data"`
}

// IsInline says whether message is an inline message.
func (c *Callback) IsInline() bool {
return c.MessageID != ""
}

// CallbackResponse builds a response to a Callback query.
//
// See also: https://core.telegram.org/bots/api#answerCallbackQuery
Expand Down

0 comments on commit f286f15

Please sign in to comment.