Skip to content

Commit

Permalink
Merge pull request #32 from simple-robot/dev/fix-simbot-891
Browse files Browse the repository at this point in the history
修复 `ChatMember` 的预期子类型 `ChatMemberMember` 实际上并未实现 `ChatMember` 的问题
  • Loading branch information
ForteScarlet authored Jul 24, 2024
2 parents e1d315d + 87899b1 commit 1cd0955
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ internal abstract class AbstractTelegramChatGroupActor : TelegramChatGroupActor
is ChatMemberLeft -> chatMember.user.toTelegramMember(bot, chatMember)
is ChatMemberOwner -> chatMember.user.toTelegramMember(bot, chatMember)
is ChatMemberRestricted -> chatMember.user.toTelegramMember(bot, chatMember)
is ChatMemberMember -> chatMember.user.toTelegramMember(bot, chatMember)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ public data class ChatMemberMember(
* type: `User`
*/
public val user: User,
)
) : ChatMember()

/**
* [ChatMemberOwner](https://core.telegram.org/bots/api#chatmemberowner)
Expand Down

0 comments on commit 1cd0955

Please sign in to comment.