add debug and up tdlib version
This commit is contained in:
parent
11c9fe5fa3
commit
88db4dcf8d
@ -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
|
||||
|
3
main.go
3
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
|
||||
|
Loading…
Reference in New Issue
Block a user