Fix SendAlbumAsync videoUrlAsFile. using [] syntax

This commit is contained in:
Wizou 2024-03-08 11:52:30 +01:00
parent 345f10971b
commit b5ca3fcc0e
10 changed files with 49 additions and 49 deletions

View file

@ -15,7 +15,7 @@ namespace WTelegram
{
internal static class Encryption
{
private static readonly Dictionary<long, RSAPublicKey> PublicKeys = new();
private static readonly Dictionary<long, RSAPublicKey> PublicKeys = [];
internal static readonly RNGCryptoServiceProvider RNG = new();
internal static readonly Aes AesECB = Aes.Create();
@ -209,7 +209,7 @@ namespace WTelegram
SafePrimes.Add(p);
}
private static readonly HashSet<BigInteger> SafePrimes = new() { new(new byte[] // C71CAEB9C6B1C904...
private static readonly HashSet<BigInteger> SafePrimes = [ new(new byte[] // C71CAEB9C6B1C904...
{
0x5B, 0xCC, 0x2F, 0xB9, 0xE3, 0xD8, 0x9C, 0x11, 0x03, 0x04, 0xB1, 0x34, 0xF0, 0xAD, 0x4F, 0x6F,
0xBF, 0x54, 0x24, 0x4B, 0xD0, 0x15, 0x4E, 0x2E, 0xEE, 0x05, 0xB1, 0x35, 0xF6, 0x15, 0x81, 0x0D,
@ -227,7 +227,7 @@ namespace WTelegram
0xDB, 0xF4, 0x30, 0x25, 0xD2, 0x93, 0x94, 0x22, 0x58, 0x40, 0xC1, 0xA7, 0x0A, 0x8A, 0x19, 0x48,
0x0F, 0x93, 0x3D, 0x56, 0x37, 0xD0, 0x34, 0x49, 0xC1, 0x21, 0x3E, 0x8E, 0x23, 0x40, 0x0D, 0x98,
0x73, 0x3F, 0xF1, 0x70, 0x2F, 0x52, 0x6C, 0x8E, 0x04, 0xC9, 0xB1, 0xC6, 0xB9, 0xAE, 0x1C, 0xC7, 0x00
})};
})];
internal static void CheckGoodGaAndGb(BigInteger g, BigInteger dh_prime)
{