Documentation ¶
Index ¶
- func ContainsFiles(message types.Message) bool
- type Client
- func (ctx *Client) DownloadBytes(fileId string) ([]byte, error)
- func (ctx *Client) DownloadFile(fileId, filePath string) error
- func (ctx *Client) DownloadMessage(message types.Message, filePath string) error
- func (ctx *Client) Invoke(method rawTypes.Method) (*rawTypes.Result, error)
- func (ctx *Client) OnCallbackQuery(handler func(update types.CallbackQuery))
- func (ctx *Client) OnChannelPost(handler func(update types.Message))
- func (ctx *Client) OnChatJoinRequest(handler func(update types.ChatJoinRequest))
- func (ctx *Client) OnChatMember(handler func(update types.ChatMemberUpdated))
- func (ctx *Client) OnChosenInlineResult(handler func(update types.ChosenInlineResult))
- func (ctx *Client) OnCommand(command string, aliasList []string, handler func(update types.Message))
- func (ctx *Client) OnEditedChannelPost(handler func(update types.Message))
- func (ctx *Client) OnEditedMessage(handler func(update types.Message))
- func (ctx *Client) OnInlineQuery(handler func(update types.InlineQuery))
- func (ctx *Client) OnMessage(handler func(update types.Message))
- func (ctx *Client) OnMyChatMember(handler func(update types.ChatMemberUpdated))
- func (ctx *Client) OnPoll(handler func(update types.Poll))
- func (ctx *Client) OnPollAnswer(handler func(update types.PollAnswer))
- func (ctx *Client) OnPreCheckoutQuery(handler func(update types.PreCheckoutQuery))
- func (ctx *Client) OnRawUpdate(handler func(update types.Update))
- func (ctx *Client) OnShippingQuery(handler func(update types.ShippingQuery))
- func (ctx *Client) Run()
- func (ctx *Client) Start()
- func (ctx *Client) Stop()
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsFiles ¶ added in v1.0.9
Types ¶
type Client ¶
type Client struct { PollingTimeout time.Duration BotApiConfig Config Token string NoUpdates bool // contains filtered or unexported fields }
func (*Client) DownloadBytes ¶ added in v1.0.8
func (*Client) DownloadFile ¶ added in v1.0.8
func (*Client) DownloadMessage ¶ added in v1.0.8
func (*Client) OnCallbackQuery ¶
func (ctx *Client) OnCallbackQuery(handler func(update types.CallbackQuery))
func (*Client) OnChannelPost ¶
func (*Client) OnChatJoinRequest ¶
func (ctx *Client) OnChatJoinRequest(handler func(update types.ChatJoinRequest))
func (*Client) OnChatMember ¶
func (ctx *Client) OnChatMember(handler func(update types.ChatMemberUpdated))
func (*Client) OnChosenInlineResult ¶
func (ctx *Client) OnChosenInlineResult(handler func(update types.ChosenInlineResult))
func (*Client) OnEditedChannelPost ¶
func (*Client) OnEditedMessage ¶
func (*Client) OnInlineQuery ¶
func (ctx *Client) OnInlineQuery(handler func(update types.InlineQuery))
func (*Client) OnMyChatMember ¶
func (ctx *Client) OnMyChatMember(handler func(update types.ChatMemberUpdated))
func (*Client) OnPollAnswer ¶
func (ctx *Client) OnPollAnswer(handler func(update types.PollAnswer))
func (*Client) OnPreCheckoutQuery ¶
func (ctx *Client) OnPreCheckoutQuery(handler func(update types.PreCheckoutQuery))
func (*Client) OnRawUpdate ¶
func (*Client) OnShippingQuery ¶
func (ctx *Client) OnShippingQuery(handler func(update types.ShippingQuery))
Source Files ¶
Click to show internal directories.
Click to hide internal directories.