Skip to content

invalid literal for int() with base 10: 'STunionn\\n' #1

@ljhOfGithub

Description

@ljhOfGithub
Traceback (most recent call last):
  File "joinGroup_final.py", line 33, in join_group_by_id
    channel = await client.get_entity(PeerChannel(int('{channel_id}'.format(channel_id=channel_id))))
ValueError: invalid literal for int() with base 10: 'STunionn\n'
加群失败 ("invalid literal for int() with base 10: 'STunionn\\n'",)
总共成功数量: 0

hello,when I use your example of 't.me/STunionn' in the txt file,I get the error.How can I fix it?
I use await client(ImportChatInviteRequest(hash='hlQ3QhNi6q05ZDIx')) instead, but it can't work.

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