Skip to content

Commit

Permalink
Removed large sizes for bot.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot committed Jan 23, 2024
1 parent 13cf616 commit 02e277e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ async def coordinates(message: types.Message) -> None:
sizes = generate.MAP_SIZES
indicators = ["🟢", "🟢", "🟡", "🔴"]
buttons = {}
for size, indicator in zip(sizes, indicators):
# * Slice sizes because VPS can not handle large images.
for size, indicator in zip(sizes[:2], indicators[:2]):
buttons[f"map_size_{size}"] = f"{indicator} {size} x {size} meters"

dp.message_handlers.unregister(coordinates)
Expand Down

0 comments on commit 02e277e

Please sign in to comment.