2022-10-15 21:59:12 +03:00

17 lines
387 B
C#

using System;
namespace TelegramBotBase.Exceptions;
public sealed class MessageTooLongException : Exception
{
public MessageTooLongException(int length)
{
Length = length;
}
public int Length { get; set; }
public override string Message =>
$"You have exceeded the maximum of message length by {Length}/{Constants.Telegram.MaxMessageLength}";
}