telegram

package
v4.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSwitchInlineQueryCurrentChat

func NewSwitchInlineQueryCurrentChat(q string) *string

NewSwitchInlineQueryCurrentChat returns a pointer to a string which can be passed to InlineKeyboardButton.

Types

type AnswerCallbackQueryRequest

type AnswerCallbackQueryRequest struct {
	CallbackQueryID string
	Text            string
}

type AnswerInlineQueryRequest

type AnswerInlineQueryRequest struct {
	InlineQueryID string
	Results       []InlineQueryResult
	CacheTime     int
	IsPersonal    bool
}

type Client

type Client interface {
	Do(request Request) error
}

func NewClient

func NewClient(token string, httpClient *http.Client) (Client, error)

type EditMessageTextRequest

type EditMessageTextRequest struct {
	ChatID          int64
	MessageID       int
	InlineMessageID string
	Text            string
	ParseMode       string
	ReplyMarkup     InlineKeyboardMarkup
}

type Error

type Error struct {
	Description string
}

func (Error) Error

func (err Error) Error() string

type ForceReply

type ForceReply struct {
	Selective bool
}

func NewForceReply

func NewForceReply(selective bool) ForceReply

NewForceReply is a convenience function for creating a ForceReply.

type InlineKeyboardButton

type InlineKeyboardButton struct {
	Text                         string
	CallbackData                 string
	SwitchInlineQueryCurrentChat *string
}

type InlineKeyboardMarkup

type InlineKeyboardMarkup struct {
	InlineKeyboard [][]InlineKeyboardButton
}

type InlineQueryResult added in v4.2.0

type InlineQueryResult interface {
	// contains filtered or unexported methods
}

type InlineQueryResultArticle added in v4.2.0

type InlineQueryResultArticle struct {
	ID                  string
	Title               string
	Description         string
	ThumbURL            string
	InputMessageContent InputMessageContent
	ReplyMarkup         InlineKeyboardMarkup
}

type InputMessageContent added in v4.2.0

type InputMessageContent interface {
	// contains filtered or unexported methods
}

type InputTextMessageContent added in v4.2.0

type InputTextMessageContent struct {
	MessageText string
	ParseMode   string
}

type KeyboardButton

type KeyboardButton struct {
	Text string
}

type ReplyKeyboardMarkup

type ReplyKeyboardMarkup struct {
	Keyboard       [][]KeyboardButton
	ResizeKeyboard bool
}

type ReplyKeyboardRemove

type ReplyKeyboardRemove struct {
}

type ReplyMarkup

type ReplyMarkup interface {
	// contains filtered or unexported methods
}

type Request

type Request interface {
	// contains filtered or unexported methods
}

type SendMessageRequest

type SendMessageRequest struct {
	ChatID           int64
	Text             string
	ParseMode        string
	ReplyToMessageID int
	ReplyMarkup      ReplyMarkup
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL