একটি বার্তা আপডেট করে। patch এবং update পদ্ধতির মধ্যে পার্থক্য আছে। patch পদ্ধতি একটি patch অনুরোধ ব্যবহার করে যখন update পদ্ধতি একটি put অনুরোধ ব্যবহার করে। আমরা patch পদ্ধতি ব্যবহার করার পরামর্শ দিই। একটি উদাহরণের জন্য, একটি বার্তা আপডেট করুন দেখুন।
যেখানে {space} হল সেই স্পেসের আইডি যেখানে বার্তা পোস্ট করা হয়েছে এবং {message} মেসেজের জন্য একটি সিস্টেম-নির্ধারিত আইডি। উদাহরণস্বরূপ, spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB ।
আপনি একটি বার্তা তৈরি করার সময় যদি আপনি একটি কাস্টম আইডি সেট করেন, তাহলে আপনি clientAssignedMessageId ক্ষেত্রের মান দিয়ে {message} প্রতিস্থাপন করে একটি অনুরোধে বার্তাটি নির্দিষ্ট করতে এই ID ব্যবহার করতে পারেন। উদাহরণস্বরূপ, spaces/AAAAAAAAAAA/messages/client-custom-name । বিস্তারিত জানার জন্য, একটি বার্তার নাম দেখুন।
ঐচ্ছিক। যদি true এবং বার্তাটি পাওয়া না যায়, একটি নতুন বার্তা তৈরি করা হয় এবং updateMask উপেক্ষা করা হয়। নির্দিষ্ট বার্তা আইডি অবশ্যই ক্লায়েন্ট-অ্যাসাইন করা হবে বা অনুরোধ ব্যর্থ হবে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-08-13 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eUpdates a Google Chat message using the \u003ccode\u003ePUT\u003c/code\u003e method, preferably with the \u003ccode\u003epatch\u003c/code\u003e approach for partial modifications.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing the message's resource name in the URL path for identification.\u003c/p\u003e\n"],["\u003cp\u003eAllows specifying fields to update using \u003ccode\u003eupdateMask\u003c/code\u003e and supports creating a new message if the original is missing with \u003ccode\u003eallowMissing\u003c/code\u003e set to \u003ccode\u003etrue\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAuthentication can be done using app authentication or user authentication, with app authentication restricting updates to messages created by the calling Chat app.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with specific OAuth scopes like \u003ccode\u003echat.bot\u003c/code\u003e, \u003ccode\u003echat.import\u003c/code\u003e, or \u003ccode\u003echat.messages\u003c/code\u003e.\u003c/p\u003e\n"]]],["This describes updating messages in Google Chat using either `patch` or `put` requests, recommending `patch`. The `PUT` request uses the format `https://chat.googleapis.com/v1/{message.name=spaces/*/messages/*}`. Updating requires specifying the `message.name` path parameter and the `updateMask` query parameter to identify fields to modify. Optional `allowMissing` creates a new message if one is not found. The request and response body are `Message` instances. Authorization requires specific OAuth scopes. App authentication can update messages from the calling app only.\n"],null,[]]