Open Dhamareshwarakumar opened 5 months ago
Your api_id is 6981635625 which should be in range between -2147483648 and 2147483647 Please check if you copy/pasted Telegram API ID and Hash correctly
@IvanGlinkin Why this issue was closed? user id doesn't fit to int type. Please fix
@IvanGlinkin Why this issue was closed? user id doesn't fit to int type. Please fix
you mean to implement the feature to check what user is inputting? Sorry, did not get the question.
@IvanGlinkin Why this issue was closed? user id doesn't fit to int type. Please fix
you mean to implement the feature to check what user is inputting? Sorry, did not get the question.
I think he means that the user IDs in telegram switched from the int32 type to the int64 type in 2021. And the check -2147483648 <= number <= 2147483647
corresponds to the int32 type, while int64 is already 9223372036854775807
.
But the exception is caused by the Telethon library and it swears not at the user's ID, but at the API ID
. I'm not sure exactly what type the API ID
should be int32 or int64.
Most likely, the API ID
should not exceed 32 bits and the person simply entered their API ID incorrectly
While running the script I am getting the following error (followed instructiond as per README)
struct.error: 'i' format requires -2147483648 <= number <= 2147483647
what might be the issue causing this?Detailed error