Adding exception for too long callback data.

- right now only in DEBUG compilation and only for the static operator
This commit is contained in:
Florian Zevedei
2024-02-03 01:39:12 +01:00
parent d572c353f6
commit 53886fa6bf
3 changed files with 40 additions and 2 deletions
+5
View File
@@ -16,4 +16,9 @@ public static class Telegram
public const int MaxReplyKeyboardCols = 12;
public const int MessageDeletionsPerSecond = 30;
/// <summary>
/// The maximum length of callback data. Will raise an exception of it exceeds it.
/// </summary>
public const int MaxCallBackDataBytes = 64;
}