Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RomanGorbatko/2ac4c636bafebdab29c778ce7ef715f1 to your computer and use it in GitHub Desktop.
Save RomanGorbatko/2ac4c636bafebdab29c778ce7ef715f1 to your computer and use it in GitHub Desktop.
if 'Choose new_amount' in message.text:
max_amount = re.findall(regex, message.text, re.MULTILINE) # max amout frrom cornix bot
if max_amount[0][0]:
if float(max_amount[0][0]) > float(amount): # if cornix amount great then ui amount
client.send_message(chat_id=message.chat.id, text=amount) # set ui amoint
return
else:
client.send_message(chat_id=message.chat.id, text=max_amount[0][0]) # set cornix amount
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment