-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbot.py
53 lines (33 loc) · 1.08 KB
/
bot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
"""
@file bot.py
@description This file is a preview of the bot functions & database collection updates
@author Arman H
@contact [email protected]
@website https://armiro.github.io
@linkedin https://linkedin.com/in/armanhgh
@note Feel free to contact or open issue to learn more about the project, collaborate, or discuss source code pricing
@repository https://github.com/armiro/Telegram-Minigame-Demo
"""
import logging
import os
from telegram.ext import Application, CommandHandler, ContextTypes
from mongo_db import get_users_collection
# import other libraries ...
REF_CODE_LENGTH = 0
WELCOME_BONUS = 0
REF_BONUS = 0
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
load_dotenv('./variables.env')
users_collection = get_users_collection()
def generate_ref_code(guid, length=REF_CODE_LENGTH):
return None
def generate_random_reward():
return None
async def start(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
return None
# define other functions ...
def main() -> None:
pass
if __name__ == '__main__':
main()