rasa.core.channels.telegram
You are viewing documentation for our open source project which is maintained by the community. If you want to get started building assistants with Rasa please check out our latest documentation here.
TelegramOutput Objects
class TelegramOutput(Bot, OutputChannel)
Output channel for Telegram.
send_text_message
async def send_text_message(recipient_id: Text, text: Text, **kwargs: Any) -> None
Sends text message.
send_image_url
async def send_image_url(recipient_id: Text, image: Text, **kwargs: Any) -> None
Sends an image.
send_text_with_buttons
async def send_text_with_buttons(recipient_id: Text, text: Text, buttons: List[Dict[Text, Any]], button_type: Optional[Text] = "inline", **kwargs: Any) -> None
Sends a message with keyboard.
For more information: https://core.telegram.org/bots#keyboards
:button_type inline: horizontal inline keyboard
:button_type vertical: vertical inline keyboard
:button_type reply: reply keyboard
send_custom_json
async def send_custom_json(recipient_id: Text, json_message: Dict[Text, Any], **kwargs: Any) -> None
Sends a message with a custom json payload.
TelegramInput Objects
class TelegramInput(InputChannel)
Telegram input channel
get_output_channel
def get_output_channel() -> TelegramOutput
Loads the telegram channel.