ybot

package
v0.0.0-...-088f13f Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCtx

func AddCtx(ctx context.Context) telebot.MiddlewareFunc

func AddLogger

func AddLogger(next telebot.HandlerFunc) telebot.HandlerFunc

func AddTag

func AddTag(tag string) telebot.MiddlewareFunc

func Ctx

func Ctx(c telebot.Context) context.Context

func EscapeMarkdownV2

func EscapeMarkdownV2(s string) string

func InviteCode

func InviteCode() string

func InviteUrl

func InviteUrl(username, code string) string

func Lang

func Lang(c telebot.Context) string

func LogEvent

func LogEvent(next telebot.HandlerFunc) telebot.HandlerFunc

func Logger

func Logger(c telebot.Context) *slog.Logger

func MultiButtonMenu

func MultiButtonMenu(arg ...string) *telebot.ReplyMarkup

func NotifyTyping

func NotifyTyping(ctx context.Context, c telebot.Context) context.CancelFunc

func Sequential

func Sequential(keyFn func(c telebot.Context) string) telebot.MiddlewareFunc

func SingleButtonMenu

func SingleButtonMenu(id, text string) *telebot.ReplyMarkup

func Tag

func Tag(c telebot.Context) string

func TakeMutex

func TakeMutex(m *sync.RWMutex) telebot.MiddlewareFunc

Types

type Writer

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

func NewWriter

func NewWriter(ctx context.Context, bot *telebot.Bot, msg telebot.Editable) *Writer

func (*Writer) Close

func (w *Writer) Close()

func (*Writer) String

func (w *Writer) String() string

func (*Writer) Write

func (w *Writer) Write(s string)

Jump to

Keyboard shortcuts

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