v1.0.0 beta 1

This commit is contained in:
2026-02-26 15:12:36 +03:00
parent 28ec2b7ca9
commit 786da652e6
8 changed files with 95 additions and 59 deletions

View File

@@ -46,7 +46,7 @@ func (bot *Bot[T]) handleMessage(update *tgapi.Update, ctx *MsgContext) {
text = strings.TrimSpace(text[len(prefix):])
for _, plugin := range bot.plugins {
for cmd := range plugin.Commands {
for cmd := range plugin.commands {
if !strings.HasPrefix(text, cmd) {
continue
}
@@ -96,7 +96,7 @@ func (bot *Bot[T]) handleCallback(update *tgapi.Update, ctx *MsgContext) {
ctx.Args = data.Args
for _, plugin := range bot.plugins {
_, ok := plugin.Payloads[data.Command]
_, ok := plugin.payloads[data.Command]
if !ok {
continue
}