Geofencing an IoT device using a Telegram Bot

I want to use the Universal-Arduino-Telegram-Bot library to use a Telegram bot to geofence an IoT device. The following example should return longitude and latitude but for me I only ever get zero values for these. I do have "inline mode" and "inline location data enabled". This said I was only asked twice to allow it and even though I said yes, the values returned were still zero.

I have not been able to find a detailed tutorial on this and so cannot work out what I am doing wrong. Once I work out how to use the location I will then be able to include geofencing into the actual IoT project that I am working on.

From what I can work out, the bot should ask whether or not the location is to be shared and this is not happening.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.