Explorar el Código

fix raw updates import

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

+ 1 - 1
gramjs/client/updates.ts

@@ -17,7 +17,7 @@ export function on(client: TelegramClient, event: any) {
 export function addEventHandler(client: TelegramClient, callback: CallableFunction, event?: EventBuilder) {
     if (event == undefined) {
         // recursive imports :(
-        const raw = require("../events/Raw");
+        const raw = require("../events/Raw").Raw;
         event = new raw({}) as Raw;
     }
     client._eventBuilders.push([event, callback])