rasa.core.channels.telegram

TelegramOutput Objects

Copy

class TelegramOutput(TeleBot, OutputChannel)

Output channel for Telegram.

send_text_with_buttons

Copy

async 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

TelegramInput Objects

Copy

class TelegramInput(InputChannel)

Telegram input channel

get_output_channel

Copy

get_output_channel() -> TelegramOutput

Loads the telegram channel.