-
Notifications
You must be signed in to change notification settings - Fork 0
117 write from a bot to certain user as an admin #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: mig
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,8 @@ | |
| from django.http import JsonResponse, HttpResponse | ||
| from django.views import View | ||
|
|
||
| from tg_routine.commandHelpers import * | ||
| from tg_routine.commandHelpers import write_specific_helper | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. from tg_routine.commandHelpers import * Means that everything will be imported from the commandHelpers, no need to change that |
||
| from tg_routine.commandHelpers import all_users_balance_helper | ||
| from tg_routine.main import telegram_async_handler | ||
|
|
||
|
|
||
|
|
@@ -77,7 +78,7 @@ def insert_message(request, *args, **kwargs): | |
| def test_endpoint(request, *args, **kwargs): | ||
| if request.method == "GET": | ||
| results = all_users_balance_helper() # ToDo: for test purposes only change here. | ||
| # response, chat_id = write_specific_helper(message, from_label, chat_id=12345) # ToDo: use if there are multiple outputs | ||
| result, chat_id = write_specific_helper("message", "from_label", chat_id=12345) # ToDo: use if there are multiple outputs | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need to change the test endpoint |
||
| print(results) | ||
| return JsonResponse({"test": results}) | ||
| else: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove prints from final commits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_label("labelname", chat.language)