Commit graph

21 commits

Author SHA1 Message Date
Andres G. Aragoneses 7be6122381 Generator: fix many whitespace nits (especially in generated code) 2020-09-11 17:14:18 +08:00
Afshin Arani 3cb0ef63ca api: change layer number 2020-09-11 17:14:18 +08:00
Afshin Arani a853f1210d fix: Duplicate TLVector and API Changes in SendCode Method 2020-09-11 17:14:18 +08:00
Afshin Arani 07c4812e99 api: Update to Layer 108 2020-09-11 17:14:18 +08:00
Andres G. Aragoneses 58df196e08 nuspec: net45->net46 folder, forgotten change in 4.5->4.6 .NET upgrade
Hopefully fixes https://github.com/nblockchain/TgSharp/issues/8
2020-04-16 19:20:30 +08:00
Andres G. Aragoneses c20b2cddc5 Generator: fix regression caused by a typo
It was introduced in here: 012207251b
2020-04-15 18:22:53 +08:00
Andres G. Aragoneses 0a5ab705f8 TeleSharp.TL: try wildcards in the project file
This makes Layer updates much easier, without having to
include new files manually.
2020-04-14 20:42:32 +08:00
Andres G. Aragoneses 012207251b Generator: allow running generator from TeleSharp.TL/ folder
Bear with me, the part of the code that traverses the path with ".."
subfolders is actually not needed, but whatever, I had already written
it.
2020-04-14 16:55:34 +08:00
Andres G. Aragoneses a85f0d8e11 Generator: make it work with Unix paths
It was hardcoding the Windows path separator so this could only
run on Windows before.
2020-04-14 15:58:11 +08:00
Andres G. Aragoneses 292d92e4a2 Core: TelegramClient class hardening, adding readonly keywords 2020-04-12 23:29:58 +08:00
Andres G. Aragoneses 4d09ac711d
Merge pull request #7 from nblockchain/allowReconnecting
Core: allow reconnecting same TelegramClient instance
2020-04-12 23:06:54 +08:00
Andres G. Aragoneses 10632fed22 Generator: default to a schema filename in line to online resource
The schema is in https://core.telegram.org/schema/json so it's more
logical to expect the file to be named `json`, which is what would
happen if you download it with wget, for example.
2020-04-12 23:00:44 +08:00
Andres G. Aragoneses 6ff40930c1 Core: don't expose "reconnect" optional param in public API
It was only meant to be used internally.
2020-04-12 02:29:42 +08:00
solarin 94775cebd8 Core: allow reconnecting same TelegramClient instance
Fixes https://github.com/sochix/TLSharp/issues/930
2020-04-12 02:14:54 +08:00
solarin 874cfd07a2 Core: don't consider MediaOnly DCs at reconnect
Fixes https://github.com/sochix/TLSharp/issues/935

(This commit was brought from TLSharp [1] version 0.1.0.554.)

[1] 9a6e391cae
2020-04-12 02:02:45 +08:00
solarin 6d99916bc6 Added an IPv4/IPv6 toggle to TelegramClient constructor
Fixes https://github.com/sochix/TLSharp/issues/857

(This commit was brought from TLSharp [1] version 0.1.0.532.)

[1] c67801a6c9
2020-04-06 15:29:43 +08:00
Afshin Arani f40474f9e9 Remove unnecessary dependencies
(This commit was brought from TLSharp [1] version 0.1.0.524.)

[1] 6d2c77f5ef
2020-04-05 20:23:44 +08:00
Afshin Arani 3bde55ed1e Upgrade from .NET4.5 to .NET4.6
Because we might use dependencies soon that require this framework.
And anyway these days the .NET world is mostly a hybrid between
.NETStandard/.NETCore libs and .NET4.6 ones, not older than that.

(This commit was brought from TLSharp [1] version 0.1.0.522.)

[1] 709e5be7cc
2020-04-05 20:03:16 +08:00
Andres G. Aragoneses a73028f44e nuspec: fix warning
WARNING: NU5118: File 'D:\a\TLSharp\TLSharp\TLSharp.Core\bin\Debug\TLSharp.Core.dll' is not added because the package already contains file 'lib\net45\TLSharp.Core.dll'

(This commit was brought from TLSharp [1] version 0.1.0.521.)

[1] 6b35857923
2020-04-05 14:54:58 +08:00
Afshin Arani 66942979ab Add GithubActions workflow for nugetUpload 2020-04-02 21:37:33 +08:00
Andres G. Aragoneses 932a733197
Finish TLSharp -> TgSharp rename (#1) 2020-04-02 16:37:22 +08:00