Spaces:
Paused
Paused
Captain Ezio
commited on
Commit
·
31445af
1
Parent(s):
88c3dc1
Fixed minor issues working on major one
Browse files- Powers/plugins/dev.py +1 -1
- Powers/plugins/notes.py +1 -1
Powers/plugins/dev.py
CHANGED
|
@@ -35,7 +35,7 @@ async def send_log(c: Gojo, m: Message):
|
|
| 35 |
)
|
| 36 |
# Send logs
|
| 37 |
with open(LOGFILE) as f:
|
| 38 |
-
raw = (
|
| 39 |
await m.reply_document(
|
| 40 |
document=LOGFILE,
|
| 41 |
quote=True,
|
|
|
|
| 35 |
)
|
| 36 |
# Send logs
|
| 37 |
with open(LOGFILE) as f:
|
| 38 |
+
raw = ((f.read()))[1]
|
| 39 |
await m.reply_document(
|
| 40 |
document=LOGFILE,
|
| 41 |
quote=True,
|
Powers/plugins/notes.py
CHANGED
|
@@ -67,7 +67,7 @@ async def save_note(_, m: Message):
|
|
| 67 |
async def get_note_func(c: Gojo, m: Message, note_name, priv_notes_status):
|
| 68 |
"""Get the note in normal mode, with parsing enabled."""
|
| 69 |
reply_text = m.reply_to_message.reply_text if m.reply_to_message else m.reply_text
|
| 70 |
-
reply_msg_id = m.
|
| 71 |
if m and not m.from_user:
|
| 72 |
return
|
| 73 |
|
|
|
|
| 67 |
async def get_note_func(c: Gojo, m: Message, note_name, priv_notes_status):
|
| 68 |
"""Get the note in normal mode, with parsing enabled."""
|
| 69 |
reply_text = m.reply_to_message.reply_text if m.reply_to_message else m.reply_text
|
| 70 |
+
reply_msg_id = m.reply_to_message_id if m.reply_to_message else m.id
|
| 71 |
if m and not m.from_user:
|
| 72 |
return
|
| 73 |
|