Skip to content

GHOSTsama2503/OSM-Changesets-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🗺️ OSM Changesets Bot

Note

The initial version (in Python) is still available in the python branch

Easy way to see the changesets in a certain area in Telegram. Send the messages directly to you, or create a channel and share it with other users.

Set up the environment variables

Environment variables are necessary, to declare them just create a .env file at the root of the project (you can use another method if you prefer).

  • BOT_TOKEN: Telegram bot token, is obtained from @BotFather (Create a new bot if required)
  • CHANNEL_ID: Unique identifier for the target chat or username of the target channel (in the format @channelusername)
  • DETA_KEY: Deta API key.
  • FEED_URL: URL of the OSMCha filter that you want to use.
  • TASK_INTERVAL: Time in seconds between each feed parse.
  • RETRY_INTERVAL: Time in seconds to wait after each error before running the task again.