Documentation
¶
Index ¶
- Constants
- Variables
- func New(token AuthToken, opts ...Options) (core.Client, error)
- func NewUploading(file io.Reader, opts ...UploadingOptions) ht.MultipartFile
- func NewWebhookHandler(ctx context.Context, client core.Client, commands ...command.Command) (command.Handler, error)
- type AuthToken
- type Client
- type Command
- type CommandList
- type FileNode
- type Fmt
- type GroupList
- type OptInt
- type Options
- type Pagination
- type UploadingOptions
- type UserList
- type WebhookHandler
- type WebhookServer
Constants ¶
View Source
const (
// MaxTextLen is the maximum length of the text being sent.
MaxTextLen = 2_000
)
Variables ¶
View Source
var ( // Tag is a singleton to get tags for messages. Tag = core.Tag{} )
Functions ¶
func NewUploading ¶
func NewUploading(file io.Reader, opts ...UploadingOptions) ht.MultipartFile
func NewWebhookHandler ¶
func NewWebhookHandler( ctx context.Context, client core.Client, commands ...command.Command, ) (command.Handler, error)
NewWebhookHandler create a new command.Handler that implements WebhookHandler.
Types ¶
type CommandList ¶
type CommandList = []Command
type Fmt ¶
Fmt is a string wrapper to add additional formatting to the underlying string via corresponding methods.
type Pagination ¶
type Pagination = core.Pagination
type UploadingOptions ¶
type UploadingOptions = core.UploadingOptions
type WebhookHandler ¶
type WebhookHandler = api.WebhookHandler
type WebhookServer ¶
type WebhookServer = api.WebhookServer
func NewWebhookServer ¶
func NewWebhookServer(handler WebhookHandler, token AuthToken) (*WebhookServer, error)
NewWebhookServer creates a new WebhookServer with the given handler and token.
Click to show internal directories.
Click to hide internal directories.