Documentation ¶
Index ¶
- Variables
- func LoadAdmin(dispatcher *ext.Dispatcher)
- func LoadAntiflood(dispatcher *ext.Dispatcher)
- func LoadAntispam(dispatcher *ext.Dispatcher)
- func LoadBans(dispatcher *ext.Dispatcher)
- func LoadBlacklists(dispatcher *ext.Dispatcher)
- func LoadBotUpdates(dispatcher *ext.Dispatcher)
- func LoadConnections(dispatcher *ext.Dispatcher)
- func LoadDev(dispatcher *ext.Dispatcher)
- func LoadDisabling(dispatcher *ext.Dispatcher)
- func LoadFilters(dispatcher *ext.Dispatcher)
- func LoadGreetings(dispatcher *ext.Dispatcher)
- func LoadHelp(dispatcher *ext.Dispatcher)
- func LoadLanguage(dispatcher *ext.Dispatcher)
- func LoadLocks(dispatcher *ext.Dispatcher)
- func LoadMisc(dispatcher *ext.Dispatcher)
- func LoadMkdCmd(dispatcher *ext.Dispatcher)
- func LoadMutes(dispatcher *ext.Dispatcher)
- func LoadNotes(dispatcher *ext.Dispatcher)
- func LoadPin(dispatcher *ext.Dispatcher)
- func LoadPurges(dispatcher *ext.Dispatcher)
- func LoadReports(dispatcher *ext.Dispatcher)
- func LoadRules(dispatcher *ext.Dispatcher)
- func LoadUsers(dispatcher *ext.Dispatcher)
- func LoadWarns(dispatcher *ext.Dispatcher)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GIF filters.Message = message.Animation OTHER filters.Message = func(msg *gotgbot.Message) bool { return msg.Game != nil || msg.Sticker != nil || GIF != nil } MEDIA filters.Message = func(msg *gotgbot.Message) bool { return msg.Audio != nil || msg.Document != nil || msg.VideoNote != nil || msg.Video != nil || msg.Voice != nil || msg.Photo != nil } MESSAGES filters.Message = func(msg *gotgbot.Message) bool { return msg.Text != "" || msg.Contact != nil || msg.Location != nil || msg.Venue != nil || MEDIA != nil || OTHER != nil } PREVIEW filters.Message = func(msg *gotgbot.Message) bool { for _, s := range msg.Entities { if s.Url != "" { return true } } return false } )
View Source
var ConnectionsModule = moduleStruct{/* contains filtered or unexported fields */}
View Source
var HelpModule = moduleStruct{ AbleMap: moduleEnabled{}, AltHelpOptions: make(map[string][]string), // contains filtered or unexported fields }
View Source
var PinsEnumFuncMap = map[int]func(b *gotgbot.Bot, ctx *ext.Context, pinT pinType, keyb *gotgbot.InlineKeyboardMarkup, replyMsgId int64) (*gotgbot.Message, error){ db.TEXT: func(b *gotgbot.Bot, ctx *ext.Context, pinT pinType, keyb *gotgbot.InlineKeyboardMarkup, replyMsgId int64) (*gotgbot.Message, error) { return b.SendMessage( ctx.EffectiveChat.Id, pinT.MsgText, &gotgbot.SendMessageOpts{ ParseMode: helpers.HTML, DisableWebPagePreview: true, ReplyToMessageId: replyMsgId, ReplyMarkup: keyb, AllowSendingWithoutReply: true, MessageThreadId: ctx.EffectiveMessage.MessageThreadId, }, ) }, db.STICKER: func(b *gotgbot.Bot, ctx *ext.Context, pinT pinType, keyb *gotgbot.InlineKeyboardMarkup, replyMsgId int64) (*gotgbot.Message, error) { return b.SendSticker( ctx.EffectiveChat.Id, pinT.FileID, &gotgbot.SendStickerOpts{ ReplyToMessageId: replyMsgId, ReplyMarkup: keyb, AllowSendingWithoutReply: true, MessageThreadId: ctx.EffectiveMessage.MessageThreadId, }, ) }, db.DOCUMENT: func(b *gotgbot.Bot, ctx *ext.Context, pinT pinType, keyb *gotgbot.InlineKeyboardMarkup, replyMsgId int64) (*gotgbot.Message, error) { return b.SendDocument( ctx.EffectiveChat.Id, pinT.FileID, &gotgbot.SendDocumentOpts{ ReplyToMessageId: replyMsgId, ParseMode: helpers.HTML, ReplyMarkup: keyb, Caption: pinT.MsgText, AllowSendingWithoutReply: true, MessageThreadId: ctx.EffectiveMessage.MessageThreadId, }, ) }, db.PHOTO: func(b *gotgbot.Bot, ctx *ext.Context, pinT pinType, keyb *gotgbot.InlineKeyboardMarkup, replyMsgId int64) (*gotgbot.Message, error) { return b.SendPhoto( ctx.EffectiveChat.Id, pinT.FileID, &gotgbot.SendPhotoOpts{ ReplyToMessageId: replyMsgId, ParseMode: helpers.HTML, ReplyMarkup: keyb, Caption: pinT.MsgText, AllowSendingWithoutReply: true, MessageThreadId: ctx.EffectiveMessage.MessageThreadId, }, ) }, db.AUDIO: func(b *gotgbot.Bot, ctx *ext.Context, pinT pinType, keyb *gotgbot.InlineKeyboardMarkup, replyMsgId int64) (*gotgbot.Message, error) { return b.SendAudio( ctx.EffectiveChat.Id, pinT.FileID, &gotgbot.SendAudioOpts{ ReplyToMessageId: replyMsgId, ParseMode: helpers.HTML, ReplyMarkup: keyb, Caption: pinT.MsgText, AllowSendingWithoutReply: true, MessageThreadId: ctx.EffectiveMessage.MessageThreadId, }, ) }, db.VOICE: func(b *gotgbot.Bot, ctx *ext.Context, pinT pinType, keyb *gotgbot.InlineKeyboardMarkup, replyMsgId int64) (*gotgbot.Message, error) { return b.SendVoice( ctx.EffectiveChat.Id, pinT.FileID, &gotgbot.SendVoiceOpts{ ReplyToMessageId: replyMsgId, ParseMode: helpers.HTML, ReplyMarkup: keyb, Caption: pinT.MsgText, AllowSendingWithoutReply: true, MessageThreadId: ctx.EffectiveMessage.MessageThreadId, }, ) }, db.VIDEO: func(b *gotgbot.Bot, ctx *ext.Context, pinT pinType, keyb *gotgbot.InlineKeyboardMarkup, replyMsgId int64) (*gotgbot.Message, error) { return b.SendVideo( ctx.EffectiveChat.Id, pinT.FileID, &gotgbot.SendVideoOpts{ ReplyToMessageId: replyMsgId, ParseMode: helpers.HTML, ReplyMarkup: keyb, Caption: pinT.MsgText, AllowSendingWithoutReply: true, MessageThreadId: ctx.EffectiveMessage.MessageThreadId, }, ) }, }
PinsEnumFuncMap A rather very complicated PinsEnumFuncMap Variable made by me to send filters in an appropriate way
Functions ¶
func LoadAdmin ¶
func LoadAdmin(dispatcher *ext.Dispatcher)
func LoadAntiflood ¶
func LoadAntiflood(dispatcher *ext.Dispatcher)
func LoadAntispam ¶
func LoadAntispam(dispatcher *ext.Dispatcher)
func LoadBans ¶
func LoadBans(dispatcher *ext.Dispatcher)
func LoadBlacklists ¶
func LoadBlacklists(dispatcher *ext.Dispatcher)
func LoadBotUpdates ¶
func LoadBotUpdates(dispatcher *ext.Dispatcher)
func LoadConnections ¶
func LoadConnections(dispatcher *ext.Dispatcher)
func LoadDev ¶
func LoadDev(dispatcher *ext.Dispatcher)
func LoadDisabling ¶
func LoadDisabling(dispatcher *ext.Dispatcher)
func LoadFilters ¶
func LoadFilters(dispatcher *ext.Dispatcher)
func LoadGreetings ¶
func LoadGreetings(dispatcher *ext.Dispatcher)
func LoadHelp ¶
func LoadHelp(dispatcher *ext.Dispatcher)
func LoadLanguage ¶
func LoadLanguage(dispatcher *ext.Dispatcher)
func LoadLocks ¶
func LoadLocks(dispatcher *ext.Dispatcher)
func LoadMisc ¶
func LoadMisc(dispatcher *ext.Dispatcher)
func LoadMkdCmd ¶
func LoadMkdCmd(dispatcher *ext.Dispatcher)
func LoadMutes ¶
func LoadMutes(dispatcher *ext.Dispatcher)
func LoadNotes ¶
func LoadNotes(dispatcher *ext.Dispatcher)
func LoadPin ¶
func LoadPin(dispatcher *ext.Dispatcher)
func LoadPurges ¶
func LoadPurges(dispatcher *ext.Dispatcher)
func LoadReports ¶
func LoadReports(dispatcher *ext.Dispatcher)
func LoadRules ¶
func LoadRules(dispatcher *ext.Dispatcher)
func LoadUsers ¶
func LoadUsers(dispatcher *ext.Dispatcher)
func LoadWarns ¶
func LoadWarns(dispatcher *ext.Dispatcher)
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.