alexander-akhmetov/python-telegram

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

Nekohy opened this issue · 1 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?

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

Usually I do:

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

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