Class ChatResponse
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
চ্যাট প্রতিক্রিয়া গুগল চ্যাটে কার্ড মেসেজের রেসপন্স অবজেক্ট।
শুধুমাত্র গুগল চ্যাট অ্যাপের জন্য উপলব্ধ। গুগল ওয়ার্কস্পেস অ্যাড-অনের জন্য উপলব্ধ নয়।
// Creates a card message in Chat.
const cardHeader = CardService.newCardHeader()
.setTitle('Card Header Title')
.setSubtitle('Card Header Subtitle');
const card = CardService.newCardBuilder().setHeader(cardHeader).build();
const chatResponse =
CardService.newChatResponseBuilder()
.setText('Example text')
.addCardsV2(
CardService.newCardWithId().setCardId('card_id').setCard(card))
.build();
console.log(chatResponse.printJson()); পদ্ধতি
| পদ্ধতি | রিটার্ন টাইপ | সংক্ষিপ্ত বিবরণ |
|---|
print Json() | String | এই অবজেক্টটির JSON উপস্থাপনা প্রিন্ট করে। |
বিস্তারিত ডকুমেন্টেশন
printJson()
এই অবজেক্টটির JSON উপস্থাপনা প্রিন্ট করে। এটি শুধুমাত্র ডিবাগিংয়ের জন্য।
ফেরত
String
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2026-04-13 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2026-04-13 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],["The `ChatResponse` object, exclusive to Google Chat apps, facilitates the creation of card messages. It is not for Google Workspace add-ons. You can build card messages using methods like `newCardHeader()` and `newCardBuilder()`. `newChatResponseBuilder()` builds the ChatResponse by adding text and cards. `printJson()` outputs the JSON representation of the constructed `ChatResponse` object, for debugging purposes.\n"]]