sochix / TLSharp

Telegram client library implemented in C#
1k stars 380 forks source link

unable to cast object of type 'TLSharp.Core.MTProto.UserContactCostructor' to type TLSharp.Core.MTProto.UserSelfCostructor #24

Closed hamidpp closed 9 years ago

hamidpp commented 9 years ago

hi: i get this error after invoke sendMessage method in test mode : unable to cast object of type 'TLSharp.Core.MTProto.UserContactCostructor' to type TLSharp.Core.MTProto.UserSelfCostructor please help me.

sochix commented 9 years ago

Don't try to send messages to your self! 17 окт. 2015 г. 3:46 пользователь "hamid reza" notifications@github.com написал:

hi: i get this error after invoke sendMessage method in test mode : unable to cast object of type 'TLSharp.Core.MTProto.UserContactCostructor' to type LSharp.Core.MTProto.UserSelfCostructor please help me.

— Reply to this email directly or view it on GitHub https://github.com/sochix/TLSharp/issues/24.

hamidpp commented 9 years ago

fixed. i change receiver message phone number and fixed. thanks. how to send media now? please guide my friend

sochix commented 9 years ago

No way to send media, sorry. You can contribute or donate 17 окт. 2015 г. 22:56 пользователь "hamid reza" notifications@github.com написал:

fixed. i change receiver message phone number and fixed. thanks. how to send media now? Please guide my friend

— Reply to this email directly or view it on GitHub https://github.com/sochix/TLSharp/issues/24#issuecomment-148921630.

hamidpp commented 9 years ago

how to invoke auth.resetAuthorizations method?

hamidpp commented 9 years ago

i define method to auth.resetAuthorizations with this body : public override void OnSend(BinaryWriter writer) { writer.Write(0x9fab0d1a); Serializers.String.write(writer, ""); } but get this error, INPUT_REQUEST_TOO_LONG

sochix commented 9 years ago

Sorry can't help, read the documentation of Telegram API.

hamidpp commented 9 years ago

thanks, but worst tired dear friend with the donation

On Wed, Oct 21, 2015 at 6:18 AM, Ilya Pirozhenko notifications@github.com wrote:

Sorry can't help, read the documentation of Telegram API.

— Reply to this email directly or view it on GitHub https://github.com/sochix/TLSharp/issues/24#issuecomment-149766877.