telegram

package
v0.0.0-...-bae6b6e Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conversation

type Conversation struct {
	// contains filtered or unexported fields
}

Conversation represents a conversation with a user.

type TelegramBot

type TelegramBot struct {
	// contains filtered or unexported fields
}

TelegramBot represents a Telegram bot instance

func New

func New(logger *slog.Logger, token string, r registrator, cc companyCommands, chc chatCommands) (*TelegramBot, error)

New creates a new TelegramBot instance

func (*TelegramBot) Run

func (b *TelegramBot) Run()

Run starts the bot

func (*TelegramBot) SendMessage

func (b *TelegramBot) SendMessage(ctx context.Context, msg entities.Message) error

SendMessage sends a message to the specified chat IDs using the Telegram bot API.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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