bot

package
v0.0.0-...-fe6737b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadyParticipant   = tele.NewError(400, "Bad Request: USER_ALREADY_PARTICIPANT", "Bad Request: USER_ALREADY_PARTICIPANT")
	ErrChannelsTooMuch      = tele.NewError(400, "Bad Request: CHANNELS_TOO_MUCH", "Bad Request: CHANNELS_TOO_MUCH")
	ErrUserChannelsTooMuch  = tele.NewError(400, "Bad Request: USER_CHANNELS_TOO_MUCH", "Bad Request: USER_CHANNELS_TOO_MUCH")
	ErrHideRequesterMissing = tele.NewError(400, "Bad Request: HIDE_REQUESTER_MISSING", "Bad Request: HIDE_REQUESTER_MISSING")
	ErrUserIDInvalid        = tele.NewError(400, "Bad Request: USER_ID_INVALID", "Bad Request: USER_ID_INVALID")
)

made pr for this but till then we should implement it

Functions

This section is empty.

Types

type AnswerRequestResponse

type AnswerRequestResponse struct {
	Count      int
	Time       string
	Differance int
	After      int
	Succeed    int
	Failed     int
	FailRatio  int
}

type Bot

type Bot struct {
	*tele.Bot
	*layout.Layout
}

func New

func New(path string, setting tele.Settings) (*Bot, error)

func (*Bot) Start

func (b *Bot) Start()

type ChatID

type ChatID string

func (ChatID) Recipient

func (i ChatID) Recipient() string

Recipient returns chat ID (see Recipient interface).

Jump to

Keyboard shortcuts

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