From bdedc664258e1eb240eba866f42ca635e8e2b749 Mon Sep 17 00:00:00 2001 From: "Francesco Scarlato (Jungmann)" Date: Wed, 27 Apr 2016 08:50:49 +0000 Subject: [PATCH] Add import in the example --- README.rst | 1 + example/telegrambot.py | 1 + 2 files changed, 2 insertions(+) diff --git a/README.rst b/README.rst index 859316d..1a1e0c2 100644 --- a/README.rst +++ b/README.rst @@ -56,6 +56,7 @@ Include in your urls.py the ``django_telegrambot.urls`` using the same value of Then use it in a project creating a module ``telegrambot.py`` in your app :: #myapp/telegrambot.py + from telegram.ext import CommandHandler, MessageHandler, Filters from django_telegrambot.apps import DjangoTelegramBot # Define a few command handlers. These usually take the two arguments bot and diff --git a/example/telegrambot.py b/example/telegrambot.py index dd33a60..a44a99b 100644 --- a/example/telegrambot.py +++ b/example/telegrambot.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- # Example code for telegrambot.py module +from telegram.ext import CommandHandler, MessageHandler, Filters from django_telegrambot.apps import DjangoTelegramBot import logging