updated README

This commit is contained in:
Wizou 2021-08-07 06:59:36 +02:00
parent 39ba5c3ff4
commit 95870c485d
8 changed files with 49 additions and 17 deletions

View file

@ -456,7 +456,6 @@ namespace WTelegram
}
#region TL-Helpers
/// <summary>Helper function to upload a file to Telegram</summary>
/// <returns>an <see cref="InputFile"/> or <see cref="InputFileBig"/> than can be used in various requests</returns>
public Task<InputFileBase> UploadFileAsync(string pathname)

View file

@ -40,6 +40,7 @@ namespace WTelegram
Console.WriteLine("Parsing " + jsonPath);
var schema = JsonSerializer.Deserialize<SchemaJson>(File.ReadAllText(jsonPath));
using var sw = File.CreateText(outputCs);
sw.WriteLine("// This file is (mainly) generated automatically using the Generator class");
sw.WriteLine("using System;");
sw.WriteLine();
sw.WriteLine("namespace TL");

View file

@ -1,4 +1,5 @@
using System;
// This file is (mainly) generated automatically using the Generator class
using System;
namespace TL
{

View file

@ -1,3 +1,4 @@
// This file is (mainly) generated automatically using the Generator class
using System;
namespace TL

View file

@ -1,3 +1,4 @@
// This file is (mainly) generated automatically using the Generator class
using System;
namespace TL

View file

@ -1,4 +1,5 @@
using System;
// This file is (mainly) generated automatically using the Generator class
using System;
using System.Collections.Generic;
namespace TL

View file

@ -214,9 +214,9 @@ namespace TL
{
if (!type.IsArray)
writer.Write(NullCtor);
else if (type != typeof(byte[])) // null arrays are serialized as empty
else if (type != typeof(byte[]))
writer.Write(VectorCtor);
writer.Write(0);
writer.Write(0); // null arrays are serialized as empty
}
private static _Message[] DeserializeMessages(BinaryReader reader)