Skip to content

Commit

Permalink
fix syntax erros for prints
Browse files Browse the repository at this point in the history
  • Loading branch information
iw4p committed Oct 27, 2020
1 parent 08bf59d commit 078fc60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions telegramcloud/__main__.py
Expand Up @@ -54,9 +54,9 @@ async def main():
if args.path and username:
try:
message = await client.send_file(entity=target_chat, file=args.path, caption=args.caption, progress_callback=upload_callback)
print(f"File id: {message.file.id}")
print("File id: {}".format(message.file.id))
except:
print("Something else went wrong")
print("Something went wrong, make sure the directory path is valid.")

def cli():
with client:
Expand Down
2 changes: 1 addition & 1 deletion telegramcloud/scripts/tginfo.py
Expand Up @@ -22,7 +22,7 @@ async def main():
number = 0
async for _ in client.iter_messages(entity=username, search=args.search):
number += 1
print(f"{number} {args.search} found.")
print("{} {} found.".format(number, args.search))

else:

Expand Down

0 comments on commit 078fc60

Please sign in to comment.