Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Persistent data managing API to be used by a Telegram bot serving a public transportation service 🤖🚌💾

License

NotificationsYou must be signed in to change notification settings

David-Lor/Telegram-BusBot-DataManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data manager for Telegram bots based on serving Stops/Bus information for a public transportation system. Written mainly to use with theVigoBus-TelegramBot.

The data manager store all the persistent data the bot works with, mainly the Saved Stops that bot users can store, on MongoDB.

The communication between the bot backend and this data manager is through a REST API, serving GET, POST and DELETE endpoint methods. The API is powered byFastAPI and fully async.

Endpoints

  • GET/status: get API status (healthcheck)
  • GET/stops/{user_id}: get all the Stops saved by the given User
  • POST/stops: insert or update a Saved Stop (stop data in body request)
  • DELETE/stops/{user_id}/{stop_id}: remove the given Stop from the given User
  • DELETE/stops/{user_id}: remove all the Stops from the given User

Changelog

  • 0.2.2
    • Fix stop created field being removed on update
    • Refactor imports
  • 0.2.1
    • Deprecate dotenv-settings-handler
    • Deprecate pybusent external library for data models
    • Freeze requirements package versions
    • Remove version setting
  • 0.1.0
    • Add endpoint to delete all stops of a user
  • 0.0.2
    • Renamedstopid,userid,name tostop_id,user_id,stop_name
  • 0.0.1
    • Initial release
    • Functional GET, POST, DELETE methods connected with MongoDB

Requirements

About

Persistent data managing API to be used by a Telegram bot serving a public transportation service 🤖🚌💾

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp