From 88db4dcf8d84160bb180feb77e4a2a0ac3911edc Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 11 Nov 2021 22:31:57 +0800 Subject: [PATCH] add debug and up tdlib version --- Dockerfile | 5 ++--- main.go | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ab0bbe1..053534c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,14 +11,13 @@ RUN apk add --no-cache \ WORKDIR /tmp/_build_tdlib/ -RUN git clone --depth 1 --branch v1.5.0 https://github.com/tdlib/td.git /tmp/_build_tdlib/ +RUN git clone --depth 1 --branch v1.6.0 https://github.com/tdlib/td.git /tmp/_build_tdlib/ RUN mkdir build WORKDIR /tmp/_build_tdlib/build/ RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr/local .. -RUN make -j9 -RUN cmake --build . --target install +RUN cmake --build . -- -j9 RUN make install ARG COMMIT=latest diff --git a/main.go b/main.go index 1f772e9..a4bc9d2 100644 --- a/main.go +++ b/main.go @@ -271,6 +271,9 @@ func ListenCW(c *tdlib.Client) { msgDelete = true case "/g_withdraw": time.Sleep(1 * time.Second) + fmt.Printf("WITHDRAW VALIDATED : msg_id : %d", updateMsg.Message.ID) + fmt.Printf("WITHDRAW VALIDATED : chat_id : %d", updateMsg.Message.ChatID) + fmt.Printf("WITHDRAW VALIDATED : user_id : %d", msgUserID64) _ = ForwardMsg(c, updateMsg.Message.ID, updateMsg.Message.ChatID, msgUserID64) msgDisplay = false msgDelete = false