You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: FAQ.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,7 @@ You can verify this is your issue by looking at [WTelegram logs](EXAMPLES.md#log
87
87
This wrong-server problem typically happens when you use WTelegramClient Github source project in your application in DEBUG builds.
88
88
It is **not recommended** to use WTelegramClient in source code form.
89
89
Instead, you should use the Nuget manager to **install package WTelegramClient** into your application.
90
+
*And remember to delete the WTelegram.session file to force a new login on the correct server.*
90
91
91
92
If you use the Github source project in an old .NET Framework 4.x or .NET Core x.x application, you may also experience the following error
92
93
> System.TypeInitializationException (FileNotFoundException for "System.Text.Json Version=5.0.0.0 ...")
@@ -163,7 +164,7 @@ That object must be created with both fields `channel_id` and `access_hash` corr
163
164
There can be several reasons why `chats.chats[id]` raise an error:
164
165
- The user account you're currently logged-in as has not joined this particular chat.
165
166
API method [Messages_GetAllChats](https://corefork.telegram.org/method/messages.getAllChats) will only return those chat groups/channels the user is in, not all Telegram chat groups.
166
-
- You're trying to use a Telegram.Bot (or TDLib) numerical ID, like -1001234567890
167
+
- You're trying to use a Bot API (or TDLib) numerical ID, like -1001234567890
167
168
Telegram Client API don't use these kind of IDs for chats. Remove the -100 prefix and try again with the rest (1234567890).
168
169
- You're trying to use a user ID instead of a chat ID.
169
170
Private messages with a user are not called "chats". See [Terminology in ReadMe](README.md#terminology).
@@ -232,7 +233,7 @@ If you need your userbot to run 24/7, you would typically design your userbot as
232
233
and hosted online on any [VPS Hosting](https://www.google.com/search?q=vps+hosting) (Virtual Private Server).
233
234
Pure WebApp hosts might not be adequate as they will recycle (stop) your app if there is no incoming HTTP requests.
234
235
235
-
There are many cheap VPS Hosting offers available, and some even have free tier, like Heroku:
236
+
There are many cheap VPS Hosting offers available, for example Heroku:
236
237
See [Examples/Program_Heroku.cs](Examples/Program_Heroku.cs) for such an implementation and the steps to host/deploy it.
## _Telegram Client API library written 100% in C# and .NET Standard_
9
9
@@ -36,7 +36,7 @@ If the verification succeeds but the phone number is unknown to Telegram, the us
36
36
If the account already exists and has enabled two-step verification (2FA) a **password** might be required.
37
37
All these login scenarios are handled automatically within the call to `LoginUserIfNeeded`.
38
38
39
-
And that's it, you now have access to the **[full range of Telegram Client APIs](https://corefork.telegram.org/methods)**.
39
+
After login, you now have access to the **[full range of Telegram Client APIs](https://corefork.telegram.org/methods)**.
40
40
All those API methods require `using TL;` namespace and are called with an underscore instead of a dot in the method name, like this: `await client.Method_Name(...)`
41
41
42
42
# Saved session
@@ -162,4 +162,4 @@ Please don't use this library for Spam or Scam. Respect Telegram [Terms of Servi
162
162
Developers feedback is welcome in the Telegram support group [@WTelegramClient](https://t.me/WTelegramClient)
163
163
You can also check our [📖 Frequently Asked Questions](https://github.com/wiz0u/WTelegramClient/blob/master/FAQ.md) for more help and troubleshooting guide.
164
164
165
-
If you like this library, please [consider a donation](http://wizou.fr/donate.html).❤ This will help the project keep going.
165
+
If you like this library, please [consider a donation](http://t.me/WTelegramBot?start=donate).❤ This will help the project keep going.
Copy file name to clipboardexpand all lines: src/Client.cs
+1-1
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ namespace WTelegram
22
22
publicpartialclassClient:IDisposable
23
23
{
24
24
/// <summary>This event will be called when unsollicited updates/messages are sent by Telegram servers</summary>
25
-
/// <remarks>Make your handler <see langword="async"/>, or return <see cref="Task.CompletedTask"></see><br/>See <see href="https://github.com/wiz0u/WTelegramClient/blob/master/Examples/Program_ListenUpdates.cs">Examples/Program_ListenUpdate.cs</see> for how to use this</remarks>
25
+
/// <remarks>Make your handler <see langword="async"/>, or return <see cref="Task.CompletedTask"/> or <see langword="null"/><br/>See <see href="https://github.com/wiz0u/WTelegramClient/blob/master/Examples/Program_ListenUpdates.cs">Examples/Program_ListenUpdate.cs</see> for how to use this</remarks>
26
26
publiceventFunc<IObject,Task>OnUpdate;
27
27
/// <summary>Used to create a TcpClient connected to the given address/port, or throw an exception on failure</summary>
0 commit comments