3
0
Telegram_PaimonBot/defs/challenge.py

27 lines
537 B
Python
Raw Normal View History

from pyrogram.types import Message
from datetime import datetime
def get_day(message: Message):
mes = message.text
if '' in mes:
day = 1
elif '' in mes:
day = 2
elif '' in mes:
day = 3
elif '' in mes:
day = 4
elif '' in mes:
day = 5
elif '' in mes:
day = 6
else:
day = datetime.now().isoweekday()
if '' in mes:
if day == 7:
day = 1
else:
day += 1
return day