Grommash9 / tg_chat_mate

https://grommash9.github.io/tg_chat_mate/
MIT License
5 stars 6 forks source link

Custom start message #140

Open Grommash9 opened 8 months ago

Grommash9 commented 8 months ago

Blocked by #139

So far we don't have any start message but we should have it

Later we will have Questions for user (mobile number, email, etc.) so maybe we can store all these messages in same collection?

So I think we should have collection of TEXTS where each text will have friendly code like start_message

So far I see the logic of it like this:

[{"_id": "23iorgjhoi482jor", "code": "start_message", "text": {"uk": "Привіт у нашому боті!", "en": "Hello in our bot!"}]

Instead of using language codes we can use id's of languages and join it, to make connection

Grommash9 commented 8 months ago

We should have GET, POST, PATH, DELETE endpoint for these as well

We should be able to add texts one by one and delete or modify chosen translation of our texts by code

code should be uniq

Grommash9 commented 8 months ago

We should have some start message on first run, make it loadable as languages