Sign In
Install Telega
package.
If you use dotnet CLI just type dotnet add package Telega
.
Add imports:
Prepare API credentials. You can read how to obtain full-fledged credentials here.
Create the client:
Sign in with code verification:
It will throw TgPasswordNeededException
if there is a cloud password.
So here is what you need to do: