Skip to content

Commit

Permalink
move to utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
z44d committed Jun 26, 2024
1 parent 0aee9ab commit 6e141e8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tgram/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
__all__ = ["types", "TgBot", "handlers", "filters", "API_URL", "ALL_UPDATES"]
__all__ = ["types", "TgBot", "handlers", "filters"]

from . import types, handlers, filters
from .tgbot import TgBot

API_URL = "https://api.telegram.org/"
ALL_UPDATES = [
getattr(handlers.Handlers, i)
for i in filter(lambda x: not x.startswith("_"), handlers.Handlers.__dict__)
]

0 comments on commit 6e141e8

Please sign in to comment.