Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Hello there about decoder error #1

@tasakihina

Description

@tasakihina

I don't know coding and followed the steps to install this. Everything was okay until I typed python main.py

Here is the traceback:

C:\Users\User\python-telegram-bot\ChatGPT>python main.py
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\toml\decoder.py", line 511, in loads
ret = decoder.load_line(line, currentlevel, multikey,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\toml\decoder.py", line 778, in load_line value, vtype = self.load_value(pair[1], strictly_valid)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\toml\decoder.py", line 880, in load_value
return (self.load_array(v), "array")
^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\toml\decoder.py", line 1026, in load_array
nval, ntype = self.load_value(a[i])
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\toml\decoder.py", line 918, in load_value
v = int(v, 0)
^^^^^^^^^
ValueError: invalid literal for int() with base 0: '<5045976266>'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\User\python-telegram-bot\ChatGPT\main.py", line 275, in
config_map = toml.load(config_file)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\toml\decoder.py", line 134, in load
return loads(ffile.read(), _dict, decoder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\toml\decoder.py", line 514, in loads
raise TomlDecodeError(str(err), original, pos)
toml. decoder.TomlDecodeError: invalid literal for int() with base 0: '<5045976266>' (line 3 column 1 char 63)

I don't know how to fix this. Please give me a hand if you have any ideas. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions