Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
2421595
1
Parent(s):
48f18b6
Update start_utils.py
Browse files
Powers/utils/start_utils.py
CHANGED
@@ -35,6 +35,7 @@ async def gen_cmds_kb(m: Message or CallbackQuery):
|
|
35 |
|
36 |
async def gen_start_kb(q: Message or CallbackQuery):
|
37 |
"""Generate keyboard with start menu options."""
|
|
|
38 |
return ikb(
|
39 |
[
|
40 |
[
|
@@ -58,7 +59,7 @@ async def gen_start_kb(q: Message or CallbackQuery):
|
|
58 |
),
|
59 |
(
|
60 |
"Owner ❤️",
|
61 |
-
f"https://t.me/
|
62 |
"url",
|
63 |
),
|
64 |
],
|
@@ -70,7 +71,7 @@ async def gen_start_kb(q: Message or CallbackQuery):
|
|
70 |
),
|
71 |
(
|
72 |
"Powered by",
|
73 |
-
"https://
|
74 |
"url",
|
75 |
),
|
76 |
],
|
@@ -91,8 +92,9 @@ async def get_private_note(c: Gojo, m: Message, help_option: str):
|
|
91 |
f"- [{note[0]}](https://t.me/{Config.BOT_USERNAME}?start=note_{chat_id}_{note[1]})"
|
92 |
for note in all_notes
|
93 |
]
|
94 |
-
rply = "
|
95 |
-
rply += "
|
|
|
96 |
await m.reply_text(rply, disable_web_page_preview=True, quote=True)
|
97 |
return
|
98 |
|
|
|
35 |
|
36 |
async def gen_start_kb(q: Message or CallbackQuery):
|
37 |
"""Generate keyboard with start menu options."""
|
38 |
+
owner_username = (await Gojo.get_users(Config.OWNER_ID)).username
|
39 |
return ikb(
|
40 |
[
|
41 |
[
|
|
|
59 |
),
|
60 |
(
|
61 |
"Owner ❤️",
|
62 |
+
f"https://t.me/{owner_username}",
|
63 |
"url",
|
64 |
),
|
65 |
],
|
|
|
71 |
),
|
72 |
(
|
73 |
"Powered by",
|
74 |
+
f"https://{Config.SUPPORT_CHANNEL}.t.me",
|
75 |
"url",
|
76 |
),
|
77 |
],
|
|
|
92 |
f"- [{note[0]}](https://t.me/{Config.BOT_USERNAME}?start=note_{chat_id}_{note[1]})"
|
93 |
for note in all_notes
|
94 |
]
|
95 |
+
rply = f"Available notes in {chat_title}"
|
96 |
+
rply += "\n".join(note_list)
|
97 |
+
rply += "\n\nYou can retrieve these notes by tapping on the notename."
|
98 |
await m.reply_text(rply, disable_web_page_preview=True, quote=True)
|
99 |
return
|
100 |
|