randydev commited on
Commit
b81fb50
·
verified ·
1 Parent(s): 4d31582

Update chatbot/plugins/chat.py

Browse files
Files changed (1) hide show
  1. chatbot/plugins/chat.py +40 -0
chatbot/plugins/chat.py CHANGED
@@ -56,6 +56,46 @@ DISABLE_COMMAND = [
56
  "onchat"
57
  ]
58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  FREE_GEMINI_TEXT = """
60
  • User Free : {name}
61
  - Text: `{check_enable}`
 
56
  "onchat"
57
  ]
58
 
59
+
60
+ GEMINI_START_TEXT = """
61
+ Hey! {name}
62
+
63
+ I am ready to be a gemini bot developer
64
+
65
+ - Command: /onchat (pm or group)
66
+ - Command: /offchat (pm or group)
67
+ """
68
+
69
+ @Client.on_message(
70
+ ~filters.scheduled
71
+ & filters.command(["start"])
72
+ & ~filters.forwarded
73
+ )
74
+ async def startbot(client: Client, message: Message):
75
+ buttons = [
76
+ [
77
+ InlineKeyboardButton(
78
+ text="Developer",
79
+ url=f"https://t.me/xtdevs"
80
+ ),
81
+ InlineKeyboardButton(
82
+ text="Channel",
83
+ url='https://t.me/RendyProjects'
84
+ ),
85
+ ],
86
+ [
87
+ InlineKeyboardButton(
88
+ text="Donate Via Web",
89
+ web_app=WebAppInfo(url="https://sociabuzz.com/randydev99/tribe")
90
+ )
91
+ ]
92
+ ]
93
+ await message.reply_text(
94
+ text=GEMINI_START_TEXT.format(name=message.from_user.mention),
95
+ disable_web_page_preview=True,
96
+ reply_markup=InlineKeyboardMarkup(buttons)
97
+ )
98
+
99
  FREE_GEMINI_TEXT = """
100
  • User Free : {name}
101
  - Text: `{check_enable}`