start: message for groups
This commit is contained in:
parent
8aad6f49d6
commit
5ccf4e6168
1 changed files with 5 additions and 0 deletions
|
@ -62,6 +62,11 @@ func getStartKeyboard(bot *gotgbot.Bot) gotgbot.InlineKeyboardMarkup {
|
|||
|
||||
func StartHandler(bot *gotgbot.Bot, ctx *ext.Context) error {
|
||||
if ctx.EffectiveMessage.Chat.Type != "private" {
|
||||
ctx.EffectiveMessage.Reply(
|
||||
bot,
|
||||
"i'm online! i'll download every media in this group.",
|
||||
nil,
|
||||
)
|
||||
return nil
|
||||
}
|
||||
keyboard := getStartKeyboard(bot)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue