From 8f77678682ead76e844c74bf1d58b901da3555e8 Mon Sep 17 00:00:00 2001 From: Pavel Date: Thu, 5 Mar 2020 14:50:02 +0300 Subject: [PATCH] ignore pinned message --- src/utils.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils.go b/src/utils.go index 84dcb16..0941231 100644 --- a/src/utils.go +++ b/src/utils.go @@ -150,6 +150,7 @@ func shouldMessageBeIgnored(m *tgbotapi.Message) bool { m.LeftChatMember != nil || m.NewChatTitle != "" || m.NewChatPhoto != nil || + m.PinnedMessage != nil || m.DeleteChatPhoto || m.GroupChatCreated { return true