feat: Added ability to upload video and voice messages as notes

This commit is contained in:
ITQ
2024-03-26 09:06:26 +03:00
parent 37101629b5
commit 1d8ce5844e
3 changed files with 36 additions and 5 deletions
+4
View File
@@ -170,6 +170,10 @@ def notes_keyboard(notes, page: int, pages: int, travel_id: int):
for note in notes[start_index:end_index]:
if note.file_type == "photo":
button_text = f"Photo ID: {note.id}"
elif note.file_type == "video":
button_text = f"Video ID: {note.id}"
elif note.file_type == "voice":
button_text = f"Voice ID: {note.id}"
else:
button_text = note.file_name