From c87f671e10cfab882ce4939f929d236ce07fb884 Mon Sep 17 00:00:00 2001 From: Michele Dimaggio <22237379+DjMike238@users.noreply.github.com> Date: Wed, 14 Aug 2024 13:17:03 +0000 Subject: [PATCH] api.go: update tests --- api_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/api_test.go b/api_test.go index 8a5a9f6..4016340 100644 --- a/api_test.go +++ b/api_test.go @@ -1625,7 +1625,9 @@ func TestPinChatMessage(t *testing.T) { _, err := api.PinChatMessage( groupID, pinMsgID, - &PinMessageOptions{true}, + &PinMessageOptions{ + DisableNotification: true, + }, ) if err != nil { @@ -1636,7 +1638,9 @@ func TestPinChatMessage(t *testing.T) { func TestUnpinChatMessage(t *testing.T) { _, err := api.UnpinChatMessage( groupID, - pinMsgID, + &UnpinMessageOptions{ + MessageID: pinMsgID, + }, ) if err != nil {