Skip to content

Commit

Permalink
markdown and inline_keyboard message should not be singleton
Browse files Browse the repository at this point in the history
fix #65
  • Loading branch information
MrXiaoM committed Jul 5, 2024
1 parent a0c6602 commit 70c9336
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public data class InlineKeyboard(
* 按键行列表
*/
public val rows: List<InlineKeyboardRow>
) : MessageContent, ConstrainSingle {
) : MessageContent {
private val string by lazy {
"[overflow:inlinekeyboard,$botAppId,${rows.joinToString(",")}]"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public data class Markdown(
* Markdown 内容
*/
public val content: String
) : MessageContent, ConstrainSingle, CodableMessage {
) : MessageContent, CodableMessage {
public override fun toString(): String = "[overflow:markdown,$content]"
public override fun contentToString(): String = content

Expand Down

0 comments on commit 70c9336

Please sign in to comment.