Merge pull request #1182 from yileicn/master

add Alignment for ButtonTemplateMessage
This commit is contained in:
Nick Yi 2025-10-10 11:20:03 +08:00 committed by GitHub
commit 669639d1a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BotSharp.Abstraction.Messaging.Enums
{
public static class AlignmentEnum
{
public const string TopLeft = "topLeft";
public const string BottomLeft = "bottomLeft";
public const string TopRight = "topRight";
public const string BottomRight = "bottomRight";
public const string TopCenter = "topCenter";
public const string BottomCenter = "bottomCenter";
}
}

View file

@ -20,4 +20,7 @@ public class ButtonTemplateMessage : IRichMessage, ITemplateMessage
[JsonPropertyName("is_horizontal")]
public bool IsHorizontal { get; set; }
[JsonPropertyName("alignment")]
public string Alignment { get; set; } = AlignmentEnum.TopLeft;
}