mirror of
https://github.com/vercel/chat.git
synced 2026-09-14 18:32:29 +08:00
0c688a0111
* Add support for telegram bot * Add support for action buttons in telegram * Use markdown parse mode * Add more tests * Fix linting issues * Fixes * Fixes * Don't reverse order messages for AI and always answer for telegram * Add telegram integration test * Update telegram.json
46 lines
1.0 KiB
JSON
46 lines
1.0 KiB
JSON
{
|
|
"botName": "vercelchatsdkbot",
|
|
"botUserId": "8765336106",
|
|
"mention": {
|
|
"message": {
|
|
"chat": {
|
|
"first_name": "Test User",
|
|
"id": 7527593,
|
|
"type": "private",
|
|
"username": "telegram_test_user"
|
|
},
|
|
"date": 1767224888,
|
|
"entities": [{ "length": 17, "offset": 0, "type": "mention" }],
|
|
"from": {
|
|
"first_name": "Test User",
|
|
"id": 7527593,
|
|
"is_bot": false,
|
|
"username": "telegram_test_user"
|
|
},
|
|
"message_id": 133,
|
|
"text": "@vercelchatsdkbot hi"
|
|
},
|
|
"update_id": 1001
|
|
},
|
|
"followUp": {
|
|
"message": {
|
|
"chat": {
|
|
"first_name": "Test User",
|
|
"id": 7527593,
|
|
"type": "private",
|
|
"username": "telegram_test_user"
|
|
},
|
|
"date": 1767224901,
|
|
"from": {
|
|
"first_name": "Test User",
|
|
"id": 7527593,
|
|
"is_bot": false,
|
|
"username": "telegram_test_user"
|
|
},
|
|
"message_id": 134,
|
|
"text": "how are you"
|
|
},
|
|
"update_id": 1002
|
|
}
|
|
}
|