Pytdbot 0.10.2.dev0__tar.gz → 0.10.2.dev1__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.
Files changed (57) hide show
  1. pytdbot-0.10.2.dev1/MANIFEST.in +4 -0
  2. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/PKG-INFO +13 -1
  3. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/Pytdbot.egg-info/PKG-INFO +13 -1
  4. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/Pytdbot.egg-info/SOURCES.txt +8 -0
  5. pytdbot-0.10.2.dev1/Pytdbot.egg-info/entry_points.txt +2 -0
  6. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/README.md +12 -0
  7. pytdbot-0.10.2.dev1/llms.txt +7 -0
  8. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pyproject.toml +8 -1
  9. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/__init__.py +1 -1
  10. pytdbot-0.10.2.dev1/pytdbot/ai/SKILL.md +215 -0
  11. pytdbot-0.10.2.dev1/pytdbot/ai/__init__.py +5 -0
  12. pytdbot-0.10.2.dev1/pytdbot/ai/helpers.json +5271 -0
  13. pytdbot-0.10.2.dev1/pytdbot/ai/lookup.py +326 -0
  14. pytdbot-0.10.2.dev1/pytdbot/docs.py +203 -0
  15. pytdbot-0.10.2.dev1/pytdbot/td_api.json +55825 -0
  16. pytdbot-0.10.2.dev0/MANIFEST.in +0 -3
  17. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/LICENSE +0 -0
  18. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/Pytdbot.egg-info/dependency_links.txt +0 -0
  19. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/Pytdbot.egg-info/requires.txt +0 -0
  20. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/Pytdbot.egg-info/top_level.txt +0 -0
  21. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/client.py +0 -0
  22. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/client_manager.py +0 -0
  23. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/exception/__init__.py +0 -0
  24. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/filters.py +0 -0
  25. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/handlers/__init__.py +0 -0
  26. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/handlers/decorators.py +0 -0
  27. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/handlers/handler.py +0 -0
  28. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/handlers/td_updates.py +0 -0
  29. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/methods/__init__.py +0 -0
  30. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/methods/methods.py +0 -0
  31. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/methods/td_functions.py +0 -0
  32. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/tdjson/__init__.py +0 -0
  33. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/tdjson/tdjson.py +0 -0
  34. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/types/__init__.py +0 -0
  35. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/types/bound_methods/__init__.py +0 -0
  36. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/types/bound_methods/callback_query.py +0 -0
  37. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/types/bound_methods/chatActions.py +0 -0
  38. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/types/bound_methods/file.py +0 -0
  39. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/types/bound_methods/message.py +0 -0
  40. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/types/bound_methods/sender_id.py +0 -0
  41. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/types/plugins/__init__.py +0 -0
  42. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/types/td_types.py +0 -0
  43. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/types/tdserver/__init__.py +0 -0
  44. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/types/tdserver/schedule.py +0 -0
  45. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/types/tdserver/stats.py +0 -0
  46. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/utils/__init__.py +0 -0
  47. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/utils/albums.py +0 -0
  48. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/utils/common.py +0 -0
  49. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/utils/escape.py +0 -0
  50. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/utils/json_utils.py +0 -0
  51. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/utils/obj_encoder.py +0 -0
  52. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/utils/rich_converter.py +0 -0
  53. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/utils/rich_messages.py +0 -0
  54. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/utils/strings.py +0 -0
  55. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/utils/text_format.py +0 -0
  56. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/pytdbot/utils/webapps.py +0 -0
  57. {pytdbot-0.10.2.dev0 → pytdbot-0.10.2.dev1}/setup.cfg +0 -0
@@ -0,0 +1,4 @@
1
+ include README.md LICENSE requirements.txt llms.txt pytdbot/td_api.*
2
+ recursive-include pytdbot *.py
3
+ include pytdbot/ai/SKILL.md pytdbot/ai/helpers.json
4
+ exclude examples/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Pytdbot
3
- Version: 0.10.2.dev0
3
+ Version: 0.10.2.dev1
4
4
  Summary: Easy-to-use asynchronous TDLib wrapper for Python.
5
5
  Author-email: AYMEN A <let.me.code.safe@gmail.com>
6
6
  License-Expression: MIT
@@ -135,6 +135,18 @@ asyncio.run(client.run())
135
135
 
136
136
  For more examples, check the [examples](https://github.com/pytdbot/client/tree/main/examples) folder.
137
137
 
138
+ ### Using AI agents
139
+
140
+ Pytdbot includes a skill and a local docs CLI so coding agents can use the library correctly (bound methods, helpers, TDLib types, and so on)
141
+
142
+ 1. Install [Pytdbot](#installation)
143
+ 2. Point your agent at the skill file:
144
+ - In this repo: [`pytdbot/ai/SKILL.md`](pytdbot/ai/SKILL.md)
145
+ - or using `curl -O "https://raw.githubusercontent.com/pytdbot/client/refs/heads/main/pytdbot/ai/SKILL.md"`
146
+ 3. Register it the way your tool expects (project skill, agent rule, or “read this file first”)
147
+
148
+ The skill explains how Pytdbot is meant to be used; the CLI returns live signatures from your installed version.
149
+
138
150
  # Thanks to
139
151
 
140
152
  - You for viewing or using this project.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Pytdbot
3
- Version: 0.10.2.dev0
3
+ Version: 0.10.2.dev1
4
4
  Summary: Easy-to-use asynchronous TDLib wrapper for Python.
5
5
  Author-email: AYMEN A <let.me.code.safe@gmail.com>
6
6
  License-Expression: MIT
@@ -135,6 +135,18 @@ asyncio.run(client.run())
135
135
 
136
136
  For more examples, check the [examples](https://github.com/pytdbot/client/tree/main/examples) folder.
137
137
 
138
+ ### Using AI agents
139
+
140
+ Pytdbot includes a skill and a local docs CLI so coding agents can use the library correctly (bound methods, helpers, TDLib types, and so on)
141
+
142
+ 1. Install [Pytdbot](#installation)
143
+ 2. Point your agent at the skill file:
144
+ - In this repo: [`pytdbot/ai/SKILL.md`](pytdbot/ai/SKILL.md)
145
+ - or using `curl -O "https://raw.githubusercontent.com/pytdbot/client/refs/heads/main/pytdbot/ai/SKILL.md"`
146
+ 3. Register it the way your tool expects (project skill, agent rule, or “read this file first”)
147
+
148
+ The skill explains how Pytdbot is meant to be used; the CLI returns live signatures from your installed version.
149
+
138
150
  # Thanks to
139
151
 
140
152
  - You for viewing or using this project.
@@ -1,16 +1,24 @@
1
1
  LICENSE
2
2
  MANIFEST.in
3
3
  README.md
4
+ llms.txt
4
5
  pyproject.toml
5
6
  Pytdbot.egg-info/PKG-INFO
6
7
  Pytdbot.egg-info/SOURCES.txt
7
8
  Pytdbot.egg-info/dependency_links.txt
9
+ Pytdbot.egg-info/entry_points.txt
8
10
  Pytdbot.egg-info/requires.txt
9
11
  Pytdbot.egg-info/top_level.txt
10
12
  pytdbot/__init__.py
11
13
  pytdbot/client.py
12
14
  pytdbot/client_manager.py
15
+ pytdbot/docs.py
13
16
  pytdbot/filters.py
17
+ pytdbot/td_api.json
18
+ pytdbot/ai/SKILL.md
19
+ pytdbot/ai/__init__.py
20
+ pytdbot/ai/helpers.json
21
+ pytdbot/ai/lookup.py
14
22
  pytdbot/exception/__init__.py
15
23
  pytdbot/handlers/__init__.py
16
24
  pytdbot/handlers/decorators.py
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ pytdbot-docs = pytdbot.docs:main
@@ -104,6 +104,18 @@ asyncio.run(client.run())
104
104
 
105
105
  For more examples, check the [examples](https://github.com/pytdbot/client/tree/main/examples) folder.
106
106
 
107
+ ### Using AI agents
108
+
109
+ Pytdbot includes a skill and a local docs CLI so coding agents can use the library correctly (bound methods, helpers, TDLib types, and so on)
110
+
111
+ 1. Install [Pytdbot](#installation)
112
+ 2. Point your agent at the skill file:
113
+ - In this repo: [`pytdbot/ai/SKILL.md`](pytdbot/ai/SKILL.md)
114
+ - or using `curl -O "https://raw.githubusercontent.com/pytdbot/client/refs/heads/main/pytdbot/ai/SKILL.md"`
115
+ 3. Register it the way your tool expects (project skill, agent rule, or “read this file first”)
116
+
117
+ The skill explains how Pytdbot is meant to be used; the CLI returns live signatures from your installed version.
118
+
107
119
  # Thanks to
108
120
 
109
121
  - You for viewing or using this project.
@@ -0,0 +1,7 @@
1
+ # Pytdbot
2
+
3
+ Pytdbot is an asynchronous [**TDLib**](https://github.com/tdlib/td) wrapper for **Telegram** users/bots written in **Python**.
4
+
5
+ - [README](README.md)
6
+ - Guide: `pytdbot/ai/SKILL.md`
7
+ - [Examples](examples/)
@@ -45,11 +45,18 @@ Tracker = "https://github.com/pytdbot/client/issues"
45
45
  tdjson = ["tdjson"]
46
46
  nats = ["nats-py"]
47
47
 
48
+ [project.scripts]
49
+ pytdbot-docs = "pytdbot.docs:main"
50
+
48
51
  [tool.setuptools.packages.find]
49
52
  exclude = ["examples"]
50
53
 
51
54
  [tool.setuptools.package-data]
52
- pytdbot = ["td_api.*"]
55
+ pytdbot = [
56
+ "td_api.*",
57
+ "ai/SKILL.md",
58
+ "ai/helpers.json",
59
+ ]
53
60
 
54
61
  [tool.setuptools.dynamic]
55
62
  version = { attr = "pytdbot.__version__" }
@@ -13,7 +13,7 @@ __all__ = [
13
13
  "Client",
14
14
  ]
15
15
 
16
- __version__ = "0.10.2.dev0"
16
+ __version__ = "0.10.2.dev1"
17
17
  __copyright__ = "Copyright (c) 2022-2026 Pytdbot, AYMENJD"
18
18
  __license__ = "MIT License"
19
19
 
@@ -0,0 +1,215 @@
1
+ ---
2
+ name: pytdbot
3
+ description: >
4
+ Write Telegram bots and userbots with Pytdbot (async TDLib Python client).
5
+ Use when the user works with Pytdbot, TDLib, or pytdbot.Client.
6
+ ---
7
+
8
+ # Pytdbot
9
+
10
+ Async [TDLib](https://github.com/tdlib/td) wrapper for Telegram users/bots in Python. It is not the HTTP Bot API — use Pytdbot/TDLib names and types only.
11
+
12
+ ## `python -m pytdbot.docs` (use this for the API)
13
+
14
+ Before calling an unfamiliar method or building a type, run the docs CLI. It searches the installed library and prints parameters, types, and descriptions.
15
+
16
+ | Command | When to use | Example |
17
+ | ------------------- | -------------------------------------------- | ------------------------------------------------ |
18
+ | `search <query>` | Find symbols by keyword | `python -m pytdbot.docs search "send photo"` |
19
+ | `function <name>` | Full TDLib method signature | `python -m pytdbot.docs function sendMessage` |
20
+ | `type <name>` | Fields of a TDLib type | `python -m pytdbot.docs type message` |
21
+ | `class <name>` | Abstract class → concrete types | `python -m pytdbot.docs class InputFile` |
22
+ | `update <name>` | Update payload shape | `python -m pytdbot.docs update updateNewMessage` |
23
+ | `helper [name]` | Pytdbot bound methods, Client helpers, utils | `python -m pytdbot.docs helper reply_text` |
24
+ | `helper -q <query>` | Search helpers only | `python -m pytdbot.docs helper -q escape` |
25
+ | `stats` | Counts / TDLib version | `python -m pytdbot.docs stats` |
26
+
27
+ Workflow: `search` → pick a name → `function` / `type` / `class` / `helper` for full detail.
28
+ Flags: `--json` for machine-readable output; `search --kind function` (or `type`, `class`, `update`, `helper`) to narrow results.
29
+ Also available as `pytdbot-docs` after install. Same commands either way.
30
+
31
+ ## Preference order
32
+
33
+ 1. Bound methods — `message.reply_text`, `message.reply_photo`, `message.text`, …
34
+ 2. Client helpers — `sendTextMessage`, `sendPhoto`, `sendAlbum`, `parseText`, …
35
+ 3. `pytdbot.utils` — formatting, callback data, escapes, …
36
+ 4. TDLib methods on `Client` — `sendMessage`, `getChat`, … (camelCase)
37
+
38
+ ## Basic bot
39
+
40
+ ```python
41
+ import asyncio
42
+ from pytdbot import Client, types
43
+
44
+ client = Client(
45
+ token="BOT_TOKEN",
46
+ api_id=0,
47
+ api_hash="API_HASH",
48
+ files_directory="BotDB",
49
+ database_encryption_key="change-me",
50
+ )
51
+
52
+ @client.on_message()
53
+ async def on_msg(c: Client, message: types.Message):
54
+ if message.text:
55
+ await message.reply_text(message.text)
56
+
57
+ asyncio.run(client.run())
58
+ ```
59
+
60
+ Userbot: `user_bot=True` (no token) and handle authorization — see `examples/userbot.py`.
61
+
62
+ ## Handlers
63
+
64
+ - `async def handler(client, update_or_message)`
65
+ - `@client.on_message()` → `types.Message`
66
+ - `@client.on_updateNewMessage()` / other `on_update…` → full update
67
+ - Filters: `from pytdbot import filters` → `filters.create(...)` then `@client.on_message(filters=my_filter)`
68
+
69
+ ## Common patterns
70
+
71
+ ```python
72
+ @client.on_message()
73
+ async def echo(c: Client, message: types.Message):
74
+ if isinstance(message.content, types.MessageText):
75
+ await message.reply_text(message.text, entities=message.entities)
76
+ elif isinstance(message.content, types.MessagePhoto):
77
+ await message.reply_photo(message.remote_file_id, caption=message.caption)
78
+ ```
79
+
80
+ Parse mode on helpers: `"html"`, `"markdown"`, `"markdownv2"` (or `default_parse_mode=` on `Client`).
81
+
82
+ ```python
83
+ await message.reply_text("<b>hi</b>", parse_mode="html")
84
+ ```
85
+
86
+ Inline keyboard + callback (with `utils.callback_data`):
87
+
88
+ ```python
89
+ from pytdbot import utils
90
+
91
+ await message.reply_text(
92
+ "Pick",
93
+ reply_markup=types.ReplyMarkupInlineKeyboard(
94
+ rows=[[
95
+ types.InlineKeyboardButton(
96
+ text="OK",
97
+ type=types.InlineKeyboardButtonTypeCallback(
98
+ data=utils.callback_data("ok", {"id": 1})
99
+ ),
100
+ ),
101
+ ]]
102
+ ),
103
+ )
104
+
105
+ @client.on_updateNewCallbackQuery()
106
+ async def on_cb(c: Client, update: types.UpdateNewCallbackQuery):
107
+ cb = utils.load_callback_data(update.payload.data)
108
+ # cb.action, cb.data
109
+ await update.answer(text="done")
110
+ ```
111
+
112
+ ```python
113
+ async with message.action("typing"):
114
+ await asyncio.sleep(1)
115
+ await message.reply_text("Done")
116
+ ```
117
+
118
+ ```python
119
+ await client.sendPhoto(chat_id, photo="path_or_remote_id", caption="Hi", parse_mode="html")
120
+ ```
121
+
122
+ Raw TDLib: look up with `function` / `type` first, then call; build objects with `types.*`.
123
+
124
+ ```python
125
+ chat = await client.getChat(chat_id=chat_id)
126
+ if not chat: # Error is falsy; success types are truthy
127
+ return
128
+ # use chat...
129
+ ```
130
+
131
+ ## `pytdbot.utils`
132
+
133
+ Import: `from pytdbot import utils` (or `from pytdbot.utils import bold, escape_html, …`).
134
+ Signatures: `python -m pytdbot.docs helper bold` / `helper -q webapp`.
135
+
136
+ - **Text format** (HTML by default; MarkdownV2 with `html=False`): `bold`, `italic`, `underline`, `strikethrough`, `spoiler`, `code`, `pre`, `pre_code`, `hyperlink`, `mention`, `custom_emoji`, `quote`, `rtl`, `ltr`
137
+ - **Escape**: `escape_html`, `escape_markdown`
138
+ - **Callback buttons**: `callback_data(action, data=None)` → `bytes` (max 64); `load_callback_data(data)` → `.action` / `.data`
139
+ - **Mini Apps (Web App)**: `create_webapp_secret_key(bot_token)` → secret; `parse_webapp_data(secret_key, init_data, max_data_age=60)` → validated `dict` (raises `WebAppDataInvalid` / `WebAppDataOutdated` / `WebAppDataMismatch` from `pytdbot.exception`)
140
+ - **Flood / retry**: `get_retry_after_time(error_message)`
141
+ - **Other**: `get_bot_id_from_token`, `get_message_sender_id`
142
+ - **Rich messages**: builders (`paragraph`, `heading`, `image`, …) and `rich_message_to_html` for rich / `sendRichMessage` flows
143
+
144
+ ```python
145
+ from pytdbot import utils
146
+
147
+ text = f"Hello {utils.bold(name)} — {utils.hyperlink('site', url)}"
148
+ await message.reply_text(text, parse_mode="html")
149
+
150
+ # Mini App initData validation
151
+ secret = utils.create_webapp_secret_key(bot_token)
152
+ data = utils.parse_webapp_data(secret, init_data)
153
+ ```
154
+
155
+ ## Plugins
156
+
157
+ Split handlers into modules under a folder; pass `types.Plugins` into `Client`.
158
+
159
+ ```python
160
+ from pytdbot import Client, types
161
+
162
+ client = Client(
163
+ token="BOT_TOKEN",
164
+ api_id=0,
165
+ api_hash="API_HASH",
166
+ files_directory="BotDB",
167
+ database_encryption_key="change-me",
168
+ plugins=types.Plugins(
169
+ folder="plugins/",
170
+ # optional: only these modules (dotted path = folder + file)
171
+ # include=["plugins.rules", "plugins.admin.ban"],
172
+ # optional: skip modules
173
+ # exclude=["plugins.experimental"],
174
+ ),
175
+ )
176
+ ```
177
+
178
+ **`Plugins`**
179
+
180
+ | Arg | Meaning |
181
+ | --------- | ------------------------------------------------------------------------------------------ |
182
+ | `folder` | Directory to scan for `*.py` (recursive) |
183
+ | `include` | If set, only load modules whose path matches (e.g. `plugins.rules` for `plugins/rules.py`) |
184
+ | `exclude` | If set (and no `include`), skip these module paths |
185
+
186
+ **Plugin module** (`plugins/ping.py`) — decorate with `Client.…` (no client instance); those handlers are picked up when the client starts with `plugins=…`:
187
+
188
+ ```python
189
+ from pytdbot import Client, types, filters
190
+
191
+ private = filters.create(lambda _, m: m.chat_id > 0)
192
+
193
+ @Client.on_message(filters=private)
194
+ async def ping(c: Client, message: types.Message):
195
+ if message.text == "/ping":
196
+ await message.reply_text("pong")
197
+
198
+ @Client.on_updateNewCallbackQuery()
199
+ async def on_cb(c: Client, update: types.UpdateNewCallbackQuery):
200
+ await update.answer(text="ok")
201
+ ```
202
+
203
+ Same decorator API as on a live client: `on_message`, `on_updateNewMessage`, `on_updateNewCallbackQuery`, `initializer`, `finalizer`, other `on_update…`, plus `filters=`, `position=`, `timeout=`. Handlers must be `async`.
204
+
205
+ **Runtime**
206
+
207
+ - Loaded when `Client` is constructed with `plugins=…` (folder must be importable; usually run from project root so `plugins.*` imports work).
208
+ - `client.reload_plugins()` — reloads plugin modules (**dev only**, not for production). Handlers registered on the client instance itself are left alone.
209
+ - `client.remove_handler(func)` — remove a specific handler function.
210
+
211
+ ## Details
212
+
213
+ - Types: `from pytdbot import Client, types` → `types.SomeType(...)`.
214
+ - Bots: `token=`; userbots: `user_bot=True` + authorization updates.
215
+ - `files_directory` + `database_encryption_key` required; one live client per directory.
@@ -0,0 +1,5 @@
1
+ """Docs lookup helpers used by ``python -m pytdbot.docs``."""
2
+
3
+ from .lookup import ApiLookup, get_lookup
4
+
5
+ __all__ = ["ApiLookup", "get_lookup"]