add debug and up tdlib version

This commit is contained in:
shoopea 2021-11-11 22:31:57 +08:00
parent 11c9fe5fa3
commit 88db4dcf8d
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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