Method: spaces.messages.delete
একটি বার্তা মুছে দেয়। একটি উদাহরণের জন্য, একটি বার্তা মুছুন দেখুন।
নিম্নলিখিত ধরনের প্রমাণীকরণ সমর্থন করে:
অ্যাপ প্রমাণীকরণ ব্যবহার করার সময়, অনুরোধ শুধুমাত্র কলিং চ্যাট অ্যাপ দ্বারা তৈরি বার্তাগুলি মুছে ফেলতে পারে।
HTTP অনুরোধ
DELETE https://chat.googleapis.com/v1/{name=spaces/*/messages/*}
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
name | string প্রয়োজন। বার্তার সম্পদের নাম। বিন্যাস: spaces/{space}/messages/{message} আপনি যদি আপনার বার্তার জন্য একটি কাস্টম আইডি সেট করে থাকেন, তাহলে আপনি {message} এর জন্য clientAssignedMessageId ফিল্ড থেকে মানটি ব্যবহার করতে পারেন। বিস্তারিত জানার জন্য, একটি বার্তার নাম দেখুন। |
শরীরের অনুরোধ
অনুরোধের বডি খালি হতে হবে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডি একটি খালি JSON অবজেক্ট।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:
-
https://www.googleapis.com/auth/chat.bot
-
https://www.googleapis.com/auth/chat.import
-
https://www.googleapis.com/auth/chat.messages
আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-01-22 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-01-22 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["This method enables you to delete messages and optionally their replies using an HTTP DELETE request."],["It supports both app and user authentication, with app authentication limiting deletion to messages created by the app."],["You can specify whether to force delete threaded replies with the `force` query parameter when using user authentication."],["The request requires specifying the message's resource name in the URL path and an empty request body."],["Authorization is required using one of the specified OAuth scopes."]]],["This document details how to delete a message using the Chat API. The `DELETE` request targets a specific message's resource name in the format `spaces/*/messages/*`. It supports both app and user authentication, with different limitations for each. The request requires a message's name as a path parameter. A `force` query parameter is optional for user authentication to delete threaded replies. The request body is empty, and a successful response returns an empty JSON object. One of three specified OAuth scopes is required.\n"]]