Interface of callback for low-level interaction with TDLib.
Public Instance Methods | |
| virtual void | on_result (std::uint64_t id, td_api::object_ptr< td_api::Object > result)=0 |
| virtual void | on_error (std::uint64_t id, td_api::object_ptr< td_api::error > error)=0 |
| virtual | ~TdCallback ()=default |
|
virtualdefault |
Destroys the TdCallback.
|
pure virtual |
This function is called for every answer to a request made to TDLib and for every incoming update of the type td_api::Update.
| id | Request identifier or 0 for incoming updates. |
| result | Answer to the TDLib request or an incoming update. |
|
pure virtual |
This function is called for every unsuccessful request made to TDLib.
| id | Request identifier. |
| error | An answer to a TDLib request or an incoming update. |