Created
April 3, 2019 18:23
-
-
Save RomanGorbatko/2ac4c636bafebdab29c778ce7ef715f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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