Skip to content

Commit 88dbe27

Browse files
authored
Merge pull request #249 from AshokShau/master
fix
2 parents 117c052 + 0e8f57c commit 88dbe27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telegram/channels.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (c *Client) LeaveChannel(Channel any, Revoke ...bool) error {
128128
return err
129129
}
130130
} else if chat, ok := channel.(*InputPeerChat); ok {
131-
_, err = c.MessagesDeleteChatUser(revokeChat, chat.ChatID, &InputUserEmpty{})
131+
_, err = c.MessagesDeleteChatUser(revokeChat, chat.ChatID, &InputUserSelf{})
132132
if err != nil {
133133
return err
134134
}

0 commit comments

Comments
 (0)