MCPcopy Create free account
hub / github.com/VJBots/VJ-Forward-Bot / start

Function start

plugins/commands.py:42–50  ·  view source on GitHub ↗
(client, message)

Source from the content-addressed store, hash-verified

40
41@Client.on_message(filters.private & filters.command(['start']))
42async def start(client, message):
43 user = message.from_user
44 if not await db.is_user_exist(user.id):
45 await db.add_user(user.id, user.first_name)
46 reply_markup = InlineKeyboardMarkup(main_buttons)
47 await client.send_message(
48 chat_id=message.chat.id,
49 reply_markup=reply_markup,
50 text=Script.START_TXT.format(message.from_user.first_name))
51
52# Don't Remove Credit Tg - @VJ_Botz
53# Subscribe YouTube Channel For Amazing Bot https://youtube.com/@Tech_VJ

Callers

nothing calls this directly

Calls 2

is_user_existMethod · 0.80
add_userMethod · 0.80

Tested by

no test coverage detected