tgbot

package module
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 15 Imported by: 0

README

Telegram Bot

...

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrHTTPBody = errors.New(`read body fail`)
View Source
var ErrHTTPCode = errors.New(`http code is not 200`)
View Source
var ErrNoOK = errors.New(`api fail: no "ok:true"`)

Functions

This section is empty.

Types

type Agent added in v1.0.2

type Agent interface {
	PrivateChat()
	GroupChat()
}

type Bot

type Bot struct {
	ID    uint64
	Token string
}

func NewBot

func NewBot(token string) (*Bot, error)

func (*Bot) API

func (b *Bot) API() *api

type ISendPhoto added in v1.0.5

type ISendPhoto interface {
	GetReplyParameters() *pb.ReplyParameters
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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