+ 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
14 lines
496 B
Python
14 lines
496 B
Python
from telebot import asyncio_storage, TeleBot, storage
|
||
from telebot.async_telebot import AsyncTeleBot
|
||
from telebot.types import BotCommand
|
||
|
||
from poizonstore import settings
|
||
|
||
# Global objects
|
||
bot = AsyncTeleBot(settings.TG_BOT_TOKEN, state_storage=asyncio_storage.StateRedisStorage())
|
||
bot_sync = TeleBot(settings.TG_BOT_TOKEN, state_storage=storage.StateRedisStorage())
|
||
|
||
commands = [
|
||
# BotCommand("add_phone", "Связать номер телефона с профилем на сайте")
|
||
]
|