Skip to content

Commit f1bbd95

Browse files
committed
Add TitleAs for button.
1 parent b211795 commit f1bbd95

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Infrastructure/BotSharp.Abstraction/Messaging/Models/RichContent/ElementButton.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ public class ElementButton
1313
[Translate]
1414
public string Title { get; set; } = string.Empty;
1515

16+
[Translate]
17+
public string? TitleAs { get; set; } = string.Empty;
18+
1619
[JsonPropertyName("description")]
1720
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
1821
[Translate]

src/Infrastructure/BotSharp.Abstraction/Messaging/Models/RichContent/QuickReplyElement.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ public class QuickReplyElement
66
public string ContentType { get; set; } = "text";
77

88
public string Title { get; set; } = string.Empty;
9+
[Translate]
10+
public string? TitleAs { get; set; } = string.Empty;
911
public string? Payload { get; set; }
1012

1113
[JsonPropertyName("image_url")]

0 commit comments

Comments
 (0)