-
-
Notifications
You must be signed in to change notification settings - Fork 492
/
Copy pathConstants.cs
88 lines (72 loc) · 2.96 KB
/
Constants.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
//
// Copyright Fela Ameghino & Contributors 2015-2025
//
// Distributed under the GNU General Public License v3.0. (See accompanying
// file LICENSE or copy at https://www.gnu.org/licenses/gpl-3.0.txt)
//
using Rg.DiffUtils;
using System;
using Telegram.Td.Api;
using Windows.Foundation;
namespace Telegram
{
public static partial class Constants
{
public static readonly int ApiId;
public static readonly string ApiHash;
public static readonly string AppChannel;
public static readonly string AppCenterId;
public static readonly string BingMapsApiKey;
public static readonly ushort BuildNumber;
public static readonly Size SecretSize = new(320, 200);
public const int TypingTimeout = 300;
public const int HoldingThrottle = 500;
public const int AnimatedThrottle = 200;
public static readonly string[] MediaTypes = new[] { ".jpg", ".jpeg", ".png", ".gif", ".mp4", ".mov", ".m4v" };
public static readonly string[] PhotoTypes = new[] { ".jpg", ".jpeg", ".png", ".gif" };
public static readonly string[] VideoTypes = new[] { ".mp4", ".mov", ".m4v" };
public const string WallpaperFileName = "wallpaper.jpg";
public const string WallpaperLocalFileName = "wallpaper.local.jpg";
public const string WallpaperColorFileName = "wallpaper.color.jpg";
public const string WallpaperDefaultFileName = "wallpaper.default.jpg";
public const int WallpaperLocalId = -1;
public const int WallpaperColorId = -2;
public const int ChatListMain = 0;
public const int ChatListArchive = 1;
public const string DefaultDeviceId = "";
public const int FontSize = 14;
public const int CaptionFontSize = 12;
public static readonly string[] TelegramHosts = new string[]
{
"telegram.org",
"telegram.me",
"telegram.dog",
"t.me",
"telegra.ph"
/*"telesco.pe"*/
};
public static DiffOptions DiffOptions = new()
{
AllowBatching = false,
DetectMoves = true
};
public static MessageSendOptions PreviewOnly = new(false, false, false, false, 0, false, null, 0, 0, true);
#if DEBUG
// We use properties in debug so that the duration is re-evaluated
// on every access. This way we can easily debug animations without
// having to restart the app.
public static TimeSpan FastAnimation => TimeSpan.FromMilliseconds(167);
public static TimeSpan SoftAnimation => TimeSpan.FromMilliseconds(333);
#else
public static TimeSpan FastAnimation = TimeSpan.FromMilliseconds(167);
public static TimeSpan SoftAnimation = TimeSpan.FromMilliseconds(333);
#endif
#if DEBUG
public static bool DEBUG = true;
public static bool RELEASE = false;
#else
public static bool RELEASE = true;
public static bool DEBUG = false;
#endif
}
}