Explorar el Código

show traceback on getMe error

painor hace 4 años
padre
commit
e306b04977
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      gramjs/client/users.ts

+ 3 - 0
gramjs/client/users.ts

@@ -72,6 +72,9 @@ export async function getMe(client: TelegramClient, inputPeer = false): Promise<
         }
         return inputPeer ? client._selfInputPeer : me;
     } catch (e) {
+        if (client._log.canSend('error')){
+            console.log(e);
+        }
         throw new Error("Could not get me");
     }
 }