tg_bot

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Host  string `json:"host"`
	Token string `json:"token"`
}

type TgBot

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

func New

func New(options Options) *TgBot

type TgClient

type TgClient interface {
	SendMessage(chatID int, text string) error
	Updates(offset int, limit int) ([]telegram.Update, error)
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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