tg

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenWebhook

func ListenWebhook(
	ctx context.Context,
	addr string,
	path string,
	whFunc http.HandlerFunc,
	logger *slog.Logger,
) error

func NewServer

func NewServer(opt *server.Opt, logger *slog.Logger) *server.Server

func ServerOptions

func ServerOptions() *server.Opt

Types

type Client

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

func New

func New(token string, logger *slog.Logger) *Client

func (*Client) SendMessage

func (c *Client) SendMessage(ctx context.Context, body tgmodel.SendMessage) (*tgmodel.Message, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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