messenger

messenger

기능

  • 설정
    • api나 key를 설정하는 기능
    • cli로 설정 가능
      • config.json 수정
      • reload_config 호출
    • reload_config: config를 읽고 다시 객체 셋팅
    • .sm/messenger_config.json
      {
        "messeger": [
          "telegram": {
            "api_key": "~",
            "webhook_url": "https://example.com/sm-webhook"
          }
        ]
      }
      
  • 메시지 보내는 기능
    • 메신저 프로그램으로 메시지 보내는 기능
  • 메시지 받는 기능
    • type (설정에 따라 달리짐)
      • polling을 통해서 메시지를 받아오는 기능
      • webhook을 통해서 메시지를 받아오는 기능