Channel-Specific Response Variations in Custom Actions

I have a chatbot with custom actions in the responses. How can I send different responses to different channels? for example Facebook and Telegram

What is the configuration in the actions.py file?

Use tracker.get_latest_input_channel()