TLSharp
TLSharp copied to clipboard
GetFullChat + GetAllChats + MakeAuthBotAsync + Other methods
- GetFullChat to get the info of a chat
- GetAllChats to get all available user's chats
- MakeAuthBotAsync to authenticate a bot instead of a user
You need to remove the DataCenterIPVersion stuff from here, otherwise the PRs are not separate (if I merge the other one, there will be conflicts here).
You need to remove the DataCenterIPVersion stuff from here, otherwise the PRs are not separate (if I merge the other one, there will be conflicts here).
ok i think it's ok now
@aarani can you review this PR?
@knocte as for the Array.ForEach, the only replacement i am aware of is to do a classic for(int i...). i wouldn't use any other list in this case as they would introduce a worse overhead than the Array.ForEach.
as for the Array.ForEach, the only replacement i am aware of is to do a classic for(int i...). i wouldn't use any other list in this case as they would introduce a worse overhead than the Array.ForEach.
Let's use a normal foreach then. More reasoning here: https://docs.microsoft.com/en-gb/archive/blogs/ericlippert/foreach-vs-foreach