You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
telebot/inline.go

16 lines
370 B
Go

package telebot
// Query is an incoming inline query. When the user sends
// an empty query, your bot could return some default or
// trending results.
type Query struct {
ID string `json:"id"`
From User `json:"from"`
Text string `json:"query"`
}
// This object represents one result of an inline query.
type Result interface {
MarshalJSON() ([]byte, error)
}