From d8dea22e10c5b4462b502b9836fe4371dd21919f Mon Sep 17 00:00:00 2001 From: zenix Date: Wed, 21 Sep 2022 15:32:55 +0900 Subject: [PATCH] fix: set ctx --- pkg/interact/telegram.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/interact/telegram.go b/pkg/interact/telegram.go index deba77053..c2a45a002 100644 --- a/pkg/interact/telegram.go +++ b/pkg/interact/telegram.go @@ -68,6 +68,7 @@ type TelegramReply struct { } func (r *TelegramReply) Send(message string) { + ctx := context.Background() splits := util.StringSplitByLength(message, maxMessageSize) for _, split := range splits { if err := sendLimiter.Wait(ctx); err != nil {