+ Telegram bot: sign up, sign in, notifications + Anonymous users can't see yuan_rate_commission * Only logged in customers can create/update orders * Customer info migrated to separate User model * Renamed legacy fields in serializers * Cleanup in API classes
12 lines
253 B
Python
12 lines
253 B
Python
from tg_bot.handlers import start
|
|
|
|
|
|
def register_handlers():
|
|
from tg_bot.bot import bot
|
|
|
|
handlers = []
|
|
handlers.extend(start.get_handlers())
|
|
|
|
for h in handlers:
|
|
bot.register_message_handler(h.callback, **h.kwargs, pass_bot=True)
|