so telegram uses webpack and there is callApi which looks like:
export function callApi<T extends keyof Methods>(fnName: T, ...args: MethodArgs<T>): MethodResponse<T> {
// @ts-ignore
return methods[fnName](...args) as MethodResponse<T>;
}
so how do i call it from console?