botapi

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	PollingTimeout time.Duration
	BotApiConfig   Config
	Token          string
	// contains filtered or unexported fields
}

func (*Client) Invoke

func (ctx *Client) Invoke(method rawTypes.Method) (*rawTypes.Result, error)

func (*Client) OnCallbackQuery

func (ctx *Client) OnCallbackQuery(handler func(update types.CallbackQuery))

func (*Client) OnChannelPost

func (ctx *Client) OnChannelPost(handler func(update types.Message))

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) OnCommand

func (ctx *Client) OnCommand(command string, aliasList []string, handler func(update types.Message))

func (*Client) OnEditedChannelPost

func (ctx *Client) OnEditedChannelPost(handler func(update types.Message))

func (*Client) OnEditedMessage

func (ctx *Client) OnEditedMessage(handler func(update types.Message))

func (*Client) OnInlineQuery

func (ctx *Client) OnInlineQuery(handler func(update types.InlineQuery))

func (*Client) OnMessage

func (ctx *Client) OnMessage(handler func(update types.Message))

func (*Client) OnMyChatMember

func (ctx *Client) OnMyChatMember(handler func(update types.ChatMemberUpdated))

func (*Client) OnPoll

func (ctx *Client) OnPoll(handler func(update types.Poll))

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 (ctx *Client) OnRawUpdate(handler func(update types.Update))

func (*Client) OnShippingQuery

func (ctx *Client) OnShippingQuery(handler func(update types.ShippingQuery))

func (*Client) Run

func (ctx *Client) Run()

func (*Client) Start

func (ctx *Client) Start()

func (*Client) Stop

func (ctx *Client) Stop()

func (Client) Version

func (Client) Version() string

type Config

type Config struct {
	HostName string
	Port     int
	Https    bool
}

Directories

Path Synopsis
raw

Jump to

Keyboard shortcuts

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