Skip to content

Commit

Permalink
add typing while exporting csv users
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Shamaev committed Sep 9, 2022
1 parent b0d17fc commit f890b62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tgbot/handlers/admin/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from tgbot.handlers.admin import static_text
from tgbot.handlers.admin.utils import _get_csv_from_qs_values
from tgbot.handlers.utils.info import send_typing_action
from users.models import User


Expand Down Expand Up @@ -37,6 +38,7 @@ def stats(update: Update, context: CallbackContext) -> None:
)


@send_typing_action
def export_users(update: Update, context: CallbackContext) -> None:
u = User.get_user(update, context)
if not u.is_admin:
Expand Down

0 comments on commit f890b62

Please sign in to comment.