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

How should I remove the Tdlib version information at the end of the login information? #493

Open
Nekohy opened this issue Aug 5, 2024 · 1 comment

Comments

@Nekohy
Copy link

Nekohy commented Aug 5, 2024

When I log in using the Tdlib library, it always adds the Tdlib + version number after my device information. I want it to be my own app name. It's so ugly. Where should I remove it?

@asarubbo
Copy link

tg = Telegram(
    ...
    device_model='whatever'
    ...
)

Usually I do:

import os
scriptname = os.path.basename(__file__)

tg = Telegram(
    ...
    device_model=scriptname
    ...
)

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