MCPcopy Create free account
hub / github.com/TechifyBots/Rename-Bot / new_user

Method new_user

helper/database.py:12–34  ·  view source on GitHub ↗
(self, id)

Source from the content-addressed store, hash-verified

10 self.premium = self.db.premium
11
12 def new_user(self, id):
13 return dict(
14 _id=int(id),
15 join_date=datetime.date.today().isoformat(),
16 file_id=None,
17 caption=None,
18 prefix=None,
19 suffix=None,
20 used_limit=0,
21 usertype="Free",
22 uploadlimit=Config.FREE_UPLOAD_LIMIT,
23 daily=0,
24 metadata_mode=False,
25 metadata_code="--change-title @TechifyBots\n--change-video-title @TechifyBots\n--change-audio-title @TechifyBots\n--change-subtitle-title @TechifyBots\n--change-author @TechifyBots",
26 expiry_time=None,
27 has_free_trial=False,
28 ban_status=dict(
29 is_banned=False,
30 ban_duration=0,
31 banned_on=datetime.date.max.isoformat(),
32 ban_reason=''
33 )
34 )
35
36 async def add_user(self, b, m):
37 u = m.from_user

Callers 1

add_userMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected