Closed x23piracy closed 5 years ago
Chat id you can get from telegram api, from telegram app you can create group with your bot then call this api to get chat id(base on group/single chat)
https://api.telegram.org/bot[token]/getUpdates
expectation for telegram integration is:
Hi,
thanks i found out how it's working.
Regards X23
@x23piracy maybe you could contribute a short howto setup the telegram integration?
Hi,
sure:
This started only working for me (Xiaofang 1S, afaik 32MB of RAM (less, less and less)) after i enabled SWAP in run.ssh, i currently only use a 64MB SWAP instead of the default of 256MB.
After that the camera started to send picture by telegram.
@asharijuang you screener from above looks like that you are having currently more functionality than only sending picture through telegram, tell us more please :)
Regards X23
Would you be so kind and make a PR towards the documentation?
@jmtatsch do you mean me? Sorry but whats a PR? :)
Yes, PR means a pull request :)
in my case motion detect not triger sendphoto to telegram, don't know why.
@x23piracy just modify on /script/telegram-bot-daemon.sh we can play sound, just for fun 😅
I added some functions, I also added reboot this function works when I start restarting the cameras again and again, my question is how to remove / reboot functions from the memory of the camera to perform only once
I update to last git version files project. I put auth api data to file. Change SWAP size from 256 to 64. From url api get id chat. Enable in panel slide motion telegram. In chat i write /start, /mem and not work.
Can you wrote step to step how make this to work?
Just for future reference or for users that couldn't findout the ChatID with the mothods explained before, I was able to get it right with the following instructions:
/help
to him, to see what he can offer/newbot
command and provide the requested infoIMPORTANT:
If any, also the minus "-" sign must be included at the userChatId
field when setting up the telegram.conf
file, for example:
userChatId="-436522340"
Hi, I have successfully flashed my Xiaofang S1 (64mb) camera. I have been able to use the telegram feature, but for the /videoalert feature it doesn't seem to work as it should. For features / textalerts and /imagealerts to function properly. Is there something I'm missing? I have also activated Memory Swap.
Hi,
i created a new telegram bot and i have the token but i don't get it, how do i gain the chatid and what exact steps needs to be done to make it right, can someone help me please?
Regards X23