Skip to content

Commit

Permalink
format telegram_shooter
Browse files Browse the repository at this point in the history
  • Loading branch information
C0D3D3V committed May 1, 2024
1 parent cbad30e commit 1b24590
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion moodle_dl/notifications/telegram/telegram_shooter.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ def send(self, message: str):
url = f'https://api.telegram.org/bot{self.telegram_token}/sendMessage'
data_urlencoded = urllib.parse.urlencode(payload)

session = SslHelper.custom_requests_session(skip_cert_verify=False, allow_insecure_ssl=False, , use_all_ciphers=False)
session = SslHelper.custom_requests_session(
skip_cert_verify=False, allow_insecure_ssl=False, use_all_ciphers=False
)
try:
response = session.post(url, data=data_urlencoded, headers=self.RQ_HEADER, timeout=60)
except RequestException as error:
Expand Down

0 comments on commit 1b24590

Please sign in to comment.