06-12-16, 07:57 PM
السلام عليكم
هل من شرح او مثال لاستخدام هذه المكتبة
https://github.com/sochix/TLSharp
انا قدرت ارسل الكود للموبايل وبيوصل وبكتبه وبفعل الرقم
بس ازاى اقدرابعت رسالة او استخدام باقى مميزات المكتبة
حاولت اكتر من مرة
يريت كود لاستخدام فنشكن ارسال رسالة فى هذه المكتبة
https://github.com/sochix/TLSharp
To send message to channel you could use the following code:
//get user dialogs
var dialogs = await client.GetUserDialogsAsync();
//find channel by title
var chat = dialogs.chats.lists
.Where(c => c.GetType() == typeof(TLChannel))
.Cast<TLChannel>()
.FirstOrDefault(c => c.title == "<channel_title>");
//send message
await client.SendMessageAsync(new TLInputPeerChannel() { channel_id = chat.id, access_hash = chat.access_hash.Val
فى انتظار المساعدة او مثال بسيط
هل من شرح او مثال لاستخدام هذه المكتبة
https://github.com/sochix/TLSharp
انا قدرت ارسل الكود للموبايل وبيوصل وبكتبه وبفعل الرقم
بس ازاى اقدرابعت رسالة او استخدام باقى مميزات المكتبة
حاولت اكتر من مرة
يريت كود لاستخدام فنشكن ارسال رسالة فى هذه المكتبة
https://github.com/sochix/TLSharp
To send message to channel you could use the following code:
//get user dialogs
var dialogs = await client.GetUserDialogsAsync();
//find channel by title
var chat = dialogs.chats.lists
.Where(c => c.GetType() == typeof(TLChannel))
.Cast<TLChannel>()
.FirstOrDefault(c => c.title == "<channel_title>");
//send message
await client.SendMessageAsync(new TLInputPeerChannel() { channel_id = chat.id, access_hash = chat.access_hash.Val
فى انتظار المساعدة او مثال بسيط