python-telegram icon indicating copy to clipboard operation
python-telegram copied to clipboard

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

Open nekohy opened this issue 1 year ago • 2 comments

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?

nekohy avatar Aug 05 '24 20:08 nekohy

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

Usually I do:

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

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

asarubbo avatar Sep 13 '24 08:09 asarubbo

String 'Tdlib + version' is added automatically by the TDLib library, you can remove it by editing TDlib source code and compile it, there is no other way to remove it

https://github.com/tdlib/td/blob/521aed8/td/telegram/Td.cpp#L1444-L1449

mervick avatar Feb 26 '25 08:02 mervick

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 25 '25 12:08 stale[bot]