2016-03-14 14:50:12 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
#
|
|
|
|
# A library that provides a Python interface to the Telegram Bot API
|
2018-01-04 16:16:06 +01:00
|
|
|
# Copyright (C) 2015-2018
|
2016-03-14 14:50:12 +01:00
|
|
|
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Lesser Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Lesser Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Lesser Public License
|
|
|
|
# along with this program. If not, see [http://www.gnu.org/licenses/].
|
|
|
|
"""Extensions over the Telegram Bot API to facilitate bot making"""
|
|
|
|
|
2018-09-20 22:50:40 +02:00
|
|
|
from .basepersistence import BasePersistence
|
|
|
|
from .picklepersistence import PicklePersistence
|
|
|
|
from .dictpersistence import DictPersistence
|
2018-09-21 08:57:01 +02:00
|
|
|
from .handler import Handler
|
|
|
|
from .callbackcontext import CallbackContext
|
2017-08-12 17:57:12 +02:00
|
|
|
from .dispatcher import Dispatcher, DispatcherHandlerStop, run_async
|
2016-05-25 22:51:13 +02:00
|
|
|
from .jobqueue import JobQueue, Job
|
2016-03-14 14:50:12 +01:00
|
|
|
from .updater import Updater
|
2016-04-16 16:54:07 +02:00
|
|
|
from .callbackqueryhandler import CallbackQueryHandler
|
|
|
|
from .choseninlineresulthandler import ChosenInlineResultHandler
|
|
|
|
from .inlinequeryhandler import InlineQueryHandler
|
2016-09-25 00:30:04 +02:00
|
|
|
from .filters import BaseFilter, Filters
|
2019-02-13 12:07:25 +01:00
|
|
|
from .messagehandler import MessageHandler
|
|
|
|
from .commandhandler import CommandHandler, PrefixHandler
|
2016-04-14 23:57:40 +02:00
|
|
|
from .regexhandler import RegexHandler
|
2016-04-16 16:54:07 +02:00
|
|
|
from .stringcommandhandler import StringCommandHandler
|
|
|
|
from .stringregexhandler import StringRegexHandler
|
|
|
|
from .typehandler import TypeHandler
|
2016-07-15 01:30:54 +02:00
|
|
|
from .conversationhandler import ConversationHandler
|
2017-05-22 13:20:26 +02:00
|
|
|
from .precheckoutqueryhandler import PreCheckoutQueryHandler
|
|
|
|
from .shippingqueryhandler import ShippingQueryHandler
|
2017-07-23 22:33:08 +02:00
|
|
|
from .messagequeue import MessageQueue
|
|
|
|
from .messagequeue import DelayQueue
|
2016-03-14 14:50:12 +01:00
|
|
|
|
2016-05-25 22:51:13 +02:00
|
|
|
__all__ = ('Dispatcher', 'JobQueue', 'Job', 'Updater', 'CallbackQueryHandler',
|
2016-05-25 23:57:29 +02:00
|
|
|
'ChosenInlineResultHandler', 'CommandHandler', 'Handler', 'InlineQueryHandler',
|
2016-09-25 00:30:04 +02:00
|
|
|
'MessageHandler', 'BaseFilter', 'Filters', 'RegexHandler', 'StringCommandHandler',
|
2017-05-22 13:20:26 +02:00
|
|
|
'StringRegexHandler', 'TypeHandler', 'ConversationHandler',
|
2017-07-29 19:15:43 +02:00
|
|
|
'PreCheckoutQueryHandler', 'ShippingQueryHandler', 'MessageQueue', 'DelayQueue',
|
2018-09-21 08:57:01 +02:00
|
|
|
'DispatcherHandlerStop', 'run_async', 'CallbackContext', 'BasePersistence',
|
2018-09-21 08:57:43 +02:00
|
|
|
'PicklePersistence', 'DictPersistence', 'PrefixHandler')
|