Open VahedCivil opened 6 years ago
Message "INPUT_METHOD_INVALID"
You have pasted the message and stacktrace, but not the exception type. When reporting bugs, please just place the entire string that ex.ToString()
gives please.
Thank you for replay.
"System.InvalidOperationException: INPUT_METHOD_INVALID\
at TLSharp.Core.Network.MtProtoSender.HandleRpcResult(UInt64 messageId, Int32 sequence, BinaryReader messageReader, TLMethod request)
at TLSharp.Core.Network.MtProtoSender.processMessage(UInt64 messageId, Int32 sequence, BinaryReader messageReader, TLMethod request)
at TLSharp.Core.Network.MtProtoSender.1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter
1.GetResult()
at Vahed_Telegram_Demo.MainWin.
I think i got the same problem here.
var id = targetUser.Id; // targetUser is the TLUser i want to forward to
var accessHash = targetUser.AccessHash;
if (accessHash != null)
{
TLRequestForwardMessage forwardRequest = new TLRequestForwardMessage
{
Id = message.Id, // "message.id" is from a TLMessage
Peer = new TLInputPeerUser { UserId = id, AccessHash = (long)accessHash},
RandomId = Helpers.GenerateRandomLong()
};
await TcClient.SendRequestAsync<TLState>(forwardRequest) // this fails
When executing the Send Request, i get the error "INPUT_METHOD_INVALID".
21:06:13: System.InvalidOperationException: INPUT_METHOD_INVALID_865483769_245103
bei TLSharp.Core.Network.MtProtoSender.HandleRpcResult(UInt64 messageId, Int32 sequence, BinaryReader messageReader, TLMethod request)
bei TLSharp.Core.Network.MtProtoSender.processMessage(UInt64 messageId, Int32 sequence, BinaryReader messageReader, TLMethod request)
bei TLSharp.Core.Network.MtProtoSender.<Receive>d__8.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
bei TLSharp.Core.TelegramClient.<RequestWithDcMigration>d__11.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei System.Runtime.CompilerServices.TaskAwaiter.GetResult()
bei TLSharp.Core.TelegramClient.<SendRequestAsync>d__19`1.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
bei ClientManager.Client.<ForwardMessage>d__25.MoveNext() in C:\dev\Telegram\ExperimentalBot\ClientManager\Client.cs:Zeile 304.
Any Ideas whats going wrong?
Hi I want to forward message from a channel, a group or an user to another a channel, a group or an user but throw in exception: 'INPUT_METHOD_INVALID'. This is my source code `
` All variable have values and aren't null and I tested them with sending message. Message "INPUT_METHOD_INVALID"
StackTrace " at TLSharp.Core.Network.MtProtoSender.HandleRpcResult(UInt64 messageId, Int32 sequence, BinaryReader messageReader, TLMethod request)\r\n at TLSharp.Core.Network.MtProtoSender.processMessage(UInt64 messageId, Int32 sequence, BinaryReader messageReader, TLMethod request)\r\n at TLSharp.Core.Network.MtProtoSender.d8.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at TLSharp.Core.TelegramClient.d 11.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.GetResult()\r\n at TLSharp.Core.TelegramClient.d__19d__38.MoveNext() in E:\Vahed Telegram Demo\MainWin.xaml.cs:line 760
1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter
1.GetResult()\r\n at Vahed_Telegram_Demo.MainWin.