mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-04 22:17:43 +00:00
updated README
This commit is contained in:
parent
39ba5c3ff4
commit
95870c485d
8 changed files with 49 additions and 17 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
// This file is (mainly) generated automatically using the Generator class
|
||||
using System;
|
||||
|
||||
namespace TL
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// This file is (mainly) generated automatically using the Generator class
|
||||
using System;
|
||||
|
||||
namespace TL
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// This file is (mainly) generated automatically using the Generator class
|
||||
using System;
|
||||
|
||||
namespace TL
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
// This file is (mainly) generated automatically using the Generator class
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace TL
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue