internal

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chat

type Chat = types.Chat

type ChatID

type ChatID = types.ChatID

type ChatType

type ChatType = types.ChatType

type MessageID

type MessageID = types.MessageID

type ParseMode

type ParseMode = types.ParseMode

type Requester

type Requester interface {
	io.Closer
	GetMe(ctx context.Context) (botName string, err error)
	GetChat(ctx context.Context, chatID ChatID) (*Chat, error)
	SendMessageToChat(ctx context.Context, chatID ChatID, messageText string, args ...interface{}) error
	SendMessageToTopic(
		ctx context.Context, chatID ChatID, topicID TopicThreadID, messageText string, args ...interface{},
	) error
	CheckTopic(ctx context.Context, topic *Topic) (bool, error)
	CreateTopic(ctx context.Context, topic *Topic) (topicID *TopicThreadID, err error)
}

func NewBotsGroup added in v1.0.4

func NewBotsGroup(ctx context.Context, parseMode ParseMode, botTokens ...string) (Requester, error)

func NewRequester

func NewRequester(
	botToken string,
	httpCli *http.Client,
	parseMode ParseMode,
) Requester

type Topic

type Topic = types.Topic

type TopicName

type TopicName = types.TopicName

type TopicThreadID

type TopicThreadID = types.TopicThreadID

type Topics

type Topics = types.Topics

Jump to

Keyboard shortcuts

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