Adding callbackdata too long exception and checks

This commit is contained in:
Florian Zevedei
2024-05-12 19:01:50 +03:00
parent e345fc2948
commit 5ce2360cc7
3 changed files with 50 additions and 21 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;
}