Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
API *tgbot.Bot
Client *transmission.TransmissionClient
Config *config.Config
Logger *slog.Logger
// contains filtered or unexported fields
}
Bot manages the Telegram bot and Transmission client interaction.
func New ¶
func New(ctx context.Context, cfg *config.Config, client *transmission.TransmissionClient, logger *slog.Logger) (*Bot, error)
New creates a new Bot instance and performs the Telegram startup calls.
func (*Bot) Send ¶
Send sends a message to a chat, splitting long messages safely. Returns the message ID of the last sent message.