alexander-akhmetov / python-telegram

Python client for the Telegram's tdlib
MIT License
610 stars 123 forks source link

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

Open Nekohy opened 2 months ago

Nekohy commented 2 months ago

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 commented 3 weeks ago
tg = Telegram(
    ...
    device_model='whatever'
    ...
)

Usually I do:

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

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