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
1
vote
1 answer

Get channel message history and mark views with WTelegramClient

How can I: Get a public channel message history [Text, Photo, Video ...] Mark these messages as a viewed With Telethon (python), we can use this method: for message in client.get_messages(channel, limit=int(count)): result =…
1
vote
1 answer

Post Telegram message with multiple external photos using WTelegramClient

Post telegram message with single external photo: var im = new InputMediaPhotoExternal(); im.url = a.Photo; await client.SendMessageAsync(target, null, im); Is it possible to post message with multiple external photos using WTelegramClient?
AsValeO
  • 2,859
  • 3
  • 27
  • 64
1
vote
1 answer

C# how to send a file via Telegram API

I am using WTelegramClient library. Here is how I send messages: var client = new WTelegram.Client(Config); await client.LoginUserIfNeeded(); var contacts = await client.Contacts_ImportContacts(new[] { new InputPhoneContact { phone =…
Jasur1177
  • 25
  • 1
  • 6
1
vote
1 answer

Forward message using SendMessageAsync

I'm not able to use the SendMessageAsync method to forward a message. Is there any way to do it?
Gabriel
  • 17
  • 2
1
vote
1 answer

How to add a user to Telegram Group using Wtelegramclient

How can i add user to telegram group by username. I have try using this method await TelegramClient.Channels_InviteToChannel(target, inputUsers.ToArray()); The code didn't add the member to the group and there was no error or exception
Yemight
  • 21
  • 2
1
vote
1 answer

How to Authorize user on winforms when connecting to telegram

If i run this code on console application: static async Task Main(string[] _) { using var client = new WTelegram.Client(); var user = await client.LoginUserIfNeeded(); Console.WriteLine($"We are logged-in as {user.username ??…
Yemight
  • 21
  • 2
1
vote
1 answer

sending the verification code to the SMS and not to the application

is it possible to define how the verification code will be sent when calling the LoginUserIfNeeded method? I need to send it via SMS and not to the application.
0
votes
1 answer

How to get TopicID message was sent to in supergroup converted to forum?

I am trying to parse message sent to topic in forum group, by cannot find in Message class TopicID. PeerID is parent group id, version of library 3.5.3 (https://core.telegram.org/api/forum) Does library supports supergroups converted to forum? Any…
Kolka
  • 1
  • 3
0
votes
0 answers

Subscriptions and unsubscriptions do not affect client working in another process

I have 2 services - one suscribes/unsubscribes on some channels, anther one handles pushes. I seems that these subscriptions made by the first client in the first process don't affect the second one - it doesn't receive pushes from added channels.…
Denis
  • 1
0
votes
1 answer

Global Search in groups return Limited Result

this code search in telegram globally and return Groups var t = ((await client.Messages_SearchGlobal("Keyword")) as Messages_MessagesSlice).chats.Where(q=>q.Value.IsGroup).ToList(); but it returns limited result (just 5 group) . also we know that…
Moslem7026
  • 3,290
  • 6
  • 40
  • 51
0
votes
1 answer

Wtlegramclient how to call a user

I can't figure out how to call using Wtelgramclient C#.I looked at the documentation, but I couldn't figure it out, or rather make g_a_hash and PhoneProtocolCall I have already gone through the documentation more than once and tried to implement it…
0
votes
1 answer

Count of messages in the group

Is it possible that there are more messages in the Chat/Channel full history than the maximum int value ? https://wiz0u.github.io/WTelegramClient/EXAMPLES.html#fetch-all-messages-history-from-a-chatuser
Vipz
  • 207
  • 1
  • 7
0
votes
2 answers

How are they different `ChatBase.IsActive` false and true?

How are they different ChatBase.IsActive false and true ?
Vipz
  • 207
  • 1
  • 7
0
votes
0 answers

Why is WTelegram session file still being used after disposing WTelegram.Client?

My app works good if there is an internet connection before app started, but if I started my app without any internet connection, the app still retries connecting every 5s and shows in the log: A socket operation was attempted to an unreachable…
0
votes
0 answers

Why is my WTelegramClient not sending reply inline markup with message?

Can't send ReplyInlineMarkup in message with WTelegramClient Really can't understand why this is not working var keyboardButton = new KeyboardButtonUrl { text = "Go", url = "https://asd.com" }; var keyboardButtonRow = new KeyboardButtonRow() {…
gi4nni
  • 31
  • 3