1
0
Fork
You've already forked Maupno
0
Telegram bot which tells you when updates are available for OsmAnd map files
  • PHP 100%
Find a file
2024年09月10日 19:13:37 +02:00
protected upload beta version 2024年08月06日 20:59:23 +02:00
.gitignore add gitignore 2024年08月06日 19:13:37 +02:00
config-example.php m. fix that botToken was renamed to have camelCasing 2024年09月01日 03:57:44 +02:00
functions.php Fix MarkdownV2 syntax in messages; consistently escape backslashes that should be literally passed to Telegram because they escape a MarkdownV2 character 2024年09月10日 19:13:37 +02:00
LICENSE.txt License as AGPLv3 and tell users about it in the /about command 2024年08月07日 19:13:37 +02:00
periodic-check.php Fix MarkdownV2 syntax in messages; consistently escape backslashes that should be literally passed to Telegram because they escape a MarkdownV2 character 2024年09月10日 19:13:37 +02:00
README.md m. Fix typo leading to a broken link 2024年08月11日 01:58:14 +02:00
testdata.php upload beta version 2024年08月06日 20:59:23 +02:00
tests.php Add tests for case-insensitive commands 2024年09月01日 23:37:35 +02:00
texts.php Fix MarkdownV2 syntax in messages; consistently escape backslashes that should be literally passed to Telegram because they escape a MarkdownV2 character 2024年09月10日 19:13:37 +02:00
update.php Fix MarkdownV2 syntax in messages; consistently escape backslashes that should be literally passed to Telegram because they escape a MarkdownV2 character 2024年09月10日 19:13:37 +02:00

Maupno

Map Update Notifier

This is the source code for a Telegram bot which can let you know when there are updates available for OsmAnd map files

https://telegram.me/MaupnoBot is the instance operated by the maintainer of this repository

Installation

If anyone has an interest in setting this up, ask me to make more detailed instructions! In short, clone the repository on a web server, copy config-example.php to config.php, and open the file to see what configurations you can set. This will point you to steps like setting directory permissions for SQLite, obtaining the bot API token, and how to configure Telegram to send requests to your web server when someone sends a message to your bot. Finally, call periodic-check.php on a regular schedule (such as every 8 hours; be a good netizen!), for example using cron, which will query the map file dates on OsmAnd servers and, when applicable, send out messages to anyone who requested the alerts on Telegram.

Messages sent to the bot are handled in update.php and you can run tests by opening tests.php from a web browser.

Log messages may appear in ./protected/bot.log by default; see the config.

Contributions

...of any kind are welcome!

License

AGPLv3, see the file LICENSE.txt.