একটি বার্তা আপডেট করে। 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"]],["2024-11-16 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["Updates a Google Chat message using the `PATCH` method, preferably over the `update` method which uses `PUT`."],["Supports both app and user authentication, with app authentication limited to updating messages created by the calling Chat app."],["Requires specifying the message to update using its resource name in the URL path and the fields to update using the `updateMask` query parameter."],["Allows creation of a new message if the original is not found when `allowMissing` query parameter is set to `true` and a client-assigned message ID is provided."],["Requires authorization with one of the specified OAuth scopes (`chat.bot`, `chat.import`, or `chat.messages`)."]]],["This documentation outlines how to update a message using the `PATCH` method via an HTTP request to `https://chat.googleapis.com/v1/{message.name=spaces/*/messages/*}`. The `message.name` path parameter is required, specifying the message's resource name. The `updateMask` query parameter is mandatory, indicating which fields to update (e.g., text, attachments). Optionally, `allowMissing` creates a new message if one isn't found. The request and response bodies utilize the `Message` resource, and app or user authentication are supported, with specific authentication impacting permissions.\n"]]