Skip to content

Commit

Permalink
api.go: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DjMike238 committed Aug 14, 2024
1 parent bf53c2a commit c87f671
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1625,7 +1625,9 @@ func TestPinChatMessage(t *testing.T) {
_, err := api.PinChatMessage(
groupID,
pinMsgID,
&PinMessageOptions{true},
&PinMessageOptions{
DisableNotification: true,
},
)

if err != nil {
Expand All @@ -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 {
Expand Down

0 comments on commit c87f671

Please sign in to comment.