Skip to content

Commit

Permalink
๐Ÿ› Dependency updates and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
asaf-kali committed Jan 10, 2025
1 parent cdcba7f commit 7ba6843
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 57 deletions.
2 changes: 1 addition & 1 deletion app/bot/the_spymaster_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@


class TheSpymasterBot:
def __init__(self, telegram_token: str, base_url: Optional[str] = None, dynamo_persistence: bool = False):
def __init__(self, telegram_token: str, base_url: str, dynamo_persistence: bool = False):
self.api_client = TheSpymasterClient(base_url=base_url)
persistence = DynamoPersistence() if dynamo_persistence else DictPersistence()
self.updater = Updater(token=telegram_token, persistence=persistence)
Expand Down
18 changes: 0 additions & 18 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,6 @@ def main():
bot.poll()


def example_event():
from lambda_handler import handle

telegram_update = {
"update_id": 617241338,
"message": {
"message_id": 2611,
"from": {"id": 1362351931, "is_bot": False, "first_name": "๐’ฆ๐’ถ๐“๐’พ", "language_code": "en"},
"chat": {"id": 1362351931, "first_name": "๐’ฆ๐’ถ๐“๐’พ", "type": "private"},
"date": 1655500031,
"text": "/start",
"entities": [{"offset": 0, "length": 6, "type": "bot_command"}],
},
}
event = {"body": json.dumps(telegram_update)}
handle(event)


def example_warmup():
from lambda_handler import handle

Expand Down
76 changes: 38 additions & 38 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7ba6843

Please sign in to comment.