feat: improve telegram session posts
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using GmRelay.Bot.Infrastructure.Telegram;
|
||||
using Telegram.Bot.Types;
|
||||
|
||||
namespace GmRelay.Bot.Tests.Infrastructure.Telegram;
|
||||
|
||||
public sealed class UpdateRouterTests
|
||||
{
|
||||
[Fact]
|
||||
public void GetCommandText_ShouldUseCaption_WhenMessageHasNoText()
|
||||
{
|
||||
var message = new Message
|
||||
{
|
||||
Caption = """
|
||||
/newsession
|
||||
Название: Curse of Strahd
|
||||
"""
|
||||
};
|
||||
|
||||
var commandText = UpdateRouter.GetCommandText(message);
|
||||
|
||||
Assert.StartsWith("/newsession", commandText);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user