fix telegram url building

This commit is contained in:
Pavel Muhortov 2024-01-06 07:56:43 +03:00
parent cd26b947cf
commit ebaa23a32d

View File

@ -2865,7 +2865,7 @@ class Telegram:
chat = chat.split('_')[0]
url = self.api_path + '/send' + media_type + '?chat_id=' + chat
if thrd:
url = url + '?message_thread_id=' + thrd
url = url + '&message_thread_id=' + thrd
else:
raise ValueError("'media_type' value is wrong: " + media_type)