aheskandani commited on
Commit
c88c215
1 Parent(s): 1935825

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,6 +21,7 @@ def start(update: Update, context: CallbackContext):
21
  def send_captcha(update: Update, context: CallbackContext):
22
  ''' Entry point of conversation this gives buttons to user'''
23
  chat_id = update.effective_chat.id
 
24
  url = captcha_url()
25
  context.bot.send_message(chat_id, text=url)
26
  urllib.request.urlretrieve(url, 'captcha.png')
@@ -35,7 +36,6 @@ def captcha_url():
35
  resp = session.get(web_url, headers=headers)
36
  soup = BeautifulSoup(resp.content, 'html.parser')
37
  img_src = soup.find('img', id='secimg')['src']
38
- filename = 'C:/Users/Home/OneDrive/Desktop/captcha.png'
39
  capcha_src = 'https://pooya.um.ac.ir' + img_src[2:]
40
  return capcha_src
41
 
 
21
  def send_captcha(update: Update, context: CallbackContext):
22
  ''' Entry point of conversation this gives buttons to user'''
23
  chat_id = update.effective_chat.id
24
+ context.bot.send_message(chat_id, text='Salam')
25
  url = captcha_url()
26
  context.bot.send_message(chat_id, text=url)
27
  urllib.request.urlretrieve(url, 'captcha.png')
 
36
  resp = session.get(web_url, headers=headers)
37
  soup = BeautifulSoup(resp.content, 'html.parser')
38
  img_src = soup.find('img', id='secimg')['src']
 
39
  capcha_src = 'https://pooya.um.ac.ir' + img_src[2:]
40
  return capcha_src
41