pythonbotsamazon-chime

How to send Amazon Chime messages automatically?


I want to schedule the sending of Amazon Chime messages and send them automatically. For instance, I want message1 to be sent every Monday at 10am, message2 to be sent every Tuesday at 15pm, etc...

Should I need to do it via a bot and Python ? What is the best way to do it ?


Solution

  • You will have to schedule your functions like this:

    import schedule
    import time
    
    def message1():
        # Sends msg1
    
    def message2():
        # Sends msg2
    
    schedule.every().monday.at("10:00").do(message1)
    schedule.every().tuesday.at("15:00").do(message2)