-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy path__init__.py
More file actions
36 lines (26 loc) · 875 Bytes
/
__init__.py
File metadata and controls
36 lines (26 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
"""
botogram
A Python microframework for Telegram bots
Copyright (c) 2015 Pietro Albini <pietro@pietroalbini.io>
Released under the MIT license
"""
# Prepare the logger
from .utils import configure_logger
configure_logger()
del configure_logger
# flake8: noqa
from .api import APIError, ChatUnavailableError
from .bot import Bot, create, channel
from .frozenbot import FrozenBotError
from .components import Component
from .decorators import pass_bot, pass_shared, help_message_for
from .runner import run
from .objects import *
from .utils import usernames_in
# This code will simulate the Windows' multiprocessing behavior if the
# BOTOGRAM_SIMULATE_WINDOWS environment variable is set
import os
import multiprocessing
if "BOTOGRAM_SIMULATE_WINDOWS" in os.environ:
multiprocessing.set_start_method("spawn", force=True)
del os, multiprocessing