trying to do the same, im using the folowing code:
async Task InviteUserToChannel(TLAbsInputUser user, TLInputChannel channelid, TelegramClient client)
{
TLVector u = new TLVector();
u.Add(user);
var req = new TLRequestInviteToChannel()
{
Channel = channelid,
Users = u
};
var update = client.SendRequestAsync(req).Result;
return update;
}
my problem is how to create the TLAbsInputUser user parameter (got a TLUser object found by phone number or id)
Hello all,
I'm an admin of a private group and I'm looking for how to add an existing contact to my group.
Any assistance is highly appreciated!
Best to you all, Ram