Skip to content

Commit

Permalink
Merge pull request #728 from Badiboy/master
Browse files Browse the repository at this point in the history
Design updates from #711
  • Loading branch information
Badiboy authored Jan 8, 2020
2 parents 9b279dc + aa02ddb commit b1e5d00
Show file tree
Hide file tree
Showing 3 changed files with 312 additions and 30 deletions.
6 changes: 3 additions & 3 deletions examples/detailed_example/detailed_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ def msg_image_select(m):
# for some reason the 'upload_photo' status isn't quite working (doesn't show at all)
bot.send_chat_action(cid, 'typing')

if text == "cock": # send the appropriate image based on the reply to the "/getImage" command
if text == 'Mickey': # send the appropriate image based on the reply to the "/getImage" command
bot.send_photo(cid, open('rooster.jpg', 'rb'),
reply_markup=hideBoard) # send file and hide keyboard, after image is sent
userStep[cid] = 0 # reset the users step back to 0
elif text == "pussy":
elif text == 'Minnie':
bot.send_photo(cid, open('kitten.jpg', 'rb'), reply_markup=hideBoard)
userStep[cid] = 0
else:
bot.send_message(cid, "Don't type crap, if I give you a predefined keyboard!")
bot.send_message(cid, "Please, use the predefined keyboard!")
bot.send_message(cid, "Please try again")


Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def read(filename):
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Environment :: Console',
Expand Down
Loading

0 comments on commit b1e5d00

Please sign in to comment.