telegram

package
v0.0.0-...-0ccd2d0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

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

func New

func New(token string, chatID int) (*Bot, error)

func (*Bot) HandleChat

func (b *Bot) HandleChat(chatID int64, skipReply bool, handler func(string))

func (*Bot) HandleCommand

func (b *Bot) HandleCommand(command string, handler func(string))

func (*Bot) Print

func (b *Bot) Print(v ...interface{})

func (*Bot) Run

func (b *Bot) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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