Pytdbot 0.9.0.dev7__tar.gz → 0.9.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/PKG-INFO +9 -9
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/Pytdbot.egg-info/PKG-INFO +9 -9
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/Pytdbot.egg-info/SOURCES.txt +2 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/README.md +6 -7
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/__init__.py +11 -2
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/client.py +111 -170
- pytdbot-0.9.2/pytdbot/client_manager.py +197 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/handlers/td_updates.py +157 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/methods/td_functions.py +724 -117
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/tdjson/tdjson.py +12 -4
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/types/__init__.py +89 -17
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/types/td_types/bound_methods/callback_query.py +1 -1
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/types/td_types/bound_methods/message.py +3 -3
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/types/td_types/types.py +2033 -132
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/utils/__init__.py +2 -0
- pytdbot-0.9.2/pytdbot/utils/asyncio_utils.py +10 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/LICENSE +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/MANIFEST.in +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/Pytdbot.egg-info/dependency_links.txt +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/Pytdbot.egg-info/requires.txt +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/Pytdbot.egg-info/top_level.txt +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/exception/__init__.py +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/filters.py +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/handlers/__init__.py +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/handlers/decorators.py +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/handlers/handler.py +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/methods/__init__.py +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/methods/methods.py +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/tdjson/__init__.py +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/types/plugins/__init__.py +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/types/td_types/__init__.py +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/types/td_types/bound_methods/__init__.py +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/types/td_types/bound_methods/chatActions.py +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/types/td_types/bound_methods/file.py +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/utils/escape.py +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/utils/json_utils.py +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/utils/obj_encoder.py +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/utils/strings.py +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/utils/text_format.py +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/pytdbot/utils/webapps.py +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/requirements.txt +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/setup.cfg +0 -0
- {pytdbot-0.9.0.dev7 → pytdbot-0.9.2}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: Pytdbot
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.2
|
|
4
4
|
Summary: Easy-to-use asynchronous TDLib wrapper for Python.
|
|
5
5
|
Home-page: https://github.com/pytdbot/client
|
|
6
6
|
Author: AYMEN Mohammed
|
|
@@ -23,13 +23,14 @@ Dynamic: description-content-type
|
|
|
23
23
|
Dynamic: home-page
|
|
24
24
|
Dynamic: keywords
|
|
25
25
|
Dynamic: license
|
|
26
|
+
Dynamic: license-file
|
|
26
27
|
Dynamic: project-url
|
|
27
28
|
Dynamic: provides-extra
|
|
28
29
|
Dynamic: requires-dist
|
|
29
30
|
Dynamic: requires-python
|
|
30
31
|
Dynamic: summary
|
|
31
32
|
|
|
32
|
-
# Pytdbot [](https://pypi.org/project/Pytdbot) [](https://pypi.org/project/Pytdbot) [](https://github.com/tdlib/td) [](https://pepy.tech/project/pytdbot) [](https://t.me/pytdbotchat)
|
|
33
34
|
|
|
34
35
|
Pytdbot (Python TDLib) is an asynchronous [**TDLib**](https://github.com/tdlib/td) wrapper for **Telegram** users/bots written in **Python**.
|
|
35
36
|
|
|
@@ -61,18 +62,18 @@ Pytdbot (Python TDLib) is an asynchronous [**TDLib**](https://github.com/tdlib/t
|
|
|
61
62
|
You can install Pytdbot with TDLib included using pip:
|
|
62
63
|
|
|
63
64
|
```bash
|
|
64
|
-
pip install pytdbot[tdjson]
|
|
65
|
+
pip install --upgrade pytdbot[tdjson]
|
|
65
66
|
```
|
|
66
67
|
|
|
67
|
-
|
|
68
|
+
If the installation fails, then install without **pre-built** TDLib:
|
|
68
69
|
|
|
69
70
|
```bash
|
|
70
71
|
pip install pytdbot
|
|
71
72
|
```
|
|
72
73
|
|
|
73
|
-
|
|
74
|
+
Then you need to build TDLib from [source](https://github.com/tdlib/td#building) and pass it to `Client.lib_path`.
|
|
74
75
|
|
|
75
|
-
You could also install the development version
|
|
76
|
+
You could also install the development version using the following command:
|
|
76
77
|
|
|
77
78
|
```bash
|
|
78
79
|
pip install --pre pytdbot
|
|
@@ -89,10 +90,9 @@ import asyncio
|
|
|
89
90
|
from pytdbot import Client, types
|
|
90
91
|
|
|
91
92
|
client = Client(
|
|
92
|
-
token="1088394097:AAQX2DnWiw4ihwiJUhIHOGog8gGOI", # Your bot token
|
|
93
|
+
token="1088394097:AAQX2DnWiw4ihwiJUhIHOGog8gGOI", # Your bot token
|
|
93
94
|
api_id=0,
|
|
94
95
|
api_hash="API_HASH",
|
|
95
|
-
lib_path="/path/to/libtdjson.so", # Path to TDjson shared library
|
|
96
96
|
files_directory="BotDB", # Path where to store TDLib files
|
|
97
97
|
database_encryption_key="1234echobot$",
|
|
98
98
|
td_verbosity=2, # TDLib verbosity level
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: Pytdbot
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.2
|
|
4
4
|
Summary: Easy-to-use asynchronous TDLib wrapper for Python.
|
|
5
5
|
Home-page: https://github.com/pytdbot/client
|
|
6
6
|
Author: AYMEN Mohammed
|
|
@@ -23,13 +23,14 @@ Dynamic: description-content-type
|
|
|
23
23
|
Dynamic: home-page
|
|
24
24
|
Dynamic: keywords
|
|
25
25
|
Dynamic: license
|
|
26
|
+
Dynamic: license-file
|
|
26
27
|
Dynamic: project-url
|
|
27
28
|
Dynamic: provides-extra
|
|
28
29
|
Dynamic: requires-dist
|
|
29
30
|
Dynamic: requires-python
|
|
30
31
|
Dynamic: summary
|
|
31
32
|
|
|
32
|
-
# Pytdbot [](https://pypi.org/project/Pytdbot) [](https://pypi.org/project/Pytdbot) [](https://github.com/tdlib/td) [](https://pepy.tech/project/pytdbot) [](https://t.me/pytdbotchat)
|
|
33
34
|
|
|
34
35
|
Pytdbot (Python TDLib) is an asynchronous [**TDLib**](https://github.com/tdlib/td) wrapper for **Telegram** users/bots written in **Python**.
|
|
35
36
|
|
|
@@ -61,18 +62,18 @@ Pytdbot (Python TDLib) is an asynchronous [**TDLib**](https://github.com/tdlib/t
|
|
|
61
62
|
You can install Pytdbot with TDLib included using pip:
|
|
62
63
|
|
|
63
64
|
```bash
|
|
64
|
-
pip install pytdbot[tdjson]
|
|
65
|
+
pip install --upgrade pytdbot[tdjson]
|
|
65
66
|
```
|
|
66
67
|
|
|
67
|
-
|
|
68
|
+
If the installation fails, then install without **pre-built** TDLib:
|
|
68
69
|
|
|
69
70
|
```bash
|
|
70
71
|
pip install pytdbot
|
|
71
72
|
```
|
|
72
73
|
|
|
73
|
-
|
|
74
|
+
Then you need to build TDLib from [source](https://github.com/tdlib/td#building) and pass it to `Client.lib_path`.
|
|
74
75
|
|
|
75
|
-
You could also install the development version
|
|
76
|
+
You could also install the development version using the following command:
|
|
76
77
|
|
|
77
78
|
```bash
|
|
78
79
|
pip install --pre pytdbot
|
|
@@ -89,10 +90,9 @@ import asyncio
|
|
|
89
90
|
from pytdbot import Client, types
|
|
90
91
|
|
|
91
92
|
client = Client(
|
|
92
|
-
token="1088394097:AAQX2DnWiw4ihwiJUhIHOGog8gGOI", # Your bot token
|
|
93
|
+
token="1088394097:AAQX2DnWiw4ihwiJUhIHOGog8gGOI", # Your bot token
|
|
93
94
|
api_id=0,
|
|
94
95
|
api_hash="API_HASH",
|
|
95
|
-
lib_path="/path/to/libtdjson.so", # Path to TDjson shared library
|
|
96
96
|
files_directory="BotDB", # Path where to store TDLib files
|
|
97
97
|
database_encryption_key="1234echobot$",
|
|
98
98
|
td_verbosity=2, # TDLib verbosity level
|
|
@@ -10,6 +10,7 @@ Pytdbot.egg-info/requires.txt
|
|
|
10
10
|
Pytdbot.egg-info/top_level.txt
|
|
11
11
|
pytdbot/__init__.py
|
|
12
12
|
pytdbot/client.py
|
|
13
|
+
pytdbot/client_manager.py
|
|
13
14
|
pytdbot/filters.py
|
|
14
15
|
pytdbot/exception/__init__.py
|
|
15
16
|
pytdbot/handlers/__init__.py
|
|
@@ -31,6 +32,7 @@ pytdbot/types/td_types/bound_methods/chatActions.py
|
|
|
31
32
|
pytdbot/types/td_types/bound_methods/file.py
|
|
32
33
|
pytdbot/types/td_types/bound_methods/message.py
|
|
33
34
|
pytdbot/utils/__init__.py
|
|
35
|
+
pytdbot/utils/asyncio_utils.py
|
|
34
36
|
pytdbot/utils/escape.py
|
|
35
37
|
pytdbot/utils/json_utils.py
|
|
36
38
|
pytdbot/utils/obj_encoder.py
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Pytdbot [](https://pypi.org/project/Pytdbot) [](https://pypi.org/project/Pytdbot) [](https://github.com/tdlib/td) [](https://pepy.tech/project/pytdbot) [](https://t.me/pytdbotchat)
|
|
2
2
|
|
|
3
3
|
Pytdbot (Python TDLib) is an asynchronous [**TDLib**](https://github.com/tdlib/td) wrapper for **Telegram** users/bots written in **Python**.
|
|
4
4
|
|
|
@@ -30,18 +30,18 @@ Pytdbot (Python TDLib) is an asynchronous [**TDLib**](https://github.com/tdlib/t
|
|
|
30
30
|
You can install Pytdbot with TDLib included using pip:
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
pip install pytdbot[tdjson]
|
|
33
|
+
pip install --upgrade pytdbot[tdjson]
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
If the installation fails, then install without **pre-built** TDLib:
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
39
|
pip install pytdbot
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
Then you need to build TDLib from [source](https://github.com/tdlib/td#building) and pass it to `Client.lib_path`.
|
|
43
43
|
|
|
44
|
-
You could also install the development version
|
|
44
|
+
You could also install the development version using the following command:
|
|
45
45
|
|
|
46
46
|
```bash
|
|
47
47
|
pip install --pre pytdbot
|
|
@@ -58,10 +58,9 @@ import asyncio
|
|
|
58
58
|
from pytdbot import Client, types
|
|
59
59
|
|
|
60
60
|
client = Client(
|
|
61
|
-
token="1088394097:AAQX2DnWiw4ihwiJUhIHOGog8gGOI", # Your bot token
|
|
61
|
+
token="1088394097:AAQX2DnWiw4ihwiJUhIHOGog8gGOI", # Your bot token
|
|
62
62
|
api_id=0,
|
|
63
63
|
api_hash="API_HASH",
|
|
64
|
-
lib_path="/path/to/libtdjson.so", # Path to TDjson shared library
|
|
65
64
|
files_directory="BotDB", # Path where to store TDLib files
|
|
66
65
|
database_encryption_key="1234echobot$",
|
|
67
66
|
td_verbosity=2, # TDLib verbosity level
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
from . import types, utils, filters, exception
|
|
2
2
|
from .tdjson import TdJson
|
|
3
|
+
from .client_manager import ClientManager
|
|
3
4
|
from .client import Client
|
|
4
5
|
|
|
5
|
-
__all__ = [
|
|
6
|
+
__all__ = [
|
|
7
|
+
"types",
|
|
8
|
+
"utils",
|
|
9
|
+
"filters",
|
|
10
|
+
"exception",
|
|
11
|
+
"TdJson",
|
|
12
|
+
"ClientManager",
|
|
13
|
+
"Client",
|
|
14
|
+
]
|
|
6
15
|
|
|
7
|
-
__version__ = "0.9.
|
|
16
|
+
__version__ = "0.9.2"
|
|
8
17
|
__copyright__ = "Copyright (c) 2022-2025 Pytdbot, AYMENJD"
|
|
9
18
|
__license__ = "MIT License"
|
|
10
19
|
|