mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-05 14:35:43 +00:00
Throw exception if calling API without connecting first.
This commit is contained in:
parent
668b19e3e8
commit
3e1506d0a7
4 changed files with 13 additions and 11 deletions
|
|
@ -345,7 +345,7 @@ See [Examples/Program_CollectAccessHash.cs](Examples/Program_CollectAccessHash.c
|
|||
|
||||
<a name="proxy"></a>
|
||||
### Use a proxy to connect to Telegram
|
||||
SOCKS/HTTP proxies can be used through the `client.TcpHandler` delegate and a proxy library like [StarkSoftProxy](https://www.nuget.org/packages/StarkSoftProxy/):
|
||||
SOCKS/HTTPS proxies can be used through the `client.TcpHandler` delegate and a proxy library like [StarkSoftProxy](https://www.nuget.org/packages/StarkSoftProxy/):
|
||||
```csharp
|
||||
using var client = new WTelegram.Client(Environment.GetEnvironmentVariable);
|
||||
client.TcpHandler = async (address, port) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue