|
@@ -167,7 +167,10 @@ def _run(
|
|
|
use_context=True,
|
|
|
persistence=_Persistence(photos=photos),
|
|
|
)
|
|
|
- updater.dispatcher.add_handler(telegram.ext.CommandHandler("photo", _photo_command))
|
|
|
+
|
|
|
+
|
|
|
+ dispatcher: telegram.ext.dispatcher.Dispatcher = updater.dispatcher
|
|
|
+ dispatcher.add_handler(telegram.ext.CommandHandler("photo", _photo_command))
|
|
|
updater.start_polling()
|
|
|
|
|
|
|