topkecleon / telegram-bot-bash

Telegram bot written in bash
Other
426 stars 123 forks source link

Callback not working #183

Closed konqiDAM closed 2 years ago

konqiDAM commented 2 years ago

Hi, I changed export CALLBACK="1" in mycommands.conf, have added a command like this send_inline_buttons "${CHAT[ID]}" "Press Button ..." " Button |RANDOM-BUTTON" and in the mycallbacks() I added in the first line this answer_callback_query "${iBUTTON[ID]}" "Button data is: ${iBUTTON[DATA]}", even a simple send_normal_message "XXXXX" "callback..." but nothing seems to be working.

I'm missing something or does it not work?

gnadelwartz commented 2 years ago

I'll have a look if button callback is working as it should

konqiDAM commented 2 years ago

Any news? Maybe its an error on my end. The strange thins is that the callback appears on the logs image

gnadelwartz commented 2 years ago

Looks like an error in bot, will have a look on weekend

konqiDAM commented 2 years ago

Ho, I just figured it out what happened. I fucked up. image I thought it was a good idea to modify the commands.sh (even there are 2000 alerts saying not to do it) and I added a line to check permissions that I wasn't remembering. Sorry for the inconvenience. Also I tipped you one bat with brave, if you want it try brave to receive it. cheers