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
0
votes
1 answer

WTelegram Client - how to tell if I joined a group explicitly or because it is linked to a channel

After joining a channel that has a linked group (like comments) I'm getting the following: In Telegram Desktop client I see only the channel that I've joined to. Via Telegram API, using WTelegram Client client.Messages_GetAllChats(), I'm getting…
0
votes
1 answer

Issues with using WTelegram on a MAUI application for android

Everything works fine if I run my .NET MAUI app on Windows machine. But if I deploy on Android VM, below code to initialize WTelegram client is giving error as Access to the path '/data/user/0/WTelegram.session' is denied.' _client = new…
0
votes
1 answer

WTelegramClient not reconnecting automaticaly after internet connection is lost

I write programm which is looking the specific chat for specific messages, if it was found then forward them to another chat. I want to solve troubles with internet connection, after connection is lost more then 1-2 minutes WTelegramCLient doesnt…
bDv
  • 1
0
votes
0 answers

How do I report SPAM from WTelegramClient updates?

I am trying to get the text of the message, and if it is large, and exists in the SPAM database, a SPAM report should be sent to the Telegram support service. private Task DisplayMessage(MessageBase messageBase, bool edit = false) { switch…
0
votes
2 answers

Listener for new AdminEvents WTelegramClient

There is a task that requires me to process every person who joins/leaves the telegram channel. I found the WTelegramClient library. How can I use it to implement a handler for this kind of action? I need to process the records that are kept…
n0n
  • 3
  • 1
0
votes
1 answer

Error 500.30 when publishing WTelegramClient app to Azure

I've made a web app in .NET 6.0 using WTelegramClient. It works fine locally but when I try to publish it to Azure App Service i obtain the following error: HTTP Error 500.30 - ASP.NET Core app failed to start I tried to remove WTelegramClient…
0
votes
1 answer

Changing chat type

I have WTelegramClient and I need to change the chat(group,supgroup) from public to private chat ,I am tried to find solutions in the WTelegramClient but I don't find it .. I am tried to changing chat type from public to private chat using…
0
votes
0 answers

WTelegramClient - Can't get intellisense to work (vs2022 C#)

Visual Studio 2022 (fresh install). Using the latest WTelegramClient version: Builds just fine in both net5.0 / netstandard2.0 in debug and release mode. Tested the dll (great work!) and working very good. Looking for hours why I don't get…
Castaway
  • 36
  • 5
0
votes
1 answer

How do I send a message to a topic?

I want to get all the groups containing topics, and then I want to send a message to these topics using the SendMessageAsync method. But I can't do it since ForumTopic can't be cast to InputPeer. Below is a fragment of the program: var myself =…
super15
  • 3
  • 1
0
votes
1 answer

WTelegramClient on Azure Function session file is being used by another process

I made a simple Azure Function using WTelegramClient. It is configured to run every 10 minutes and session file is created without any problems. In logs, however, I see that it runs successfully only around once an hour, another 5 times it throws…
FakeJoe
  • 5
  • 4
0
votes
1 answer

Makeva reply like orginal message when copying with WTelegramClient

How does one get WtelegramClient to display replies(preview of the original message and reply message) when copying via listening for updates from one channel to another? I am handling the reply by having the original message and the reply under it…
Rjoy
  • 29
  • 6
0
votes
1 answer

wtelegramclient - how get event of added new comments for message

I am using follow code: _clientTelegram.OnUpdate += ListenUpdate; And Handler of listener updates: private async Task ListenUpdate(IObject arg) { if (arg is not UpdatesBase updates) { _logger.LogWarning($"received not UpdatesBase…
Dmitry
  • 327
  • 1
  • 11
0
votes
1 answer

How using package WTelegram download many photos?

Class TL.Message has only one Media, but sometimes in Telegram messages were published two or three photos or videos. I looked example https://github.com/wiz0u/WTelegramClient/blob/master/Examples/Program_DownloadSavedMedia.cs and it work well. I…
Dmitry
  • 327
  • 1
  • 11
0
votes
1 answer

Wtelegramclient to listen for updates from only one channel and send the mesage to anoter

How do I modify the standard example( https://github.com/wiz0u/WTelegramClient/blob/master/Examples/Program_ListenUpdates.cs ) given for WTelegramclient to listen for new messages and update from only one channel and send messages/or edits to…
Rjoy
  • 29
  • 6
0
votes
1 answer

How to include WTelegramClient session to program executable file for security

I'm using WTelegramClient for connecting to telegram api. I want to public my application to anyone can use it, my application connected to a user in telegram and i want to all of my app users can use my application with that telegram user that i…