tgcore 1.0.10__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.
- tgcore-1.0.10/LICENSE +201 -0
- tgcore-1.0.10/NOTICE +1 -0
- tgcore-1.0.10/PKG-INFO +174 -0
- tgcore-1.0.10/README.md +135 -0
- tgcore-1.0.10/setup.cfg +4 -0
- tgcore-1.0.10/setup.py +51 -0
- tgcore-1.0.10/tgcore/__init__.py +17 -0
- tgcore-1.0.10/tgcore/__version__.py +12 -0
- tgcore-1.0.10/tgcore/client.py +22 -0
- tgcore-1.0.10/tgcore/core.py +75 -0
- tgcore-1.0.10/tgcore/telegram_namespace.py +442 -0
- tgcore-1.0.10/tgcore.egg-info/PKG-INFO +174 -0
- tgcore-1.0.10/tgcore.egg-info/SOURCES.txt +14 -0
- tgcore-1.0.10/tgcore.egg-info/dependency_links.txt +1 -0
- tgcore-1.0.10/tgcore.egg-info/requires.txt +1 -0
- tgcore-1.0.10/tgcore.egg-info/top_level.txt +1 -0
tgcore-1.0.10/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, February 2026
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Randy W
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
tgcore-1.0.10/NOTICE
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
This project includes software developed by Randy W
|
tgcore-1.0.10/PKG-INFO
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tgcore
|
|
3
|
+
Version: 1.0.10
|
|
4
|
+
Summary: TGCoreSDK | Enterprise Telegram Bot API Framework.
|
|
5
|
+
Author: TeamKillerX
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Source, https://github.com/TeamKillerX/tgcore
|
|
8
|
+
Project-URL: Issues, https://github.com/TeamKillerX/tgcore/issues
|
|
9
|
+
Project-URL: Documentation, https://services-pro.ryzenths.dpdns.org/api/v2/docs
|
|
10
|
+
Keywords: telegram,telegram-bot,telegram-api,sdk,framework,tgcore,ryzenth
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Operating System :: OS Independent
|
|
20
|
+
Classifier: Intended Audience :: Developers
|
|
21
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
22
|
+
Classifier: Natural Language :: English
|
|
23
|
+
Requires-Python: >=3.8
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
License-File: NOTICE
|
|
27
|
+
Requires-Dist: httpx>=0.24.0
|
|
28
|
+
Dynamic: author
|
|
29
|
+
Dynamic: classifier
|
|
30
|
+
Dynamic: description
|
|
31
|
+
Dynamic: description-content-type
|
|
32
|
+
Dynamic: keywords
|
|
33
|
+
Dynamic: license
|
|
34
|
+
Dynamic: license-file
|
|
35
|
+
Dynamic: project-url
|
|
36
|
+
Dynamic: requires-dist
|
|
37
|
+
Dynamic: requires-python
|
|
38
|
+
Dynamic: summary
|
|
39
|
+
|
|
40
|
+
<h1 align="center">TGCore SDK</h1>
|
|
41
|
+
<p align="center">
|
|
42
|
+
Enterprise Telegram Bot Framework โข Secure โข Scalable โข Zero-Trust Ready
|
|
43
|
+
</p>
|
|
44
|
+
|
|
45
|
+
<p align="center">
|
|
46
|
+
<img src="https://img.shields.io/badge/Framework-TGCore-black?style=for-the-badge">
|
|
47
|
+
<img src="https://img.shields.io/badge/API-Services%20Pro-purple?style=for-the-badge">
|
|
48
|
+
<img src="https://img.shields.io/badge/Security-AES--256%20GCM-green?style=for-the-badge">
|
|
49
|
+
</p>
|
|
50
|
+
|
|
51
|
+

|
|
52
|
+

|
|
53
|
+

|
|
54
|
+

|
|
55
|
+

|
|
56
|
+

|
|
57
|
+

|
|
58
|
+

|
|
59
|
+

|
|
60
|
+

|
|
61
|
+

|
|
62
|
+
|
|
63
|
+
The most secure Telegram Bot SDK ever built.
|
|
64
|
+
|
|
65
|
+
## โจ Features
|
|
66
|
+
|
|
67
|
+
- โก Async native ("async/await")
|
|
68
|
+
- ๐ Secure API key authentication
|
|
69
|
+
- ๐ค Multi-bot token support
|
|
70
|
+
- ๐ Token rotation ready
|
|
71
|
+
- ๐งฉ Builder pattern + simple calls
|
|
72
|
+
- ๐ฆ Auto-generated methods from OpenAPI schema
|
|
73
|
+
- ๐ Auto docstring generation
|
|
74
|
+
- ๐ Enterprise-ready architecture
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## ๐ฆ Installation
|
|
79
|
+
|
|
80
|
+
`pip install tgcore`
|
|
81
|
+
|
|
82
|
+
Or install locally:
|
|
83
|
+
|
|
84
|
+
`pip install -e .`
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## ๐ Authentication
|
|
89
|
+
|
|
90
|
+
Create client instance:
|
|
91
|
+
```py
|
|
92
|
+
from tgcore import Client
|
|
93
|
+
|
|
94
|
+
client = Client("fw_live_xxx")
|
|
95
|
+
|
|
96
|
+
await client.telegram.send_message(
|
|
97
|
+
chat_id="@channel",
|
|
98
|
+
text="hello"
|
|
99
|
+
)
|
|
100
|
+
```
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## ๐พ Usage
|
|
104
|
+
|
|
105
|
+
Simple Call
|
|
106
|
+
```py
|
|
107
|
+
await client.telegram.send_message(
|
|
108
|
+
chat_id="@channel",
|
|
109
|
+
text="Hello world"
|
|
110
|
+
)
|
|
111
|
+
```
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
Builder Pattern
|
|
115
|
+
```py
|
|
116
|
+
await (
|
|
117
|
+
client.telegram
|
|
118
|
+
.send_photo_call(chat_id="@channel", photo="https://img.jpg")
|
|
119
|
+
.execute()
|
|
120
|
+
)
|
|
121
|
+
```
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## ๐ Token Rotation Support
|
|
125
|
+
|
|
126
|
+
The server supports storing encrypted tokens using AES-256-GCM.
|
|
127
|
+
The SDK automatically uses the active token version.
|
|
128
|
+
|
|
129
|
+
## ๐ Security Model
|
|
130
|
+
|
|
131
|
+
TgCoreSDK never exposes bot tokens to clients.
|
|
132
|
+
|
|
133
|
+
Flow:
|
|
134
|
+
|
|
135
|
+
Client โ API Gateway โ Decrypt โ Telegram API
|
|
136
|
+
|
|
137
|
+
Benefits:
|
|
138
|
+
|
|
139
|
+
- prevents token leaks
|
|
140
|
+
- safe frontend usage
|
|
141
|
+
- safe monitoring dashboards
|
|
142
|
+
- supports IP restrictions
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## ๐งพ License
|
|
147
|
+
|
|
148
|
+
Licensed under Apache License 2.0
|
|
149
|
+
|
|
150
|
+
You may:
|
|
151
|
+
|
|
152
|
+
- use commercially
|
|
153
|
+
- modify
|
|
154
|
+
- distribute
|
|
155
|
+
- sublicense
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## ๐ค Contributing
|
|
160
|
+
|
|
161
|
+
Pull requests welcome.
|
|
162
|
+
For major changes, open an issue first to discuss what you would like to change.
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## ๐ฅ Status
|
|
167
|
+
|
|
168
|
+
Production Ready
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## ๐ Author
|
|
173
|
+
|
|
174
|
+
Built with โค๏ธ by Randy W
|
tgcore-1.0.10/README.md
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
<h1 align="center">TGCore SDK</h1>
|
|
2
|
+
<p align="center">
|
|
3
|
+
Enterprise Telegram Bot Framework โข Secure โข Scalable โข Zero-Trust Ready
|
|
4
|
+
</p>
|
|
5
|
+
|
|
6
|
+
<p align="center">
|
|
7
|
+
<img src="https://img.shields.io/badge/Framework-TGCore-black?style=for-the-badge">
|
|
8
|
+
<img src="https://img.shields.io/badge/API-Services%20Pro-purple?style=for-the-badge">
|
|
9
|
+
<img src="https://img.shields.io/badge/Security-AES--256%20GCM-green?style=for-the-badge">
|
|
10
|
+
</p>
|
|
11
|
+
|
|
12
|
+

|
|
13
|
+

|
|
14
|
+

|
|
15
|
+

|
|
16
|
+

|
|
17
|
+

|
|
18
|
+

|
|
19
|
+

|
|
20
|
+

|
|
21
|
+

|
|
22
|
+

|
|
23
|
+
|
|
24
|
+
The most secure Telegram Bot SDK ever built.
|
|
25
|
+
|
|
26
|
+
## โจ Features
|
|
27
|
+
|
|
28
|
+
- โก Async native ("async/await")
|
|
29
|
+
- ๐ Secure API key authentication
|
|
30
|
+
- ๐ค Multi-bot token support
|
|
31
|
+
- ๐ Token rotation ready
|
|
32
|
+
- ๐งฉ Builder pattern + simple calls
|
|
33
|
+
- ๐ฆ Auto-generated methods from OpenAPI schema
|
|
34
|
+
- ๐ Auto docstring generation
|
|
35
|
+
- ๐ Enterprise-ready architecture
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## ๐ฆ Installation
|
|
40
|
+
|
|
41
|
+
`pip install tgcore`
|
|
42
|
+
|
|
43
|
+
Or install locally:
|
|
44
|
+
|
|
45
|
+
`pip install -e .`
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## ๐ Authentication
|
|
50
|
+
|
|
51
|
+
Create client instance:
|
|
52
|
+
```py
|
|
53
|
+
from tgcore import Client
|
|
54
|
+
|
|
55
|
+
client = Client("fw_live_xxx")
|
|
56
|
+
|
|
57
|
+
await client.telegram.send_message(
|
|
58
|
+
chat_id="@channel",
|
|
59
|
+
text="hello"
|
|
60
|
+
)
|
|
61
|
+
```
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## ๐พ Usage
|
|
65
|
+
|
|
66
|
+
Simple Call
|
|
67
|
+
```py
|
|
68
|
+
await client.telegram.send_message(
|
|
69
|
+
chat_id="@channel",
|
|
70
|
+
text="Hello world"
|
|
71
|
+
)
|
|
72
|
+
```
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
Builder Pattern
|
|
76
|
+
```py
|
|
77
|
+
await (
|
|
78
|
+
client.telegram
|
|
79
|
+
.send_photo_call(chat_id="@channel", photo="https://img.jpg")
|
|
80
|
+
.execute()
|
|
81
|
+
)
|
|
82
|
+
```
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## ๐ Token Rotation Support
|
|
86
|
+
|
|
87
|
+
The server supports storing encrypted tokens using AES-256-GCM.
|
|
88
|
+
The SDK automatically uses the active token version.
|
|
89
|
+
|
|
90
|
+
## ๐ Security Model
|
|
91
|
+
|
|
92
|
+
TgCoreSDK never exposes bot tokens to clients.
|
|
93
|
+
|
|
94
|
+
Flow:
|
|
95
|
+
|
|
96
|
+
Client โ API Gateway โ Decrypt โ Telegram API
|
|
97
|
+
|
|
98
|
+
Benefits:
|
|
99
|
+
|
|
100
|
+
- prevents token leaks
|
|
101
|
+
- safe frontend usage
|
|
102
|
+
- safe monitoring dashboards
|
|
103
|
+
- supports IP restrictions
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## ๐งพ License
|
|
108
|
+
|
|
109
|
+
Licensed under Apache License 2.0
|
|
110
|
+
|
|
111
|
+
You may:
|
|
112
|
+
|
|
113
|
+
- use commercially
|
|
114
|
+
- modify
|
|
115
|
+
- distribute
|
|
116
|
+
- sublicense
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## ๐ค Contributing
|
|
121
|
+
|
|
122
|
+
Pull requests welcome.
|
|
123
|
+
For major changes, open an issue first to discuss what you would like to change.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## ๐ฅ Status
|
|
128
|
+
|
|
129
|
+
Production Ready
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## ๐ Author
|
|
134
|
+
|
|
135
|
+
Built with โค๏ธ by Randy W
|
tgcore-1.0.10/setup.cfg
ADDED
tgcore-1.0.10/setup.py
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import re
|
|
3
|
+
import setuptools
|
|
4
|
+
|
|
5
|
+
def read(fname, version=False):
|
|
6
|
+
path = os.path.join(os.path.dirname(__file__), fname)
|
|
7
|
+
text = open(path, encoding="utf8").read()
|
|
8
|
+
return re.search(r'__version__ = "(.*?)"', text)[1] if version else text
|
|
9
|
+
|
|
10
|
+
setuptools.setup(
|
|
11
|
+
name="tgcore",
|
|
12
|
+
packages=setuptools.find_packages(),
|
|
13
|
+
version=read("tgcore/__version__.py", version=True),
|
|
14
|
+
license="Apache-2.0",
|
|
15
|
+
description="TGCoreSDK | Enterprise Telegram Bot API Framework.",
|
|
16
|
+
long_description=read("README.md"),
|
|
17
|
+
long_description_content_type="text/markdown",
|
|
18
|
+
author="TeamKillerX",
|
|
19
|
+
project_urls={
|
|
20
|
+
"Source": "https://github.com/TeamKillerX/tgcore",
|
|
21
|
+
"Issues": "https://github.com/TeamKillerX/tgcore/issues",
|
|
22
|
+
"Documentation": "https://services-pro.ryzenths.dpdns.org/api/v2/docs"
|
|
23
|
+
},
|
|
24
|
+
keywords=[
|
|
25
|
+
"telegram",
|
|
26
|
+
"telegram-bot",
|
|
27
|
+
"telegram-api",
|
|
28
|
+
"sdk",
|
|
29
|
+
"framework",
|
|
30
|
+
"tgcore",
|
|
31
|
+
"ryzenth"
|
|
32
|
+
],
|
|
33
|
+
install_requires=[
|
|
34
|
+
"httpx>=0.24.0"
|
|
35
|
+
],
|
|
36
|
+
classifiers=[
|
|
37
|
+
"Development Status :: 5 - Production/Stable",
|
|
38
|
+
"License :: OSI Approved :: Apache Software License",
|
|
39
|
+
"Programming Language :: Python :: 3",
|
|
40
|
+
"Programming Language :: Python :: 3.8",
|
|
41
|
+
"Programming Language :: Python :: 3.9",
|
|
42
|
+
"Programming Language :: Python :: 3.10",
|
|
43
|
+
"Programming Language :: Python :: 3.11",
|
|
44
|
+
"Programming Language :: Python :: 3.12",
|
|
45
|
+
"Operating System :: OS Independent",
|
|
46
|
+
"Intended Audience :: Developers",
|
|
47
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
48
|
+
"Natural Language :: English",
|
|
49
|
+
],
|
|
50
|
+
python_requires=">=3.8",
|
|
51
|
+
)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Copyright 2026 Randy W
|
|
2
|
+
# Licensed under the Apache License, Version 2.0
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
Github Author: https://github.com/TeamKillerX/
|
|
6
|
+
Code: @zxyeor
|
|
7
|
+
|
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
you may not use this file except in compliance with the License.
|
|
10
|
+
You may obtain a copy of the License at
|
|
11
|
+
|
|
12
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
from .client import Client
|
|
16
|
+
|
|
17
|
+
__all__ = ["Client"]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
__title__ = "tgcore"
|
|
2
|
+
__version__ = "1.0.10"
|
|
3
|
+
__author__ = "TeamKillerX"
|
|
4
|
+
__license__ = "Apache-2.0"
|
|
5
|
+
|
|
6
|
+
__description__ = (
|
|
7
|
+
"Enterprise-grade bot API framework for secure, scalable integrations. "
|
|
8
|
+
"Built with zero-trust architecture, encrypted credentials, "
|
|
9
|
+
"and real-time request validation."
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
__url__ = "https://github.com/TeamKillerX/tgcore"
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Copyright 2026 Randy W
|
|
2
|
+
# Licensed under the Apache License, Version 2.0
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
Github Author: https://github.com/TeamKillerX/
|
|
6
|
+
Code: @zxyeor
|
|
7
|
+
|
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
you may not use this file except in compliance with the License.
|
|
10
|
+
You may obtain a copy of the License at
|
|
11
|
+
|
|
12
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
from .core import CoreBotAuth
|
|
17
|
+
from .telegram_namespace import TelegramNamespace
|
|
18
|
+
|
|
19
|
+
class Client(CoreBotAuth):
|
|
20
|
+
def __init__(self, api_key: str, **kw):
|
|
21
|
+
super().__init__(api_key, **kw)
|
|
22
|
+
self.telegram = TelegramNamespace(self)
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Copyright 2026 Randy W
|
|
2
|
+
# Licensed under the Apache License, Version 2.0
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
Github Author: https://github.com/TeamKillerX/
|
|
6
|
+
Code: @zxyeor
|
|
7
|
+
|
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
you may not use this file except in compliance with the License.
|
|
10
|
+
You may obtain a copy of the License at
|
|
11
|
+
|
|
12
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
|
|
17
|
+
from dataclasses import dataclass
|
|
18
|
+
from typing import Any, Dict, Generic, TypeVar, Optional, Callable
|
|
19
|
+
import re
|
|
20
|
+
import httpx
|
|
21
|
+
|
|
22
|
+
T = TypeVar("T")
|
|
23
|
+
|
|
24
|
+
_PATH_PARAM_RE = re.compile(r"\{([a-zA-Z_][a-zA-Z0-9_]*)\}")
|
|
25
|
+
|
|
26
|
+
def _extract_path_param_keys(path: str) -> list[str]:
|
|
27
|
+
return _PATH_PARAM_RE.findall(path)
|
|
28
|
+
|
|
29
|
+
def _format_path_and_pop_params(path: str, params: Dict[str, Any]) -> str:
|
|
30
|
+
keys = _extract_path_param_keys(path)
|
|
31
|
+
for k in keys:
|
|
32
|
+
if k not in params:
|
|
33
|
+
raise ValueError(f"Missing path param: {k} for path {path}")
|
|
34
|
+
path = path.replace("{" + k + "}", str(params[k]))
|
|
35
|
+
params.pop(k, None)
|
|
36
|
+
return path
|
|
37
|
+
|
|
38
|
+
@dataclass
|
|
39
|
+
class RequestCall(Generic[T]):
|
|
40
|
+
_client: "CoreBotAuth"
|
|
41
|
+
_method: str
|
|
42
|
+
_path: str
|
|
43
|
+
_params: Dict[str, Any]
|
|
44
|
+
|
|
45
|
+
async def execute(self) -> T:
|
|
46
|
+
if self._method == "GET":
|
|
47
|
+
return await self._client._get(self._path, self._params) # type: ignore
|
|
48
|
+
return await self._client._post(self._path, self._params) # type: ignore
|
|
49
|
+
|
|
50
|
+
@dataclass
|
|
51
|
+
class CoreBotAuth:
|
|
52
|
+
api_key: str
|
|
53
|
+
base_url: str = "https://services-pro.ryzenths.dpdns.org"
|
|
54
|
+
timeout: float = 30.0
|
|
55
|
+
|
|
56
|
+
def _headers(self) -> Dict[str, str]:
|
|
57
|
+
return {"x-api-key": self.api_key}
|
|
58
|
+
|
|
59
|
+
async def _post(self, path: str, payload: Dict[str, Any]) -> Dict[str, Any]:
|
|
60
|
+
payload = dict(payload or {})
|
|
61
|
+
path = _format_path_and_pop_params(path, payload)
|
|
62
|
+
|
|
63
|
+
async with httpx.AsyncClient(timeout=self.timeout) as c:
|
|
64
|
+
r = await c.post(self.base_url + path, json=payload, headers={**self._headers(), "Content-Type": "application/json"})
|
|
65
|
+
r.raise_for_status()
|
|
66
|
+
return r.json()
|
|
67
|
+
|
|
68
|
+
async def _get(self, path: str, params: Dict[str, Any]) -> Dict[str, Any]:
|
|
69
|
+
params = dict(params or {})
|
|
70
|
+
path = _format_path_and_pop_params(path, params)
|
|
71
|
+
|
|
72
|
+
async with httpx.AsyncClient(timeout=self.timeout) as c:
|
|
73
|
+
r = await c.get(self.base_url + path, params=params, headers=self._headers())
|
|
74
|
+
r.raise_for_status()
|
|
75
|
+
return r.json()
|
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
# Copyright 2026 Randy W
|
|
2
|
+
# Licensed under the Apache License, Version 2.0
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
Github Author: https://github.com/TeamKillerX/
|
|
6
|
+
Code: @zxyeor
|
|
7
|
+
|
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
you may not use this file except in compliance with the License.
|
|
10
|
+
You may obtain a copy of the License at
|
|
11
|
+
|
|
12
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
# AUTO-GENERATED FILE. DO NOT EDIT MANUALLY.
|
|
16
|
+
# Generated by generate_sdk.py
|
|
17
|
+
|
|
18
|
+
from __future__ import annotations
|
|
19
|
+
from typing import Any, Dict
|
|
20
|
+
from .core import RequestCall, CoreBotAuth
|
|
21
|
+
|
|
22
|
+
class TelegramNamespace:
|
|
23
|
+
def __init__(self, client: CoreBotAuth) -> None:
|
|
24
|
+
self._c = client
|
|
25
|
+
|
|
26
|
+
async def add_sticker_to_set(self, **kw: Any) -> Dict[str, Any]:
|
|
27
|
+
"""Add sticker to set
|
|
28
|
+
Use this method to add a new sticker to a set created by the bot. Emoji sticker sets can have up to 200 stickers. Other sticker sets can have up to 120 stickers. Returns True on success.
|
|
29
|
+
Source: https://core.telegram.org/bots/api#addstickertoset
|
|
30
|
+
|
|
31
|
+
Simple call for POST /api/v2/addStickerToSet.
|
|
32
|
+
"""
|
|
33
|
+
return await self._c._post("/api/v2/addStickerToSet", kw)
|
|
34
|
+
|
|
35
|
+
def add_sticker_to_set_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
36
|
+
"""Add sticker to set
|
|
37
|
+
Use this method to add a new sticker to a set created by the bot. Emoji sticker sets can have up to 200 stickers. Other sticker sets can have up to 120 stickers. Returns True on success.
|
|
38
|
+
Source: https://core.telegram.org/bots/api#addstickertoset
|
|
39
|
+
|
|
40
|
+
Builder call for POST /api/v2/addStickerToSet.
|
|
41
|
+
"""
|
|
42
|
+
return RequestCall(self._c, "POST", "/api/v2/addStickerToSet", kw)
|
|
43
|
+
|
|
44
|
+
async def approve_chat_join_request(self, **kw: Any) -> Dict[str, Any]:
|
|
45
|
+
"""Approve chat join request
|
|
46
|
+
Use this method to approve a chat join request. The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right. Returns True on success. Source: https://core.telegram.org/bots/api#approvechatjoinrequest
|
|
47
|
+
|
|
48
|
+
Simple call for POST /api/v2/approveChatJoinRequest.
|
|
49
|
+
"""
|
|
50
|
+
return await self._c._post("/api/v2/approveChatJoinRequest", kw)
|
|
51
|
+
|
|
52
|
+
def approve_chat_join_request_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
53
|
+
"""Approve chat join request
|
|
54
|
+
Use this method to approve a chat join request. The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right. Returns True on success. Source: https://core.telegram.org/bots/api#approvechatjoinrequest
|
|
55
|
+
|
|
56
|
+
Builder call for POST /api/v2/approveChatJoinRequest.
|
|
57
|
+
"""
|
|
58
|
+
return RequestCall(self._c, "POST", "/api/v2/approveChatJoinRequest", kw)
|
|
59
|
+
|
|
60
|
+
async def ban_chat_member(self, **kw: Any) -> Dict[str, Any]:
|
|
61
|
+
"""Ban chat member
|
|
62
|
+
Use this method to ban a user in a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able to return to the chat on their own using invite links, etc., unless [unbanned](https://core.telegram.org/bots/api#unbanchatmember) first. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success.
|
|
63
|
+
|
|
64
|
+
Simple call for POST /api/v2/banChatMember.
|
|
65
|
+
"""
|
|
66
|
+
return await self._c._post("/api/v2/banChatMember", kw)
|
|
67
|
+
|
|
68
|
+
def ban_chat_member_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
69
|
+
"""Ban chat member
|
|
70
|
+
Use this method to ban a user in a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able to return to the chat on their own using invite links, etc., unless [unbanned](https://core.telegram.org/bots/api#unbanchatmember) first. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success.
|
|
71
|
+
|
|
72
|
+
Builder call for POST /api/v2/banChatMember.
|
|
73
|
+
"""
|
|
74
|
+
return RequestCall(self._c, "POST", "/api/v2/banChatMember", kw)
|
|
75
|
+
|
|
76
|
+
async def ban_chat_sender_chat(self, **kw: Any) -> Dict[str, Any]:
|
|
77
|
+
"""Ban chat sender chat
|
|
78
|
+
Use this method to ban a channel chat in a supergroup or a channel. Until the chat is [unbanned](https://core.telegram.org/bots/api#unbanchatsenderchat), the owner of the banned chat wonโt be able to send messages on behalf of any of their channels. The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights. Returns True on success.
|
|
79
|
+
|
|
80
|
+
Simple call for POST /api/v2/banChatSenderChat.
|
|
81
|
+
"""
|
|
82
|
+
return await self._c._post("/api/v2/banChatSenderChat", kw)
|
|
83
|
+
|
|
84
|
+
def ban_chat_sender_chat_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
85
|
+
"""Ban chat sender chat
|
|
86
|
+
Use this method to ban a channel chat in a supergroup or a channel. Until the chat is [unbanned](https://core.telegram.org/bots/api#unbanchatsenderchat), the owner of the banned chat wonโt be able to send messages on behalf of any of their channels. The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights. Returns True on success.
|
|
87
|
+
|
|
88
|
+
Builder call for POST /api/v2/banChatSenderChat.
|
|
89
|
+
"""
|
|
90
|
+
return RequestCall(self._c, "POST", "/api/v2/banChatSenderChat", kw)
|
|
91
|
+
|
|
92
|
+
async def copy_message(self, **kw: Any) -> Dict[str, Any]:
|
|
93
|
+
"""Copy message
|
|
94
|
+
Source: https://core.telegram.org/bots/api#copymessage
|
|
95
|
+
|
|
96
|
+
Simple call for POST /api/v2/copyMessage.
|
|
97
|
+
"""
|
|
98
|
+
return await self._c._post("/api/v2/copyMessage", kw)
|
|
99
|
+
|
|
100
|
+
def copy_message_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
101
|
+
"""Copy message
|
|
102
|
+
Source: https://core.telegram.org/bots/api#copymessage
|
|
103
|
+
|
|
104
|
+
Builder call for POST /api/v2/copyMessage.
|
|
105
|
+
"""
|
|
106
|
+
return RequestCall(self._c, "POST", "/api/v2/copyMessage", kw)
|
|
107
|
+
|
|
108
|
+
async def copy_messages(self, **kw: Any) -> Dict[str, Any]:
|
|
109
|
+
"""Copy messages
|
|
110
|
+
Source: https://core.telegram.org/bots/api#copymessages
|
|
111
|
+
|
|
112
|
+
Simple call for POST /api/v2/copyMessages.
|
|
113
|
+
"""
|
|
114
|
+
return await self._c._post("/api/v2/copyMessages", kw)
|
|
115
|
+
|
|
116
|
+
def copy_messages_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
117
|
+
"""Copy messages
|
|
118
|
+
Source: https://core.telegram.org/bots/api#copymessages
|
|
119
|
+
|
|
120
|
+
Builder call for POST /api/v2/copyMessages.
|
|
121
|
+
"""
|
|
122
|
+
return RequestCall(self._c, "POST", "/api/v2/copyMessages", kw)
|
|
123
|
+
|
|
124
|
+
async def decline_chat_join_request(self, **kw: Any) -> Dict[str, Any]:
|
|
125
|
+
"""Decline chat join request
|
|
126
|
+
Use this method to decline a chat join request. The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right. Returns True on success. Source: https://core.telegram.org/bots/api#declinechatjoinrequest
|
|
127
|
+
|
|
128
|
+
Simple call for POST /api/v2/declineChatJoinRequest.
|
|
129
|
+
"""
|
|
130
|
+
return await self._c._post("/api/v2/declineChatJoinRequest", kw)
|
|
131
|
+
|
|
132
|
+
def decline_chat_join_request_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
133
|
+
"""Decline chat join request
|
|
134
|
+
Use this method to decline a chat join request. The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right. Returns True on success. Source: https://core.telegram.org/bots/api#declinechatjoinrequest
|
|
135
|
+
|
|
136
|
+
Builder call for POST /api/v2/declineChatJoinRequest.
|
|
137
|
+
"""
|
|
138
|
+
return RequestCall(self._c, "POST", "/api/v2/declineChatJoinRequest", kw)
|
|
139
|
+
|
|
140
|
+
async def delete_message(self, **kw: Any) -> Dict[str, Any]:
|
|
141
|
+
"""Delete message
|
|
142
|
+
Use this method to delete a message, including service messages, with the following limitations:
|
|
143
|
+
A message can only be deleted if it was sent less than 48 hours ago.
|
|
144
|
+
Service messages about a supergroup, channel, or forum topic creation canโt be deleted.
|
|
145
|
+
A dice message in a private chat can only be deleted if it was sent more than 24 hours ago.
|
|
146
|
+
Bots can delete outgoing messages in private chats, groups, and supergroups.
|
|
147
|
+
Bots can delete incoming messages in private chats.
|
|
148
|
+
Bots granted can_post_messages permissions can delete outgoing messages in channels.
|
|
149
|
+
If the bot is an administrator of a group, it can delete any message there.
|
|
150
|
+
If the bot has can_delete_messages administrator right in a supergroup or a channel, it can delete any message there.
|
|
151
|
+
If the bot has can_manage_direct_messages administrator right in a channel, it can delete any message in the corresponding direct messages chat.
|
|
152
|
+
|
|
153
|
+
Returns True on success.
|
|
154
|
+
Source: https://core.telegram.org/bots/api#deletemessage
|
|
155
|
+
|
|
156
|
+
Simple call for POST /api/v2/deleteMessage.
|
|
157
|
+
"""
|
|
158
|
+
return await self._c._post("/api/v2/deleteMessage", kw)
|
|
159
|
+
|
|
160
|
+
def delete_message_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
161
|
+
"""Delete message
|
|
162
|
+
Use this method to delete a message, including service messages, with the following limitations:
|
|
163
|
+
A message can only be deleted if it was sent less than 48 hours ago.
|
|
164
|
+
Service messages about a supergroup, channel, or forum topic creation canโt be deleted.
|
|
165
|
+
A dice message in a private chat can only be deleted if it was sent more than 24 hours ago.
|
|
166
|
+
Bots can delete outgoing messages in private chats, groups, and supergroups.
|
|
167
|
+
Bots can delete incoming messages in private chats.
|
|
168
|
+
Bots granted can_post_messages permissions can delete outgoing messages in channels.
|
|
169
|
+
If the bot is an administrator of a group, it can delete any message there.
|
|
170
|
+
If the bot has can_delete_messages administrator right in a supergroup or a channel, it can delete any message there.
|
|
171
|
+
If the bot has can_manage_direct_messages administrator right in a channel, it can delete any message in the corresponding direct messages chat.
|
|
172
|
+
|
|
173
|
+
Returns True on success.
|
|
174
|
+
|
|
175
|
+
Source: https://core.telegram.org/bots/api#deletemessage
|
|
176
|
+
|
|
177
|
+
Builder call for POST /api/v2/deleteMessage.
|
|
178
|
+
"""
|
|
179
|
+
return RequestCall(self._c, "POST", "/api/v2/deleteMessage", kw)
|
|
180
|
+
|
|
181
|
+
async def delete_messages(self, **kw: Any) -> Dict[str, Any]:
|
|
182
|
+
"""Delete messages
|
|
183
|
+
Use this method to delete multiple messages simultaneously. If some of the specified messages canโt be found, they are skipped. Returns True on success.
|
|
184
|
+
Source: https://core.telegram.org/bots/api#deletemessages
|
|
185
|
+
|
|
186
|
+
Simple call for POST /api/v2/deleteMessages.
|
|
187
|
+
"""
|
|
188
|
+
return await self._c._post("/api/v2/deleteMessages", kw)
|
|
189
|
+
|
|
190
|
+
def delete_messages_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
191
|
+
"""Delete messages
|
|
192
|
+
|
|
193
|
+
Use this method to delete multiple messages simultaneously. If some of the specified messages canโt be found, they are skipped. Returns True on success.
|
|
194
|
+
Source: https://core.telegram.org/bots/api#deletemessages
|
|
195
|
+
|
|
196
|
+
Builder call for POST /api/v2/deleteMessages.
|
|
197
|
+
"""
|
|
198
|
+
return RequestCall(self._c, "POST", "/api/v2/deleteMessages", kw)
|
|
199
|
+
|
|
200
|
+
async def delete_webhook(self, **kw: Any) -> Dict[str, Any]:
|
|
201
|
+
"""Delete Webhook
|
|
202
|
+
|
|
203
|
+
Simple call for DELETE /api/v2/deleteWebhook.
|
|
204
|
+
"""
|
|
205
|
+
return await self._c._post("/api/v2/deleteWebhook", kw)
|
|
206
|
+
|
|
207
|
+
def delete_webhook_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
208
|
+
"""Delete Webhook
|
|
209
|
+
|
|
210
|
+
Builder call for DELETE /api/v2/deleteWebhook.
|
|
211
|
+
"""
|
|
212
|
+
return RequestCall(self._c, "DELETE", "/api/v2/deleteWebhook", kw)
|
|
213
|
+
|
|
214
|
+
async def forward_message(self, **kw: Any) -> Dict[str, Any]:
|
|
215
|
+
"""Forward message
|
|
216
|
+
|
|
217
|
+
Source: https://core.telegram.org/bots/api#forwardmessage
|
|
218
|
+
|
|
219
|
+
Simple call for POST /api/v2/forwardMessage.
|
|
220
|
+
"""
|
|
221
|
+
return await self._c._post("/api/v2/forwardMessage", kw)
|
|
222
|
+
|
|
223
|
+
def forward_message_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
224
|
+
"""Forward message
|
|
225
|
+
|
|
226
|
+
Source: https://core.telegram.org/bots/api#forwardmessage
|
|
227
|
+
|
|
228
|
+
Builder call for POST /api/v2/forwardMessage.
|
|
229
|
+
"""
|
|
230
|
+
return RequestCall(self._c, "POST", "/api/v2/forwardMessage", kw)
|
|
231
|
+
|
|
232
|
+
async def forward_messages(self, **kw: Any) -> Dict[str, Any]:
|
|
233
|
+
"""Forward messages
|
|
234
|
+
|
|
235
|
+
Source: https://core.telegram.org/bots/api#forwardmessages
|
|
236
|
+
|
|
237
|
+
Simple call for POST /api/v2/forwardMessages.
|
|
238
|
+
"""
|
|
239
|
+
return await self._c._post("/api/v2/forwardMessages", kw)
|
|
240
|
+
|
|
241
|
+
def forward_messages_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
242
|
+
"""Forward messages
|
|
243
|
+
|
|
244
|
+
Source: https://core.telegram.org/bots/api#forwardmessages
|
|
245
|
+
|
|
246
|
+
Builder call for POST /api/v2/forwardMessages.
|
|
247
|
+
"""
|
|
248
|
+
return RequestCall(self._c, "POST", "/api/v2/forwardMessages", kw)
|
|
249
|
+
|
|
250
|
+
async def get_chat(self, **kw: Any) -> Dict[str, Any]:
|
|
251
|
+
"""Get Chat
|
|
252
|
+
|
|
253
|
+
Source: https://core.telegram.org/bots/api#getchat
|
|
254
|
+
|
|
255
|
+
Simple call for GET /api/v2/getChat.
|
|
256
|
+
"""
|
|
257
|
+
return await self._c._get("/api/v2/getChat", kw)
|
|
258
|
+
|
|
259
|
+
def get_chat_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
260
|
+
"""Get Chat
|
|
261
|
+
|
|
262
|
+
Source: https://core.telegram.org/bots/api#getchat
|
|
263
|
+
|
|
264
|
+
Builder call for GET /api/v2/getChat.
|
|
265
|
+
"""
|
|
266
|
+
return RequestCall(self._c, "GET", "/api/v2/getChat", kw)
|
|
267
|
+
|
|
268
|
+
async def getme(self, **kw: Any) -> Dict[str, Any]:
|
|
269
|
+
"""Getme
|
|
270
|
+
|
|
271
|
+
Simple call for GET /api/v2/getme.
|
|
272
|
+
"""
|
|
273
|
+
return await self._c._get("/api/v2/getme", kw)
|
|
274
|
+
|
|
275
|
+
def getme_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
276
|
+
"""Getme
|
|
277
|
+
|
|
278
|
+
Builder call for GET /api/v2/getme.
|
|
279
|
+
"""
|
|
280
|
+
return RequestCall(self._c, "GET", "/api/v2/getme", kw)
|
|
281
|
+
|
|
282
|
+
async def pin_chat_message(self, **kw: Any) -> Dict[str, Any]:
|
|
283
|
+
"""Pin chat message
|
|
284
|
+
|
|
285
|
+
Use this method to add a message to the list of pinned messages in a chat. In private chats and channel direct messages chats, all non-service messages can be pinned. Conversely, the bot must be an administrator with the โcan_pin_messagesโ right or the โcan_edit_messagesโ right to pin messages in groups and channels respectively. Returns True on success. Source: https://core.telegram.org/bots/api#pinchatmessage
|
|
286
|
+
|
|
287
|
+
Simple call for POST /api/v2/pinChatMessage.
|
|
288
|
+
"""
|
|
289
|
+
return await self._c._post("/api/v2/pinChatMessage", kw)
|
|
290
|
+
|
|
291
|
+
def pin_chat_message_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
292
|
+
"""Pin chat message
|
|
293
|
+
|
|
294
|
+
Use this method to add a message to the list of pinned messages in a chat. In private chats and channel direct messages chats, all non-service messages can be pinned. Conversely, the bot must be an administrator with the โcan_pin_messagesโ right or the โcan_edit_messagesโ right to pin messages in groups and channels respectively. Returns True on success. Source: https://core.telegram.org/bots/api#pinchatmessage
|
|
295
|
+
|
|
296
|
+
Builder call for POST /api/v2/pinChatMessage.
|
|
297
|
+
"""
|
|
298
|
+
return RequestCall(self._c, "POST", "/api/v2/pinChatMessage", kw)
|
|
299
|
+
|
|
300
|
+
async def send_animation(self, **kw: Any) -> Dict[str, Any]:
|
|
301
|
+
"""Send animation
|
|
302
|
+
|
|
303
|
+
Source: https://core.telegram.org/bots/api#sendanimation
|
|
304
|
+
|
|
305
|
+
Simple call for POST /api/v2/sendAnimation.
|
|
306
|
+
"""
|
|
307
|
+
return await self._c._post("/api/v2/sendAnimation", kw)
|
|
308
|
+
|
|
309
|
+
def send_animation_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
310
|
+
"""Send animation
|
|
311
|
+
|
|
312
|
+
Source: https://core.telegram.org/bots/api#sendanimation
|
|
313
|
+
|
|
314
|
+
Builder call for POST /api/v2/sendAnimation.
|
|
315
|
+
"""
|
|
316
|
+
return RequestCall(self._c, "POST", "/api/v2/sendAnimation", kw)
|
|
317
|
+
|
|
318
|
+
async def send_media_group(self, **kw: Any) -> Dict[str, Any]:
|
|
319
|
+
"""Send media group
|
|
320
|
+
|
|
321
|
+
Source: https://core.telegram.org/bots/api#sendmediagroup
|
|
322
|
+
|
|
323
|
+
Simple call for POST /api/v2/sendMediaGroup.
|
|
324
|
+
"""
|
|
325
|
+
return await self._c._post("/api/v2/sendMediaGroup", kw)
|
|
326
|
+
|
|
327
|
+
def send_media_group_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
328
|
+
"""Send media group
|
|
329
|
+
|
|
330
|
+
Source: https://core.telegram.org/bots/api#sendmediagroup
|
|
331
|
+
|
|
332
|
+
Builder call for POST /api/v2/sendMediaGroup.
|
|
333
|
+
"""
|
|
334
|
+
return RequestCall(self._c, "POST", "/api/v2/sendMediaGroup", kw)
|
|
335
|
+
|
|
336
|
+
async def send_message(self, **kw: Any) -> Dict[str, Any]:
|
|
337
|
+
"""Send message
|
|
338
|
+
|
|
339
|
+
Source: https://core.telegram.org/bots/api#sendmessage
|
|
340
|
+
|
|
341
|
+
Simple call for POST /api/v2/sendMessage.
|
|
342
|
+
"""
|
|
343
|
+
return await self._c._post("/api/v2/sendMessage", kw)
|
|
344
|
+
|
|
345
|
+
def send_message_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
346
|
+
"""Send message
|
|
347
|
+
|
|
348
|
+
Source: https://core.telegram.org/bots/api#sendmessage
|
|
349
|
+
|
|
350
|
+
Builder call for POST /api/v2/sendMessage.
|
|
351
|
+
"""
|
|
352
|
+
return RequestCall(self._c, "POST", "/api/v2/sendMessage", kw)
|
|
353
|
+
|
|
354
|
+
async def send_photo(self, **kw: Any) -> Dict[str, Any]:
|
|
355
|
+
"""Send photo message
|
|
356
|
+
|
|
357
|
+
Source: https://core.telegram.org/bots/api#sendphoto
|
|
358
|
+
|
|
359
|
+
Simple call for POST /api/v2/sendPhoto.
|
|
360
|
+
"""
|
|
361
|
+
return await self._c._post("/api/v2/sendPhoto", kw)
|
|
362
|
+
|
|
363
|
+
def send_photo_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
364
|
+
"""Send photo message
|
|
365
|
+
|
|
366
|
+
Source: https://core.telegram.org/bots/api#sendphoto
|
|
367
|
+
|
|
368
|
+
Builder call for POST /api/v2/sendPhoto.
|
|
369
|
+
"""
|
|
370
|
+
return RequestCall(self._c, "POST", "/api/v2/sendPhoto", kw)
|
|
371
|
+
|
|
372
|
+
async def send_sticker(self, **kw: Any) -> Dict[str, Any]:
|
|
373
|
+
"""Send sticker message
|
|
374
|
+
|
|
375
|
+
Use this method to send static .WEBP, [animated](https://telegram.org/blog/animated-stickers) .TGS, or [video](https://telegram.org/blog/video-stickers-better-reactions) .WEBM stickers. Source: https://core.telegram.org/bots/api#sendsticker
|
|
376
|
+
|
|
377
|
+
Simple call for POST /api/v2/sendSticker.
|
|
378
|
+
"""
|
|
379
|
+
return await self._c._post("/api/v2/sendSticker", kw)
|
|
380
|
+
|
|
381
|
+
def send_sticker_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
382
|
+
"""Send sticker message
|
|
383
|
+
|
|
384
|
+
Use this method to send static .WEBP, [animated](https://telegram.org/blog/animated-stickers) .TGS, or [video](https://telegram.org/blog/video-stickers-better-reactions) .WEBM stickers. Source: https://core.telegram.org/bots/api#sendsticker
|
|
385
|
+
|
|
386
|
+
Builder call for POST /api/v2/sendSticker.
|
|
387
|
+
"""
|
|
388
|
+
return RequestCall(self._c, "POST", "/api/v2/sendSticker", kw)
|
|
389
|
+
|
|
390
|
+
async def send_video(self, **kw: Any) -> Dict[str, Any]:
|
|
391
|
+
"""Send video message
|
|
392
|
+
|
|
393
|
+
Source: https://core.telegram.org/bots/api#sendvideo
|
|
394
|
+
|
|
395
|
+
Simple call for POST /api/v2/sendVideo.
|
|
396
|
+
"""
|
|
397
|
+
return await self._c._post("/api/v2/sendVideo", kw)
|
|
398
|
+
|
|
399
|
+
def send_video_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
400
|
+
"""Send video message
|
|
401
|
+
|
|
402
|
+
Source: https://core.telegram.org/bots/api#sendvideo
|
|
403
|
+
|
|
404
|
+
Builder call for POST /api/v2/sendVideo.
|
|
405
|
+
"""
|
|
406
|
+
return RequestCall(self._c, "POST", "/api/v2/sendVideo", kw)
|
|
407
|
+
|
|
408
|
+
async def users(self, **kw: Any) -> Dict[str, Any]:
|
|
409
|
+
"""Users
|
|
410
|
+
|
|
411
|
+
Simple call for GET /api/v2/users.
|
|
412
|
+
"""
|
|
413
|
+
return await self._c._get("/api/v2/users", kw)
|
|
414
|
+
|
|
415
|
+
def users_call(self, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
416
|
+
"""Users
|
|
417
|
+
|
|
418
|
+
Builder call for GET /api/v2/users.
|
|
419
|
+
"""
|
|
420
|
+
return RequestCall(self._c, "GET", "/api/v2/users", kw)
|
|
421
|
+
|
|
422
|
+
async def create_webhook(self, **kw: Any) -> Dict[str, Any]:
|
|
423
|
+
"""Create Webhook
|
|
424
|
+
|
|
425
|
+
Simple call for POST /api/v2/webhook/{public_id}.
|
|
426
|
+
"""
|
|
427
|
+
return await self._c._post(
|
|
428
|
+
"/api/v2/webhook/{public_id}",
|
|
429
|
+
{"public_id": public_id, **kw},
|
|
430
|
+
)
|
|
431
|
+
|
|
432
|
+
def create_webhook_call(self, public_id: str, **kw: Any) -> RequestCall[Dict[str, Any]]:
|
|
433
|
+
"""Create Webhook
|
|
434
|
+
|
|
435
|
+
Builder call for POST /api/v2/webhook/{public_id}.
|
|
436
|
+
"""
|
|
437
|
+
return RequestCall(
|
|
438
|
+
self._c,
|
|
439
|
+
"POST",
|
|
440
|
+
"/api/v2/webhook/{public_id}",
|
|
441
|
+
{"public_id": public_id, **kw},
|
|
442
|
+
)
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tgcore
|
|
3
|
+
Version: 1.0.10
|
|
4
|
+
Summary: TGCoreSDK | Enterprise Telegram Bot API Framework.
|
|
5
|
+
Author: TeamKillerX
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Source, https://github.com/TeamKillerX/tgcore
|
|
8
|
+
Project-URL: Issues, https://github.com/TeamKillerX/tgcore/issues
|
|
9
|
+
Project-URL: Documentation, https://services-pro.ryzenths.dpdns.org/api/v2/docs
|
|
10
|
+
Keywords: telegram,telegram-bot,telegram-api,sdk,framework,tgcore,ryzenth
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Operating System :: OS Independent
|
|
20
|
+
Classifier: Intended Audience :: Developers
|
|
21
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
22
|
+
Classifier: Natural Language :: English
|
|
23
|
+
Requires-Python: >=3.8
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
License-File: NOTICE
|
|
27
|
+
Requires-Dist: httpx>=0.24.0
|
|
28
|
+
Dynamic: author
|
|
29
|
+
Dynamic: classifier
|
|
30
|
+
Dynamic: description
|
|
31
|
+
Dynamic: description-content-type
|
|
32
|
+
Dynamic: keywords
|
|
33
|
+
Dynamic: license
|
|
34
|
+
Dynamic: license-file
|
|
35
|
+
Dynamic: project-url
|
|
36
|
+
Dynamic: requires-dist
|
|
37
|
+
Dynamic: requires-python
|
|
38
|
+
Dynamic: summary
|
|
39
|
+
|
|
40
|
+
<h1 align="center">TGCore SDK</h1>
|
|
41
|
+
<p align="center">
|
|
42
|
+
Enterprise Telegram Bot Framework โข Secure โข Scalable โข Zero-Trust Ready
|
|
43
|
+
</p>
|
|
44
|
+
|
|
45
|
+
<p align="center">
|
|
46
|
+
<img src="https://img.shields.io/badge/Framework-TGCore-black?style=for-the-badge">
|
|
47
|
+
<img src="https://img.shields.io/badge/API-Services%20Pro-purple?style=for-the-badge">
|
|
48
|
+
<img src="https://img.shields.io/badge/Security-AES--256%20GCM-green?style=for-the-badge">
|
|
49
|
+
</p>
|
|
50
|
+
|
|
51
|
+

|
|
52
|
+

|
|
53
|
+

|
|
54
|
+

|
|
55
|
+

|
|
56
|
+

|
|
57
|
+

|
|
58
|
+

|
|
59
|
+

|
|
60
|
+

|
|
61
|
+

|
|
62
|
+
|
|
63
|
+
The most secure Telegram Bot SDK ever built.
|
|
64
|
+
|
|
65
|
+
## โจ Features
|
|
66
|
+
|
|
67
|
+
- โก Async native ("async/await")
|
|
68
|
+
- ๐ Secure API key authentication
|
|
69
|
+
- ๐ค Multi-bot token support
|
|
70
|
+
- ๐ Token rotation ready
|
|
71
|
+
- ๐งฉ Builder pattern + simple calls
|
|
72
|
+
- ๐ฆ Auto-generated methods from OpenAPI schema
|
|
73
|
+
- ๐ Auto docstring generation
|
|
74
|
+
- ๐ Enterprise-ready architecture
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## ๐ฆ Installation
|
|
79
|
+
|
|
80
|
+
`pip install tgcore`
|
|
81
|
+
|
|
82
|
+
Or install locally:
|
|
83
|
+
|
|
84
|
+
`pip install -e .`
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## ๐ Authentication
|
|
89
|
+
|
|
90
|
+
Create client instance:
|
|
91
|
+
```py
|
|
92
|
+
from tgcore import Client
|
|
93
|
+
|
|
94
|
+
client = Client("fw_live_xxx")
|
|
95
|
+
|
|
96
|
+
await client.telegram.send_message(
|
|
97
|
+
chat_id="@channel",
|
|
98
|
+
text="hello"
|
|
99
|
+
)
|
|
100
|
+
```
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## ๐พ Usage
|
|
104
|
+
|
|
105
|
+
Simple Call
|
|
106
|
+
```py
|
|
107
|
+
await client.telegram.send_message(
|
|
108
|
+
chat_id="@channel",
|
|
109
|
+
text="Hello world"
|
|
110
|
+
)
|
|
111
|
+
```
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
Builder Pattern
|
|
115
|
+
```py
|
|
116
|
+
await (
|
|
117
|
+
client.telegram
|
|
118
|
+
.send_photo_call(chat_id="@channel", photo="https://img.jpg")
|
|
119
|
+
.execute()
|
|
120
|
+
)
|
|
121
|
+
```
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## ๐ Token Rotation Support
|
|
125
|
+
|
|
126
|
+
The server supports storing encrypted tokens using AES-256-GCM.
|
|
127
|
+
The SDK automatically uses the active token version.
|
|
128
|
+
|
|
129
|
+
## ๐ Security Model
|
|
130
|
+
|
|
131
|
+
TgCoreSDK never exposes bot tokens to clients.
|
|
132
|
+
|
|
133
|
+
Flow:
|
|
134
|
+
|
|
135
|
+
Client โ API Gateway โ Decrypt โ Telegram API
|
|
136
|
+
|
|
137
|
+
Benefits:
|
|
138
|
+
|
|
139
|
+
- prevents token leaks
|
|
140
|
+
- safe frontend usage
|
|
141
|
+
- safe monitoring dashboards
|
|
142
|
+
- supports IP restrictions
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## ๐งพ License
|
|
147
|
+
|
|
148
|
+
Licensed under Apache License 2.0
|
|
149
|
+
|
|
150
|
+
You may:
|
|
151
|
+
|
|
152
|
+
- use commercially
|
|
153
|
+
- modify
|
|
154
|
+
- distribute
|
|
155
|
+
- sublicense
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## ๐ค Contributing
|
|
160
|
+
|
|
161
|
+
Pull requests welcome.
|
|
162
|
+
For major changes, open an issue first to discuss what you would like to change.
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## ๐ฅ Status
|
|
167
|
+
|
|
168
|
+
Production Ready
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## ๐ Author
|
|
173
|
+
|
|
174
|
+
Built with โค๏ธ by Randy W
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
NOTICE
|
|
3
|
+
README.md
|
|
4
|
+
setup.py
|
|
5
|
+
tgcore/__init__.py
|
|
6
|
+
tgcore/__version__.py
|
|
7
|
+
tgcore/client.py
|
|
8
|
+
tgcore/core.py
|
|
9
|
+
tgcore/telegram_namespace.py
|
|
10
|
+
tgcore.egg-info/PKG-INFO
|
|
11
|
+
tgcore.egg-info/SOURCES.txt
|
|
12
|
+
tgcore.egg-info/dependency_links.txt
|
|
13
|
+
tgcore.egg-info/requires.txt
|
|
14
|
+
tgcore.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
httpx>=0.24.0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tgcore
|