Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. def file_error(file, error):
  2. ts = time.localtime()
  3. message = f'*{ts.tm_mday:02}.{ts.tm_mon:02}.{ts.tm_year} {ts.tm_hour:02}:{ts.tm_min:02}:{ts.tm_sec:02} Error*:\\n{file} ({error})'
  4. os.system('telegram-bot -u \"MuellerDominik\" -t \"' + message + '\" --parsing \"markdown\"')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement