public TelegramSessionState Connect(string governorAccountPhoneNumber = null, string responseCode = null, string mfaPassword = null) { _telegramSession.Connect(governorAccountPhoneNumber, responseCode, mfaPassword); return(_telegramSession.State); }
public Task <string> Connect(string governorAccountPhoneNumber = null, string responseCode = null, string mfaPassword = null) { _telegramSession.Connect(governorAccountPhoneNumber, responseCode, mfaPassword); return(Task.FromResult(_telegramSession.State.ToString())); }
public async Task Connect(string governorAccountPhoneNumber = null, string responseCode = null, string mfaPassword = null) { await _telegramSession.Connect(governorAccountPhoneNumber, responseCode, mfaPassword); }