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

Function start

plugins/start_and_cb.py:24–36  ·  view source on GitHub ↗
(client, message)

Source from the content-addressed store, hash-verified

22
23@Client.on_message(filters.private & filters.command("start"))
24async def start(client, message):
25 start_button = [[
26 InlineKeyboardButton('ᴀʙᴏᴜᴛ', callback_data='about'),
27 InlineKeyboardButton('ʜᴇʟᴘ', callback_data='help')
28 ]]
29 if client.premium:
30 start_button.append([InlineKeyboardButton('💸 ᴜᴘɢʀᴀᴅᴇ ᴛᴏ ᴘʀᴇᴍɪᴜᴍ 💸', callback_data='upgrade')])
31 user = message.from_user
32 await digital_botz.add_user(client, message)
33 if Config.PIC:
34 await message.reply_photo(Config.PIC, caption=rkn.START_TXT.format(user.mention), reply_markup=InlineKeyboardMarkup(start_button))
35 else:
36 await message.reply_text(text=rkn.START_TXT.format(user.mention), reply_markup=InlineKeyboardMarkup(start_button), disable_web_page_preview=True)
37
38@Client.on_message(filters.private & filters.command('setprefix'))
39async def add_prefix(client, message):

Callers

nothing calls this directly

Calls 1

add_userMethod · 0.80

Tested by

no test coverage detected