rizaumami / merbot

Telegram Group Administration Bot

Home Page:http://rizaumami.github.io/merbot/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bot fails to run

s7ntax opened this issue · comments

This pre-compiled version - https://github.com/rizaumami/merbot/releases/download/v0.4/merbot_0.4_amd64.tar.gz
Ubuntu Server 20.04

./merbot
rm: cannot remove './telegram-cli/state': No such file or directory
./tg/bin/telegram-cli: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

I also tried building this on the server instead of using the pre-compiled version. I get the following error on install

tgl/queries.c: In function ‘_tgl_do_send_photo’:
tgl/queries.c:2091:10: error: cast between incompatible function types from ‘void (*)(struct tgl_state *, void *, int,  struct tgl_message *)’ to ‘void (*)(struct tgl_state *, void *, int)’ [-Werror=cast-function-type]
 2091 |         ((void (*)(struct tgl_state *, void *, int))callback) (TLS, callback_extra, 0);
      |          ^
tgl/queries.c:2108:10: error: cast between incompatible function types from ‘void (*)(struct tgl_state *, void *, int,  struct tgl_message *)’ to ‘void (*)(struct tgl_state *, void *, int)’ [-Werror=cast-function-type]
 2108 |         ((void (*)(struct tgl_state *, void *, int))callback) (TLS, callback_extra, 0);
      |          ^
tgl/queries.c:2141:10: error: cast between incompatible function types from ‘void (*)(struct tgl_state *, void *, int,  struct tgl_message *)’ to ‘void (*)(struct tgl_state *, void *, int)’ [-Werror=cast-function-type]
 2141 |         ((void (*)(struct tgl_state *, void *, int))callback) (TLS, callback_extra, 0);
      |          ^
cc1: all warnings being treated as errors
make: *** [Makefile.tgl:20: objs/queries.o] Error 1
Error. Exiting.

telegram-cli is deprecated. Please use another tools, e.g tdlua.