Questions tagged [wtelegramclient]

WTelegramClient is an open-source Telegram Client API library written 100% in C# and .NET Standard. It allows you to log in to Telegram as a user and automate certain tasks. You can post questions on StackOverflow about its usage, or on how to access certain features of the Telegram Client API with the library.

WTelegramClient is an open-source Telegram Client API library written 100% in C# and .NET Standard. It allows you to log in to Telegram as a user and automate certain tasks.

You can use it in your program through the Nuget package.

You can post questions on StackOverflow about its usage, or on how to access certain features of the Telegram Client API with the library.

55 questions
3
votes
1 answer

How to call method correctly: Messages_SearchGlobal in WTelegram

I use this in my WPF project but always return 0. var messages = await _client.Messages_SearchGlobal(Search.Text, filter, DateTime.Now.AddDays(-2), DateTime.Now);
3
votes
1 answer

How to change my avatar in WTelegramClient

Currently I am using WTelegramClient library on C#, how can I change my telegram account avatar, I can't find instructions in EXAMPLES
HTL CO
  • 41
  • 6
2
votes
1 answer

WTelegramClient How to apply proxy settings?

An application was written using the WTelegramClient library. There was a task to use the proxy server settings to connect to the Internet: Address, Port, Username, Password. Now the connection is made without a proxy. We declare variables: using…
ShuherVit
  • 31
  • 3
2
votes
1 answer

How to delete my avatar in WTelegramClient

Currently, I am using WTelegramClient library on C#; how can I delete my telegram account avatar?
2
votes
1 answer

Via Client.Update how to find out that I sent a message?

Tell me how I can understand what is in the handler Client.Update. Is the message coming from me? For some reason, it happens that I look at the From_id and From.Id, there is my ID, then for some reason, there is not. As I understand it, it shows my…
Piker
  • 23
  • 2
2
votes
1 answer

WTelegramClient, when and where to enter verification code after initial config run?

I am using WTelegramClient library with ASP.NET MVC project, to access Telegram API. Using this code, works good, until verification code received on App. I am figuring out, how do I enter this code and where in my view page, when initial code is…
Hemal
  • 3,682
  • 1
  • 23
  • 54
2
votes
1 answer

How to work with messages from WTelegramClient updates? (get chat/user infos)

I'm new to the WTelegramClient C# Library and was used to TLSharp (not working anymore) I'm trying to understand how I get User info after update is received, I have the example code that listen to updates and write them in console but I can't…
2
votes
2 answers

How to Save and Load session file with other name in WtelegrameClient libary, c#?

I use wtelegramclient library to sign in a telegram account via api WTelegramClient saves (typically in the encrypted file bin\WTelegram.session) its state and the authentication keys that were negociated with Telegram so that you needn't sign-in…
2
votes
1 answer

Get all participants of a channel using WTelgramClient, only returning 200

I have a channel and i would like to remove some users. I have used code from WTelegramClient to get all the participants, but for some reason it is only returning 200? We have 31k members. Here is the code i am using to get participants, which is…
Gillardo
  • 9,518
  • 18
  • 73
  • 141
1
vote
1 answer

Which session triggered the event?

I'm trying to use 2 sessions. If I understood the FAQ correctly, I should do it like this. static async Task Main(string[] _) { Helpers.Log = (l, s) => Debug.WriteLine(s); Clients.Add(new Client(what => Config(what,…
Vipz
  • 207
  • 1
  • 7
1
vote
1 answer

get the chat a message was forwarded from

So what im trying to do is get the chat a message was forwarded from, possibly all chats it went through in between if thats a thing. this is a slightly edited Program_ListenUpdates example I tried doing this with fwd_from but it always has no…
X--X
  • 11
  • 2
1
vote
2 answers

How do I know that a telegram message has been viewed by the interlocutor

I use WTelgramClient to remind patients about an upcoming doctor's appointment. I am sending a message and I need to make sure that it is read. using var client = new WTelegram.Client(Config); var user = await client.LoginUserIfNeeded(); var contact…
Boomkok
  • 11
  • 1
  • 2
1
vote
1 answer

How to login bot via WTelegramClient

This library allows you to connect to Telegram and control a user programmatically (or a bot, but Telegram.Bot is much easier for that). I see WTelegramClient can control a bot, but I don't know how to login a bot. Please give me an exsample just…
1
vote
1 answer

C# WTelegramClient Telegram-API How to programmatically click a button in a message from Telegram-Bot

The program communicates with Telegram-Bot. A text message is sent to the bot. The bot responds to the message. The answer contains 3 buttons. Question: How to click on a button programmatically? Create a Telegram client: _client = new…
ShuherVit
  • 31
  • 3
1
vote
1 answer

WTelegramClient ban account

Good afternoon friends; please advise. I used the WTelegramClient library. Did everything as described on the Readme page And right after that, my account was blocked. What have I done wrong? The code I used static string Config(string what) { …
Roman
  • 21
  • 1
1
2 3 4