From 7e94393f03b0be04b3d1bdaf6097a0d5622c950c Mon Sep 17 00:00:00 2001 From: Aleksandr Zelenin Date: Wed, 24 Oct 2018 17:52:22 +0300 Subject: [PATCH] rename Destroy method --- client/tdlib.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/tdlib.go b/client/tdlib.go index 4a5f616..14b3aef 100644 --- a/client/tdlib.go +++ b/client/tdlib.go @@ -90,7 +90,7 @@ func (jsonClient *JsonClient) Execute(req Request) (*Response, error) { } // Destroys the TDLib client instance. After this is called the client instance shouldn't be used anymore. -func (jsonClient *JsonClient) DestroyInstance() { +func (jsonClient *JsonClient) Destroy() { C.td_json_client_destroy(jsonClient.jsonClient) }