wiz0u / WTelegramClient

Telegram Client API (MTProto) library written 100% in C# and .NET
https://wiz0u.github.io/WTelegramClient/
MIT License
996 stars 164 forks source link

Send citation message #110

Closed simon25608 closed 1 year ago

simon25608 commented 1 year ago

Hello,

I'm trying to send a message with the quoted text, but it doesn't send with the quoted text.

I'm trying to send it like this:

var replyId = message.ReplyTo?.reply_to_msg_id ?? 0; await client.SendMessageAsync(userJose, "Message from debug:" + messageFormat,null, replyId);

Thanks

wiz0u commented 1 year ago

if message is from userJose and you want to reply to it, just use message.ID as reply_to_msg_id parameter

simon25608 commented 1 year ago

No, message is a message from a channel and I wanted to send it to a specific user (jose) with the quoted text.

wiz0u commented 1 year ago

what you describe is not possible in Telegram as a normal reply.

all you can do is send him a https://t.me/channelname/msgid URL

wiz0u commented 1 year ago

For further discussion, as this is not an issue with the library but a question about Telegram API usage. This kind of question should be asked on StackOverflow: https://stackoverflow.com/questions/ask?tags=wtelegramclient+telegram-api