kwork-poizonstore/tg_bot/bot.py
phzhik fe24802831 + Bonus system (TODO: spend bonuses)
+ 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
2024-04-27 21:29:50 +04:00

14 lines
496 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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", "Связать номер телефона с профилем на сайте")
]