Update main.py
Co-authored-by: Eugene Evstafev <36392751+chigwell@users.noreply.github.com>
This commit is contained in:
parent
03c927bc9d
commit
861a1281d5
1 changed files with 0 additions and 1 deletions
1
main.py
1
main.py
|
|
@ -19,7 +19,6 @@ import mimetypes
|
||||||
import logging
|
import logging
|
||||||
import telethon.errors.rpcerrorlist
|
import telethon.errors.rpcerrorlist
|
||||||
|
|
||||||
# Helper function for JSON serialization of datetime, bytes, and other non-serializable objects
|
|
||||||
def json_serializer(obj):
|
def json_serializer(obj):
|
||||||
"""Helper function to convert non-serializable objects for JSON serialization."""
|
"""Helper function to convert non-serializable objects for JSON serialization."""
|
||||||
if isinstance(obj, datetime):
|
if isinstance(obj, datetime):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue