Fix message in vodynoi/gen_table.py

This commit is contained in:
q00 2024-11-26 22:40:47 +03:00
parent a0fa90c915
commit 7a4d80e140
3 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -18,3 +18,4 @@ lib64/
pyvenv.cfg
share/
kaluga/lib64
*/*.xlsx

Binary file not shown.

View file

@ -25,7 +25,7 @@ def send_telegram():
raise ValueError("Telegram токен или ID канала не заданы в .env")
url = f"https://api.telegram.org/bot{token}/sendDocument"
comment = f"Начало: {from_str}\nКонец: {to_str}"
comment = f"Начало: {from_formatted}\nКонец: {to_formatted}"
with open(file_name, 'rb') as file:
r = requests.post(url, data={
"chat_id": channel_id,