Skip to content

Commit

Permalink
fix: missing connection to telegram in group run (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
pekasen authored Apr 13, 2023
1 parent 6e47c58 commit 21a8b7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tegracli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ def reset(groups: Tuple[str]):
@click.pass_context
def run(ctx: click.Context, groups: Tuple[str]):
"""Load a group configuration and run the groups operations."""
run_group(ctx.obj["client"], groups)
client = ctx.obj["client"]
with client:
run_group(client, groups)


def _handle_group_member(member: str, conf: Group, client: TelegramClient) -> None:
Expand Down

0 comments on commit 21a8b7d

Please sign in to comment.