randydev commited on
Commit
a8ad0c8
·
verified ·
1 Parent(s): d99dd3a

Update chatbot/plugins/chat.py

Browse files
Files changed (1) hide show
  1. chatbot/plugins/chat.py +5 -1
chatbot/plugins/chat.py CHANGED
@@ -168,6 +168,8 @@ From ✍️ text, 🖼️ images etc, to full 🗣️ conversations — Gemini i
168
  GEMINI_START_TEXT = """
169
  Welcome to Gemini AI [Dev]
170
 
 
 
171
  You’ve entered the realm of limitless possibilities.
172
  From text, photos, to full conversations — Gemini is your digital partner.
173
 
@@ -984,6 +986,8 @@ async def startbot(client: Client, message: Message):
984
  user_bl = await db.user_blacklists.find_one({"user_id": message.from_user.id})
985
  if user_bl and user_bl.get("is_frozen", False):
986
  return
 
 
987
  buttons = [
988
  [
989
  InlineKeyboardButton(
@@ -1008,7 +1012,7 @@ async def startbot(client: Client, message: Message):
1008
  upsert=True
1009
  )
1010
  await message.reply_text(
1011
- text=GEMINI_START_TEXT,
1012
  disable_web_page_preview=True,
1013
  reply_markup=InlineKeyboardMarkup(buttons)
1014
  )
 
168
  GEMINI_START_TEXT = """
169
  Welcome to Gemini AI [Dev]
170
 
171
+ Users: `{user}`
172
+
173
  You’ve entered the realm of limitless possibilities.
174
  From text, photos, to full conversations — Gemini is your digital partner.
175
 
 
986
  user_bl = await db.user_blacklists.find_one({"user_id": message.from_user.id})
987
  if user_bl and user_bl.get("is_frozen", False):
988
  return
989
+ users_all = await db.backup_chatbot.find_one({"bot_id": client.me.id})
990
+ users_count = len(users_all["broadcast"])
991
  buttons = [
992
  [
993
  InlineKeyboardButton(
 
1012
  upsert=True
1013
  )
1014
  await message.reply_text(
1015
+ text=GEMINI_START_TEXT.format(user=users_count),
1016
  disable_web_page_preview=True,
1017
  reply_markup=InlineKeyboardMarkup(buttons)
1018
  )