telegram

package
v0.0.0-...-1239505 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: GPL-2.0-only

SPDX-License-Identifier: GPL-2.0-only

SPDX-License-Identifier: GPL-2.0-only

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderAuditProcReport

func RenderAuditProcReport(text string) (richText string)

func RenderKernelProcDisable

func RenderKernelProcDisable(text string) (rich string)

func RenderKernelProcEnable

func RenderKernelProcEnable(text string) (rich string)

func RenderUserMsgSub

func RenderUserMsgSub(text string) (rich string)

func RenderUserMsgUnsub

func RenderUserMsgUnsub(text string) (rich string)

func SetStandaloneMode

func SetStandaloneMode(db *sql.DB) (err error)

Types

type Bot

type Bot struct {
	Token   string
	OwnerID int64
	// contains filtered or unexported fields
}

func NewBot

func NewBot(token string, ownerID int64) *Bot

func (*Bot) Connect

func (b *Bot) Connect() (err error)

func (*Bot) SendHtmlToOwner

func (b *Bot) SendHtmlToOwner(text string) (err error)

func (*Bot) SendTextToOwner

func (b *Bot) SendTextToOwner(text string) (err error)

type TelegramWorker

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

func NewWorker

func NewWorker(token string, ownerID int64) *TelegramWorker

func (*TelegramWorker) Start

func (w *TelegramWorker) Start() (err error)

func (*TelegramWorker) Stop

func (w *TelegramWorker) Stop()

Jump to

Keyboard shortcuts

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