diff --git a/bot.py b/bot.py index 6177f1c6..cceba457 100644 --- a/bot.py +++ b/bot.py @@ -477,7 +477,7 @@ def getrygimage(): telegram.sendmessage("Puoi mettere solo due lettere.") else: directory = "/var/www/html/rygimages/{}.png" - infile = b" image/svg+xml %s " % cmd[1].encode() + infile = " image/svg+xml {} ".format(cmd[1]).encode() try: outfile = open(directory.format(cmd[1]), "x") outfile.close()