Added some code to catch user_typing event. Needs view implementation

This commit is contained in:
2019-01-11 17:00:58 -06:00
parent 2ba4233ac7
commit da9425228e
3 changed files with 11 additions and 0 deletions

View File

@@ -23,5 +23,7 @@ class worker(threading.Thread):
pub.sendMessage("user-online", event=event)
elif event.type == VkEventType.USER_OFFLINE:
pub.sendMessage("user-offline", event=event)
elif event.type == VkEventType.USER_TYPING:
pub.sendMessage("user-typing", event=event)
except:
pub.sendMessage("longpoll-read-timeout")