Skip to content
Permalink
Browse files

Changed uid of vk users

  • Loading branch information
YogurtTheHorse committed Aug 25, 2016
1 parent 9298b02 commit fe4ac1fbdeb3a2e860cdb0286442552377319931
Showing with 3 additions and 4 deletions.
  1. +3 −4 main_vk.py
@@ -65,14 +65,13 @@ def reply(id, txt, buttons=None, photo=None):
def new_message(event):
text = event[6]
c_id = event[3]

logger.info(event)
uid = 'vk' + str(c_id)

if text == '/start':
reply(c_id, 'Теперь скажи мне свое имя')
usermanager.new_user(c_id)
usermanager.new_user(uid)
else:
usermanager.message(c_id, lambda *a, **kw: reply(c_id, *a, **kw), event[6])
usermanager.message(uid, lambda *a, **kw: reply(c_id, *a, **kw), event[6])


if __name__ == '__main__':

0 comments on commit fe4ac1f

Please sign in to comment.
You can’t perform that action at this time.