PROGRADE-Tech / Tarchivebot

:page_with_curl: Telegram chat message archive and statistics
https://tarchive.neat.moe
GNU Affero General Public License v3.0
10 stars 4 forks source link

Implemented search API functionality #29

Closed fuerbringer closed 7 years ago

fuerbringer commented 7 years ago

Example API call:

curl -d '{"key":"2ce757dd2b8e910c98275953f64bbf641a43febd82756544c2f67634bee12ea7","amount":5, "str":"test"}' -H 'Content-Type: application/json' http://localhost:3000/api/search

Searches for messages containing a certain string and returns them.

Returns the same format as #23 Implements the backend part of #8

@Hoi15A Feel free to clone this branch and test it.