telegram

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	START_CMD = "/start"
	PING_CMD  = "/ping"
	ADD_AD    = "/add_ad"
	DEL_AD    = "/del_ad"
	ALL_AD    = "/all_ad"
)

Variables

View Source
var Bot *tb.Bot
View Source
var (
	TgUserIdMapToCaptchaSession sync.Map
)

Functions

func AdBlock

func AdBlock(c tb.Context) error

AdBlock 广告阻止

func AddAd

func AddAd(c tb.Context) error

func AllAd

func AllAd(c tb.Context) error

func BotStart

func BotStart()

BotStart 机器人启动

func DelAd

func DelAd(c tb.Context) error

func LoadAdMenuBtn

func LoadAdMenuBtn(menu *tb.ReplyMarkup)

LoadAdMenuBtn 加载广告

func ManageBan

func ManageBan() func(c tb.Context) error

ManageBan 管理员手动禁止

func ManagePass

func ManagePass() func(c tb.Context) error

ManagePass 管理员手动通过

func OnTextMessage

func OnTextMessage(c tb.Context) error

OnTextMessage 文本消息

func RegisterHandle

func RegisterHandle()

RegisterHandle 注册处理器

func RunSyncTask added in v0.0.2

func RunSyncTask()

func StartCaptcha

func StartCaptcha(c tb.Context) error

StartCaptcha 开始验证

func TimeoutLeaveGroupToUser added in v0.0.2

func TimeoutLeaveGroupToUser()

TimeoutLeaveGroupToUser 一直没有验证就把用户踢出群

func UserJoinGroup

func UserJoinGroup(c tb.Context) error

UserJoinGroup 用户加群事件

func VerificationProcess

func VerificationProcess(c tb.Context) error

VerificationProcess 验证处理

Types

This section is empty.

Jump to

Keyboard shortcuts

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