-
Notifications
You must be signed in to change notification settings - Fork 325
Bot longpoll example #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bot longpoll example #173
Conversation
vk_api/bot_longpoll.py
Outdated
| for event in self.check(): | ||
| yield event | ||
| except KeyboardInterrupt: | ||
| break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Зачем это?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Большую часть времени скрипт ждёт события с сервера. Когда контрол с нажимаешь, появляется длииинный трейсбек. А то красиво будет
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это наверное лучше на стороне юзера делать
* Add chat event 4, fix NOTIFICATION_SETTINGS_UPDATE (python273#169) * Add chat event 4, fix NOTIFICATION_SETTINGS_UPDATE * New Bot Longpoll event * Bump api version * Bot longpoll example (python273#173) * 11 event * Add Travis CI PyPI uploading * Update version to 11.1.0 * Version 5.85, lp version 3, setup.py open encoding (python273#181) * Version 5.85, lp version 3
commit 0477dd1cae9ca9600ea08991099ea2471bd8517e Merge: 2028653 a495b86 Author: slavikmipt <slavikmipt@gmail.com> Date: Tue Sep 25 17:55:15 2018 +0300 Merge branch 'master' of https://github.com/SlavikMIPT/vk_api commit 2028653cd072c0064da77e7c887b77b39a039ad8 Author: slavikmipt <slavikmipt@gmail.com> Date: Tue Sep 25 17:54:43 2018 +0300 Squashed commit of the following: commit a495b86 Merge: b114f00 afa5f5d Author: slavikmipt <slavikmipt@gmail.com> Date: Tue Sep 25 12:35:10 2018 +0300 Merge branch 'master' of https://github.com/SlavikMIPT/vk_api commit b114f00 Author: slavikmipt <slavikmipt@gmail.com> Date: Tue Sep 25 12:34:45 2018 +0300 server_auth commit afa5f5d Merge: 922978c e0c54b1 Author: SlavikMIPT <slavikmipt@gmail.com> Date: Tue Sep 25 12:25:40 2018 +0300 Merge branch 'master' into master commit 922978c Author: slavikmipt <slavikmipt@gmail.com> Date: Tue Sep 25 12:20:07 2018 +0300 example refactored commit f3df6d8 Author: slavikmipt <slavikmipt@gmail.com> Date: Tue Sep 25 12:15:35 2018 +0300 Поддержка прокси для загрузки VHQ audio commit 8e94ab9 Author: SlavikMIPT <slavikmipt@gmail.com> Date: Tue Sep 25 11:34:54 2018 +0300 API 5.85 (#1) * Add chat event 4, fix NOTIFICATION_SETTINGS_UPDATE (python273#169) * Add chat event 4, fix NOTIFICATION_SETTINGS_UPDATE * New Bot Longpoll event * Bump api version * Bot longpoll example (python273#173) * 11 event * Add Travis CI PyPI uploading * Update version to 11.1.0 * Version 5.85, lp version 3, setup.py open encoding (python273#181) * Version 5.85, lp version 3 commit e0c54b1 Author: Igor <helow@helow19274.tk> Date: Mon Sep 24 15:13:39 2018 +0300 Version 5.85, lp version 3, setup.py open encoding (python273#181) * Version 5.85, lp version 3 commit 3f1e7df Author: python273 <iam@python273.pw> Date: Mon Sep 17 22:31:00 2018 +0300 Update version to 11.1.0 commit 8e4bae7 Author: python273 <iam@python273.pw> Date: Mon Sep 17 22:22:57 2018 +0300 Add Travis CI PyPI uploading commit db136aa Author: Igor <helow@helow19274.tk> Date: Thu Sep 6 18:11:16 2018 +0300 11 event commit a6884e6 Author: Igor <helow@helow19274.tk> Date: Thu Sep 6 05:11:23 2018 +0300 Bot longpoll example (python273#173) commit b598bd3 Author: Igor <helow@helow19274.tk> Date: Wed Aug 29 20:51:31 2018 +0300 Bump api version commit 55f69fe Author: Igor <helow@helow19274.tk> Date: Wed Aug 29 20:51:03 2018 +0300 New Bot Longpoll event commit 9fd2c69 Author: Igor <helow@helow19274.tk> Date: Tue Aug 28 13:15:27 2018 +0300 Add chat event 4, fix NOTIFICATION_SETTINGS_UPDATE (python273#169) * Add chat event 4, fix NOTIFICATION_SETTINGS_UPDATE Revert "lambda -> regexp" This reverts commit 13953fd. commit a495b86 Merge: b114f00 afa5f5d Author: slavikmipt <slavikmipt@gmail.com> Date: Tue Sep 25 12:35:10 2018 +0300 Merge branch 'master' of https://github.com/SlavikMIPT/vk_api commit b114f00 Author: slavikmipt <slavikmipt@gmail.com> Date: Tue Sep 25 12:34:45 2018 +0300 server_auth commit afa5f5d Merge: 922978c e0c54b1 Author: SlavikMIPT <slavikmipt@gmail.com> Date: Tue Sep 25 12:25:40 2018 +0300 Merge branch 'master' into master commit 922978c Author: slavikmipt <slavikmipt@gmail.com> Date: Tue Sep 25 12:20:07 2018 +0300 example refactored commit f3df6d8 Author: slavikmipt <slavikmipt@gmail.com> Date: Tue Sep 25 12:15:35 2018 +0300 Поддержка прокси для загрузки VHQ audio commit 8e94ab9 Author: SlavikMIPT <slavikmipt@gmail.com> Date: Tue Sep 25 11:34:54 2018 +0300 API 5.85 (#1) * Add chat event 4, fix NOTIFICATION_SETTINGS_UPDATE (python273#169) * Add chat event 4, fix NOTIFICATION_SETTINGS_UPDATE * New Bot Longpoll event * Bump api version * Bot longpoll example (python273#173) * 11 event * Add Travis CI PyPI uploading * Update version to 11.1.0 * Version 5.85, lp version 3, setup.py open encoding (python273#181) * Version 5.85, lp version 3 commit e0c54b1 Author: Igor <helow@helow19274.tk> Date: Mon Sep 24 15:13:39 2018 +0300 Version 5.85, lp version 3, setup.py open encoding (python273#181) * Version 5.85, lp version 3 commit 3f1e7df Author: python273 <iam@python273.pw> Date: Mon Sep 17 22:31:00 2018 +0300 Update version to 11.1.0 commit 8e4bae7 Author: python273 <iam@python273.pw> Date: Mon Sep 17 22:22:57 2018 +0300 Add Travis CI PyPI uploading commit db136aa Author: Igor <helow@helow19274.tk> Date: Thu Sep 6 18:11:16 2018 +0300 11 event commit a6884e6 Author: Igor <helow@helow19274.tk> Date: Thu Sep 6 05:11:23 2018 +0300 Bot longpoll example (python273#173) commit b598bd3 Author: Igor <helow@helow19274.tk> Date: Wed Aug 29 20:51:31 2018 +0300 Bump api version commit 55f69fe Author: Igor <helow@helow19274.tk> Date: Wed Aug 29 20:51:03 2018 +0300 New Bot Longpoll event commit 9fd2c69 Author: Igor <helow@helow19274.tk> Date: Tue Aug 28 13:15:27 2018 +0300 Add chat event 4, fix NOTIFICATION_SETTINGS_UPDATE (python273#169) * Add chat event 4, fix NOTIFICATION_SETTINGS_UPDATE
Closes #172