pyrofork/docs/source/topics/client-settings.rst
wulan17 9c94dac120
Revert "PyroFork: Rebrand docs"
This reverts commit bec44280a4.

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-03-20 09:31:54 +07:00

46 lines
No EOL
1.1 KiB
ReStructuredText

Client Settings
===============
You can control the way your client appears in the Active Sessions menu of an official client by changing some client
settings. By default you will see something like the following:
- Device Model: ``CPython x.y.z``
- Application: ``Pyrogram x.y.z``
- System Version: ``Linux x.y.z``
.. contents:: Contents
:backlinks: none
:depth: 1
:local:
-----
Set Custom Values
-----------------
To set custom values, you can pass the arguments directly in the Client's constructor.
.. code-block:: python
app = Client(
"my_account",
app_version="1.2.3",
device_model="PC",
system_version="Linux"
)
Set Custom Languages
--------------------
To tell Telegram in which language should speak to you (terms of service, bots, service messages, ...) you can
set ``lang_code`` in `ISO 639-1 <https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes>`_ standard (defaults to "en",
English).
With the following code we make Telegram know we want it to speak in Italian (it):
.. code-block:: python
app = Client(
"my_account",
lang_code="it",
)