eztelegramapi 0.1.2__py3-none-any.whl

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.
eztelegram/__init__.py ADDED
@@ -0,0 +1 @@
1
+ from .telegram import send_message
eztelegram/telegram.py ADDED
@@ -0,0 +1,8 @@
1
+ import requests
2
+
3
+ def send_message(token: str, id: int, text: str):
4
+ url = f"https://api.telegram.org/bot{token}/sendMessage"
5
+ return requests.post(url, data={
6
+ "chat_id": id,
7
+ "text": text
8
+ })
@@ -0,0 +1,11 @@
1
+ Metadata-Version: 2.4
2
+ Name: eztelegramapi
3
+ Version: 0.1.2
4
+ Summary: Simple Telegram helper
5
+ Requires-Python: >=3.10
6
+ Description-Content-Type: text/markdown
7
+ Requires-Dist: requests
8
+
9
+ # eztelegram
10
+
11
+ Simple Telegram helper for sending messages.
@@ -0,0 +1,6 @@
1
+ eztelegram/__init__.py,sha256=i0LkpgZJY_pYEVfyzIzON_jjvmxmQTKWZil2IaYfpnU,34
2
+ eztelegram/telegram.py,sha256=nQl9QdZqCoui5F0BqTnZln9gYxGYNRRLr0NTAF7Ql4M,215
3
+ eztelegramapi-0.1.2.dist-info/METADATA,sha256=p6sfGG90qRxUQi6SfcdhQSCEyT3JeDZ6tQ4AJA6Tpl8,237
4
+ eztelegramapi-0.1.2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
5
+ eztelegramapi-0.1.2.dist-info/top_level.txt,sha256=6URHMfiQbJyD_72s3tuFmeaF4i_IfE0enZCpRBgVBqA,11
6
+ eztelegramapi-0.1.2.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ eztelegram