Update chatbot/plugins/keyboards_gemini.py
Browse files
chatbot/plugins/keyboards_gemini.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from pyrogram import Client
|
2 |
from pyrogram.types import *
|
3 |
from database import users_collection
|
4 |
|
@@ -30,4 +30,11 @@ async def set_model(client: Client, callback_query: CallbackQuery):
|
|
30 |
await callback_query.message.edit_text(
|
31 |
f"Your Model has been set to **{model}**.",
|
32 |
reply_markup=None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
)
|
|
|
1 |
+
from pyrogram import Client, filters
|
2 |
from pyrogram.types import *
|
3 |
from database import users_collection
|
4 |
|
|
|
30 |
await callback_query.message.edit_text(
|
31 |
f"Your Model has been set to **{model}**.",
|
32 |
reply_markup=None
|
33 |
+
)
|
34 |
+
|
35 |
+
@Client.on_message(filters.command("setmodel"))
|
36 |
+
async def setmodel_cmd(client: Client, message: Message):
|
37 |
+
await message.reply(
|
38 |
+
"Please select your preferred Gemini Model:",
|
39 |
+
reply_markup=get_gemini_keyboard()
|
40 |
)
|