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

[Bug] Telegram Code Not Being Sent #4041

Closed
RafayGhafoor opened this issue Feb 20, 2023 · 1 comment
Closed

[Bug] Telegram Code Not Being Sent #4041

RafayGhafoor opened this issue Feb 20, 2023 · 1 comment

Comments

@RafayGhafoor
Copy link

RafayGhafoor commented Feb 20, 2023

Steps to reproduce:

from telethon import TelegramClient, events

api_id = None
api_hash = ""
client = TelegramClient('SESSION', api_id, api_hash)


if __name__ == '__main__':
    print("Program is running...")

    @client.on(events.NewMessage())
    async def new_order(event):
        try:
            print('Delivery new order...')
            contain_key_word = False

            print(event)
        except Exception as ex:
            print(f'Exception: {ex}')


    client.start()
    client.run_until_disconnected()

@Lonami Upon entering the phone number, there is input stating "Please enter the received code: " but no code is being sent while this procedure works fine when trying to login from telegram desktop itself or telegram app.

@Lonami
Copy link
Member

Lonami commented Feb 20, 2023

Closing as a duplicate of #3835.

@Lonami Lonami closed this as completed Feb 20, 2023
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

2 participants