2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 13:27:47 +00:00

Use snake_case style

This commit is contained in:
Dan 2018-03-08 10:09:03 +01:00 committed by GitHub
parent 58eb19285e
commit efd435befd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1346,7 +1346,7 @@ class Client:
""" """
style = self.html if parse_mode.lower() == "html" else self.markdown style = self.html if parse_mode.lower() == "html" else self.markdown
file = self.save_file(video) file = self.save_file(video)
fileThumb = None if thumb is None else self.save_file(thumb) file_thumb = None if thumb is None else self.save_file(thumb)
while True: while True:
try: try:
@ -1356,7 +1356,7 @@ class Client:
media=types.InputMediaUploadedDocument( media=types.InputMediaUploadedDocument(
mime_type=mimetypes.types_map[".mp4"], mime_type=mimetypes.types_map[".mp4"],
file=file, file=file,
thumb=fileThumb, thumb=file_thumb,
attributes=[ attributes=[
types.DocumentAttributeVideo( types.DocumentAttributeVideo(
supports_streaming=supports_streaming, supports_streaming=supports_streaming,