Skip to content

Commit

Permalink
bugfix: fix error shown in logs when using pinned cmd and no msg is p…
Browse files Browse the repository at this point in the history
…inned
  • Loading branch information
Divkix committed Aug 4, 2023
1 parent c2b7e76 commit f2e0e26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions alita/modules/pin.go
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ func (moduleStruct) pinned(b *gotgbot.Bot, ctx *ext.Context) error {
log.Error(err)
return err
}
return err
}

pinLink = helpers.GetMessageLinkFromMessageId(chat, pinnedMsg.MessageId)
Expand Down

1 comment on commit f2e0e26

@apqjd
Copy link

@apqjd apqjd commented on f2e0e26 Aug 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.