Exemplo n.º 1
0
 public TelegramSessionState Connect(string governorAccountPhoneNumber = null, string responseCode = null,
                                     string mfaPassword = null)
 {
     _telegramSession.Connect(governorAccountPhoneNumber, responseCode, mfaPassword);
     return(_telegramSession.State);
 }
Exemplo n.º 2
0
 public Task <string> Connect(string governorAccountPhoneNumber = null, string responseCode = null,
                              string mfaPassword = null)
 {
     _telegramSession.Connect(governorAccountPhoneNumber, responseCode, mfaPassword);
     return(Task.FromResult(_telegramSession.State.ToString()));
 }
Exemplo n.º 3
0
 public async Task Connect(string governorAccountPhoneNumber = null, string responseCode = null, string mfaPassword = null)
 {
     await _telegramSession.Connect(governorAccountPhoneNumber, responseCode, mfaPassword);
 }