start: message for groups

This commit is contained in:
stefanodvx 2025-04-16 15:26:33 +02:00
parent 8aad6f49d6
commit 5ccf4e6168

View file

@ -62,6 +62,11 @@ func getStartKeyboard(bot *gotgbot.Bot) gotgbot.InlineKeyboardMarkup {
func StartHandler(bot *gotgbot.Bot, ctx *ext.Context) error { func StartHandler(bot *gotgbot.Bot, ctx *ext.Context) error {
if ctx.EffectiveMessage.Chat.Type != "private" { if ctx.EffectiveMessage.Chat.Type != "private" {
ctx.EffectiveMessage.Reply(
bot,
"i'm online! i'll download every media in this group.",
nil,
)
return nil return nil
} }
keyboard := getStartKeyboard(bot) keyboard := getStartKeyboard(bot)