Spaces:
Running
Running
Update dmsender.py
Browse files- dmsender.py +1 -1
dmsender.py
CHANGED
|
@@ -46,7 +46,7 @@ def get_direct_chats():
|
|
| 46 |
|
| 47 |
|
| 48 |
def post_message(chat_id, body):
|
| 49 |
-
url = f"{BASE_URL}/
|
| 50 |
r = requests.post(url, headers=HEADERS, json=body)
|
| 51 |
r.raise_for_status()
|
| 52 |
return r.json()
|
|
|
|
| 46 |
|
| 47 |
|
| 48 |
def post_message(chat_id, body):
|
| 49 |
+
url = f"{BASE_URL}/groups/{chat_id}/messages"
|
| 50 |
r = requests.post(url, headers=HEADERS, json=body)
|
| 51 |
r.raise_for_status()
|
| 52 |
return r.json()
|