C# 如何使用TLsharp将成员连接到带有api电报的电报通道?

C# 如何使用TLsharp将成员连接到带有api电报的电报通道?,c#,api,member,telegram,C#,Api,Member,Telegram,如何使用电报API将成员加入电报频道 通过使用“TLsharp”库或其他库c# TLInputUser u=新的TLInputUser(){ access\u hash=user.access\u hash.Value, user\u id=user.id }; chatusers.list.Add(u); TeleSharp.TL.TLInputChannel mychannel=新TeleSharp.TL.TLInputChannel(){ channel_id=chat.id, acces

如何使用电报API将成员加入电报频道 通过使用“TLsharp”库或其他库c#

TLInputUser u=新的TLInputUser(){
access\u hash=user.access\u hash.Value,
user\u id=user.id
};
chatusers.list.Add(u);
TeleSharp.TL.TLInputChannel mychannel=新TeleSharp.TL.TLInputChannel(){
channel_id=chat.id,
access\u hash=chat.access\u hash.Value
};
var req=新的TLRequestInviteToChannel(){
频道=我的频道,
用户=聊天室用户
};      
var result=wait client.SendRequestAsync(req);

请尝试包含一些注释,而不仅仅是示例代码。@fordpiffer这很简单forward@Chillzy不管这是不是真的,只有代码的答案是不可接受的SO@fordprefect我喜欢在代码中的某个地方抛出kill(“.”),以查看OP是否读取并理解代码。