fix: set ctx

This commit is contained in:
zenix 2022-09-21 15:32:55 +09:00
parent 9cce165aa5
commit d8dea22e10

View File

@ -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 {