Class TelegramMessageController

java.lang.Object
com.bytedesk.social.telegram.TelegramMessageController

@RestController @RequestMapping("/api/v1/telegram") public class TelegramMessageController extends Object
  • Field Details

  • Constructor Details

    • TelegramMessageController

      public TelegramMessageController()
  • Method Details

    • sendTextMessage

      @PostMapping("/send/text") public org.springframework.http.ResponseEntity<String> sendTextMessage(@RequestParam String chatId, @RequestParam String text)
    • sendPhotoMessage

      @PostMapping("/send/photo") public org.springframework.http.ResponseEntity<String> sendPhotoMessage(@RequestParam String chatId, @RequestParam String photoUrl, @RequestParam(required=false) String caption)
    • sendSticker

      @PostMapping("/send/sticker") public org.springframework.http.ResponseEntity<String> sendSticker(@RequestParam String chatId, @RequestParam String stickerFileId)
    • sendCustomKeyboard

      @PostMapping("/send/customKeyboard") public org.springframework.http.ResponseEntity<String> sendCustomKeyboard(@RequestParam String chatId, @RequestParam(required=false) String text)
    • sendInlineKeyboard

      @PostMapping("/send/inlineKeyboard") public org.springframework.http.ResponseEntity<String> sendInlineKeyboard(@RequestParam String chatId, @RequestParam(required=false) String text)
    • showChatAction

      @PostMapping("/show/chatAction") public org.springframework.http.ResponseEntity<String> showChatAction(@RequestParam String chatId, @RequestParam String actionType)