td_receive method
- double timeout
Receives incoming updates and request responses. Must not be called simultaneously from two different threads.
The returned pointer can be used until the next call to td_receive or td_execute, after which it will be deallocated by TDLib.
\paramin
timeout The maximum number of seconds allowed for this function to wait for new data.
\return JSON-serialized null-terminated incoming update or request response. May be NULL if the timeout expires.
Implementation
ffi.Pointer<pkg_ffi.Utf8> td_receive(
double timeout,
) {
return _td_receive(
timeout,
);
}