diff --git a/django_code/apps/telegram_communication/management/commands/test_message.py b/django_code/apps/telegram_communication/management/commands/test_message.py index 33b2d0d..94e0ab7 100644 --- a/django_code/apps/telegram_communication/management/commands/test_message.py +++ b/django_code/apps/telegram_communication/management/commands/test_message.py @@ -1,10 +1,19 @@ from apps.telegram_communication.utils import telegramUtils from django.core.management.base import BaseCommand +import datetime + + class Command(BaseCommand): telegram = telegramUtils() - telegram.send_message("Test") + + date_now = datetime.datetime.now() + + message = "Test message sent at "+str(date_now) + + + telegram.send_message(message) args = '' help = 'Affiche la liste des backlogs' def handle(self, *args, **options): - self.stdout.write('Coucou !') + self.stdout.write('Message sent !')