Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Авторизация? #84

Open
HeadShrimp opened this issue Oct 3, 2024 · 6 comments
Open

Авторизация? #84

HeadShrimp opened this issue Oct 3, 2024 · 6 comments

Comments

@HeadShrimp
Copy link

Добрый вечер. Я новенький в Python. На https://my.telegram.org/ создал аппку, взял оттуда App api_id и App api_hash . Запускаю бота, вроде все окей. Но на моменте выбора добавить аккаунт или запустить, мне предлагает написать Session Name а потом номер телефона. Вписываю и выдает

[!] Enter 1 For Adding Account and 2 for start mine + claim: 2
Warning! Most airdrops utilize UTC detection to prevent cheating, which means they monitor your sleep patterns and the timing of your tasks. It's advisable to run your script when you're awake and to pause it before you go to
sleep.
Please enter your phone (or bot token): +38______________
[!] Error on load session "ann", error: The api_id/api_hash combination is invalid (caused by SendCodeRequest)

Не знаю что дальше делать. Где я что делаю не так.

@HeadShrimp
Copy link
Author

Или где взять bot token если вместо телефона вписывать

@IMPER1A-V
Copy link

Перепроверь в конфиге правильность данных + вводи номер телефона вместо токена бота

@IMPER1A-V
Copy link

Посмотри ,чтобы была версия питона 3.10 или 3.11. На 3.12 у меня не запустились. Попробуй после начисто ещё раз все

@HeadShrimp
Copy link
Author

Ага вроде дальше начало пускать, но теперь сам терминал зависает когда спрашивает облачный пароль

@HeadShrimp
Copy link
Author

Решил проблему, в самом Телетоне можно изменить 23 строку:
password: typing.Union[typing.Callable[[], str], str] = lambda: getpass.getpass('Please enter your password: '),
на
password: typing.Union[typing.Callable[[], str], str] = lambda: input('Please enter your password: '),
и все заработало

@aDarkDev
Copy link
Owner

aDarkDev commented Oct 4, 2024

Добрый вечер. Я новенький в Python. На https://my.telegram.org/ создал аппку, взял оттуда App api_id и App api_hash . Запускаю бота, вроде все окей. Но на моменте выбора добавить аккаунт или запустить, мне предлагает написать Session Name а потом номер телефона. Вписываю и выдает

[!] Enter 1 For Adding Account and 2 for start mine + claim: 2 Warning! Most airdrops utilize UTC detection to prevent cheating, which means they monitor your sleep patterns and the timing of your tasks. It's advisable to run your script when you're awake and to pause it before you go to sleep. Please enter your phone (or bot token): +38______________ [!] Error on load session "ann", error: The api_id/api_hash combination is invalid (caused by SendCodeRequest)

Не знаю что дальше делать. Где я что делаю не так.

just notice api_id is int and api_hash is string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants