invoke method

Future<TlObject> invoke(
  1. TlMethod method
)

The low-level escape hatch: invoke any raw t.TlMethod (from the tl library) that ptgc doesn't have a typed wrapper for yet. Handles DC migration and error translation just like every other method in this package.

Implementation

Future<t.TlObject> invoke(t.TlMethod method) {
  return callRaw<t.TlObject>(() => raw.invoke(method));
}