bot

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Bot *telego.Bot
)

Functions

func AddTaskReplyMarkup

func AddTaskReplyMarkup(messageID int) *telego.InlineKeyboardMarkup

func AddToQueue

func AddToQueue(ctx context.Context, bot *telego.Bot, query telego.CallbackQuery)

func ChangeSilentMode

func ChangeSilentMode(ctx context.Context, bot *telego.Bot, message telego.Message)

func CleanReceivedFile

func CleanReceivedFile(ctx context.Context, bot *telego.Bot, message telego.Message)

func EscapeMarkdown

func EscapeMarkdown(text string) string

func FileDownloadURL

func FileDownloadURL(filePath string) string

func HandleFileMessage

func HandleFileMessage(ctx context.Context, bot *telego.Bot, message telego.Message)

func Help

func Help(ctx context.Context, bot *telego.Bot, message telego.Message)

func Init

func Init()

func ReplyMessage

func ReplyMessage(replyTo telego.Message, format string, args ...any) (*telego.Message, error)

func Run

func Run()

func SaveFile

func SaveFile(ctx context.Context, bot *telego.Bot, message telego.Message)

func SetDefaultStorage

func SetDefaultStorage(ctx context.Context, bot *telego.Bot, message telego.Message)

func Start

func Start(ctx context.Context, bot *telego.Bot, message telego.Message)

Types

This section is empty.

Jump to

Keyboard shortcuts

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