Skip to content

Commit

Permalink
fix telegram noti
Browse files Browse the repository at this point in the history
  • Loading branch information
topefolorunso committed Apr 16, 2023
1 parent 3606955 commit c86526f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/utils/telegram_helper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,7 @@ def send_job_notification(conn, job):
location = job[2]
url = job[3]

message = f'''
{company.capitalize()}\n
=====================\n\n
Role - {role}\n
Location - {location}\n
URL - {url}
'''.replace('&', '%26')
message = f'{company.capitalize()}\n=====================\n\nRole - {role}\nLocation - {location}\nURL - {url}'.replace('&', '%26')

url_prefix = 'https://api.telegram.org/bot5550807059:AAEFaAQ53OyWQpz23dsVWDwkKpRx-xz36T4/sendMessage'
url_query = f'?chat_id=-776374127&text={message}'
Expand Down

0 comments on commit c86526f

Please sign in to comment.