MOTIVATION DIVISION.
We've discussed the integration questions with @leha-bot and have agreed on the following implementation to integrate loglist with @xthon channel in Telegram.
IMPLEMENTATION DIVISION.
- Add a new API to post the quote to server. Posted quote should be initially unapproved. API should require secret token to be posted.
- Add a new field to the quotes:
source. The field should be automatically filled when posting the quote. Pairs "API Token → Source" should be kept in the database.
- When returning any quotes from the external API, add the
source field to them.
- Tag the quotes with source on the UI.
END PROGRAM.
MOTIVATION DIVISION.
We've discussed the integration questions with @leha-bot and have agreed on the following implementation to integrate loglist with @xthon channel in Telegram.
IMPLEMENTATION DIVISION.
source. The field should be automatically filled when posting the quote. Pairs "API Token → Source" should be kept in the database.sourcefield to them.END PROGRAM.