Telegram node Callback operations#
ใช้ operations เหล่านี้เพื่อตอบ callback queries จาก inline keyboard หรือ inline queries
ดูรายละเอียดเพิ่มเติมเกี่ยวกับ Telegram node ได้ที่ Telegram
This node can be used as an AI tool
This node can be used to enhance the capabilities of an AI agent. When used in this way, many parameters can be set automatically, or with information directed by AI - find out more in the AI tool parameters documentation.
Answer Query#
ใช้ operation นี้เพื่อส่งคำตอบของ callback queries จาก inline keyboards ผ่าน Bot API answerCallbackQuery
ป้อนพารามิเตอร์เหล่านี้:
- Credential to connect with: สร้างหรือเลือก Telegram credential
- Resource: เลือก Callback
- Operation: เลือก Answer Query
- Query ID: ใส่ตัวระบุของ query ที่ต้องการตอบ
- หากต้องการส่ง Query ID โดยตรง ให้ใช้ Telegram Trigger node ที่ trigger บน Callback Query
- Results: ใส่ JSON-serialized array ของผลลัพธ์ที่จะส่งเป็นคำตอบ ดูเอกสาร Telegram InlineQueryResults สำหรับรูปแบบข้อมูล
ดูเอกสาร Bot API answerCallbackQuery สำหรับข้อมูลเพิ่มเติม
Answer Query additional fields#
Use the Additional Fields to further refine the behavior of the node. Select Add Field to add any of the following:
- Cache Time: Enter the maximum amount of time in seconds that the client may cache the result of the callback query. Telegram defaults to
0
seconds for this method. - Show Alert: Telegram can display the answer as a notification at the top of the chat screen or as an alert. Choose whether you want to keep the default notification display (turned off) or display the answer as an alert (turned on).
- Text: If you want the answer to show text, enter up to 200 characters of text here.
- URL: Enter a URL that will be opened by the user's client. Refer to the url parameter instructions at the Telegram Bot API answerCallbackQuery documentation for more information.
Answer Inline Query#
Use this operation to send answers to callback queries sent from inline queries using the Bot API answerInlineQuery method.
Enter these parameters:
- Credential to connect with: Create or select an existing Telegram credential.
- Resource: Select Callback.
- Operation: Select Answer Inline Query.
- Query ID: Enter the unique identifier of the query you want to answer.
- To feed a Query ID directly into this node, use the Telegram Trigger node triggered on the Inline Query.
- Results: Enter a JSON-serialized array of results you want to use as answers to the query. Refer to the Telegram InlineQueryResults documentation for more information on formatting your array.
Telegram allows a maximum of 50 results per query.
Refer to the Telegram Bot API answerInlineQuery documentation for more information.
Answer Inline Query additional fields#
Use the Additional Fields to further refine the behavior of the node. Select Add Field to add any of the following:
- Cache Time: The maximum amount of time in seconds that the client may cache the result of the callback query. Telegram defaults to
300
seconds for this method. - Show Alert: Telegram can display the answer as a notification at the top of the chat screen or as an alert. Choose whether you want to keep the default notification display (turned off) or display the answer as an alert (turned on).
- Text: If you want the answer to show text, enter up to 200 characters of text here.
- URL: Enter a URL that the user's client will open.