aheskandani commited on
Commit
c6cfed4
1 Parent(s): 352ff52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -21,7 +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 = 'https://pooya.um.ac.ir/gateway/SecurityImage/ShowSecurityImage.php?rand=1685017367&rand2=Wm1xc2xiUmdaODFCOCttb1Y3ZkNGRDJIeUtzR2JObk4veGlwa2hLSTBaOD0='
25
  urllib.request.urlretrieve(url, 'captcha.png')
26
  print('Downloaded!')
27
  context.bot.send_photo(chat_id, photo=open('captcha.png', 'rb'))
@@ -31,5 +31,4 @@ if __name__ == '__main__':
31
  updater.dispatcher.add_handler(CommandHandler('start', start))
32
  updater.dispatcher.add_handler(CommandHandler('img', send_captcha))
33
  updater.start_polling()
34
- print('Bot started ..........')
35
- updater.idle()
 
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 = 'https://pooya.um.ac.ir/gateway/SecurityImage/ShowSecurityImage.php?rand=1616724262&rand2=VWRSblpFdzgxd3ZmOExIeUVSc1lCcGhkLzdDYkQ4ODFhYkhwNGptM2RyRT0='
25
  urllib.request.urlretrieve(url, 'captcha.png')
26
  print('Downloaded!')
27
  context.bot.send_photo(chat_id, photo=open('captcha.png', 'rb'))
 
31
  updater.dispatcher.add_handler(CommandHandler('start', start))
32
  updater.dispatcher.add_handler(CommandHandler('img', send_captcha))
33
  updater.start_polling()
34
+ print('Bot started ..........')