diff options
| -rw-r--r-- | project/shoutboxapicommunicator.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/project/shoutboxapicommunicator.py b/project/shoutboxapicommunicator.py index 24dfa73..b9e57b6 100644 --- a/project/shoutboxapicommunicator.py +++ b/project/shoutboxapicommunicator.py @@ -18,7 +18,8 @@ class ShoutboxCommunicator(BaseCommunicator): @staticmethod def get_url(): - return "{}/api/last?&telegram=false&id={}".format(ShoutboxCommunicator.url, ShoutboxCommunicator.message_limit_seconds, ShoutboxCommunicator.largest_id) + id_hex = "{0:0{1}x}".format(ShoutboxCommunicator.largest_id, 24) + return "{}/api/last?&telegram=false&id={}".format(ShoutboxCommunicator.url, ShoutboxCommunicator.message_limit_seconds, id_hex) @staticmethod def post_url(): |
