Skip to content

Commit

Permalink
Update main.go (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimalPimmy authored Nov 1, 2020
1 parent c698617 commit 974680f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion telegram-bot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,14 @@ func main() {
case "paste":
paste(ID, update.Message)
default:
bot.Send(tbot.NewMessage(ID, "I don't know that command"))
{
msg, err := bot.Send(tbot.NewMessage(ID, "I don't know this command"))
log.Print(err)
timer1 := time.NewTimer(5 * time.Second)
<-timer1.C

bot.DeleteMessage(tbot.NewDeleteMessage(ID, msg.MessageID))
}
}
}
if update.Message.NewChatMembers != nil {
Expand Down

0 comments on commit 974680f

Please sign in to comment.