This commit is contained in:
@@ -1,10 +1,19 @@
|
|||||||
from apps.telegram_communication.utils import telegramUtils
|
from apps.telegram_communication.utils import telegramUtils
|
||||||
from django.core.management.base import BaseCommand
|
from django.core.management.base import BaseCommand
|
||||||
|
import datetime
|
||||||
|
|
||||||
|
|
||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
telegram = telegramUtils()
|
telegram = telegramUtils()
|
||||||
telegram.send_message("Test")
|
|
||||||
|
date_now = datetime.datetime.now()
|
||||||
|
|
||||||
|
message = "Test message sent at "+str(date_now)
|
||||||
|
|
||||||
|
|
||||||
|
telegram.send_message(message)
|
||||||
args = '<team_id>'
|
args = '<team_id>'
|
||||||
help = 'Affiche la liste des backlogs'
|
help = 'Affiche la liste des backlogs'
|
||||||
|
|
||||||
def handle(self, *args, **options):
|
def handle(self, *args, **options):
|
||||||
self.stdout.write('Coucou !')
|
self.stdout.write('Message sent !')
|
||||||
|
|||||||
Reference in New Issue
Block a user