DJTommek / better-location

Telegram bot for parsing and generating various of location formats.
https://t.me/BetterLocationBot
MIT License
7 stars 2 forks source link

Pluginer - allow edit location messages #117

Closed DJTommek closed 1 year ago

DJTommek commented 1 year ago

Create chat-based plugin system to allow edit message after it is processed by BetterLocation services but before sending into Telegram chats.

Real example

Goal

Bot is in chat named Berlin and users want to see warning, if distance to Berlin is too big for all locations.

How to do it

When someone sends message, where location is detected, eg link https://www.waze.com/ul?ll=50.087451,14.420671, bot will parse it, discovers that it is WazeService and extract coordinates.

Then will call API URL (set by admin of chat Berlin in settings) with basic information about all detected locations (location coordinates, generated prefix, ...) as parameter. External server can:

Notes