new_releases আপডেট : নতুন বৈশিষ্ট্য এবং পণ্য আপডেটের জন্য
রিলিজ নোট চেক করুন।
ServerEvent
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি ইভেন্ট যা সার্ভার সাইডে ঘটেছে যা একটি এজেন্ট এবং একটি ব্যবহারকারীর মধ্যে কথোপকথনের সাথে সম্পর্কিত৷
উদাহরণস্বরূপ, যদি বট বার্তাটির জন্য একটি TTL সেট করে এবং TTL মেয়াদ শেষ হয়ে যায়, তাহলে এই ইভেন্টটি অংশীদারকে জানানো হবে যে বট বার্তার সময় শেষ হয়ে গেছে।
সার্ভার ইভেন্ট "বার্তা" বস্তুর "ডেটা" ক্ষেত্রে উপস্থিত হয় যা এজেন্ট তার পাব/সাবস্ক্রিপশন থেকে গ্রহণ করে। "ডেটা" ক্ষেত্র হল একটি বেস64-এনকোডেড স্ট্রিং যা এজেন্টকে অবশ্যই সার্ভার ইভেন্ট কাঠামোর সাথে মেলে ডিকোড করতে হবে।
JSON প্রতিনিধিত্ব |
---|
{
"phoneNumber": string,
"agentId": string,
"messageId": string,
"eventType": enum (ServerEvent.EventType ),
"eventId": string,
"sendTime": string
} |
ক্ষেত্র |
---|
phoneNumber | string ইভেন্টে জড়িত ব্যবহারকারীর ফোন নম্বর (E.164 ফর্ম্যাটে)। |
agentId | string এজেন্টের অনন্য শনাক্তকারী। RCS বিজনেস মেসেজিং দ্বারা সেট করা হয়েছে। |
messageId | string ইভেন্টের সাথে যুক্ত মেসেজের RCS মেসেজ আইডি। |
eventType | enum ( ServerEvent.EventType ) অনুষ্ঠানের ধরন। |
eventId | string ইভেন্ট উদাহরণের জন্য একটি অনন্য ইভেন্ট আইডি বরাদ্দ করা হয়েছে। |
sendTime | string ( Timestamp format) যে সময়ে সার্ভার ইভেন্ট পাঠায়। RFC 3339 ব্যবহার করে, যেখানে উৎপন্ন আউটপুট সর্বদা Z-সাধারণ করা হবে এবং 0, 3, 6 বা 9 ভগ্নাংশ সংখ্যা ব্যবহার করবে। "Z" ব্যতীত অন্যান্য অফসেটগুলিও গ্রহণ করা হয়। উদাহরণ: "2014-10-02T15:01:23Z" , "2014-10-02T15:01:23.045123456Z" বা "2014-10-02T15:01:23+05:30" |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-22 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-22 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eServerEvents are notifications about occurrences related to conversations between agents and users, such as when a bot message's TTL expires.\u003c/p\u003e\n"],["\u003cp\u003eThese events are delivered within the "data" field of a "message" object in a Pub/Sub subscription, requiring base64 decoding by the agent.\u003c/p\u003e\n"],["\u003cp\u003eEach ServerEvent contains fields such as \u003ccode\u003ephoneNumber\u003c/code\u003e, \u003ccode\u003eagentId\u003c/code\u003e, \u003ccode\u003emessageId\u003c/code\u003e, \u003ccode\u003eeventType\u003c/code\u003e, \u003ccode\u003eeventId\u003c/code\u003e, and \u003ccode\u003esendTime\u003c/code\u003e to provide specific context.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eeventType\u003c/code\u003e field specifies the type of the event, while \u003ccode\u003esendTime\u003c/code\u003e indicates the server's event dispatch time in RFC 3339 format.\u003c/p\u003e\n"],["\u003cp\u003eThe information is structured in a JSON format that contains information regarding the server event and it's corresponding data.\u003c/p\u003e\n"]]],[],null,["# ServerEvent\n\nAn event that occurred server side that is related to a conversation between an agent and a user.\n\nFor example, if the bot sets a TTL for the message and the TTL expires, this event will be fired to notify the partner that the bot message timed out.\n\nThe ServerEvent appears in the \"data\" field of the \"message\" object that the agent receives from its Pub/Sub subscription. The \"data\" field is a base64-encoded string that the agent must decode to match the ServerEvent structure.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"phoneNumber\": string, \"agentId\": string, \"messageId\": string, \"eventType\": enum (/business-communications/rcs-business-messaging/reference/rest/v1/ServerEvent.EventType), \"eventId\": string, \"sendTime\": string } ``` |\n\n| Fields ||\n|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `phoneNumber` | `string` Phone number (in E.164 format) of the user involved in the event. |\n| `agentId` | `string` The agent's unique identifier. Set by RCS Business Messaging. |\n| `messageId` | `string` The RCS message ID of the message that is associated with the event. |\n| `eventType` | `enum (`[ServerEvent.EventType](/business-communications/rcs-business-messaging/reference/rest/v1/ServerEvent.EventType)`)` Type of the event. |\n| `eventId` | `string` A unique event ID assigned for the event instance. |\n| `sendTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Time at which the server sends the event. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than \"Z\" are also accepted. Examples: `\"2014-10-02T15:01:23Z\"`, `\"2014-10-02T15:01:23.045123456Z\"` or `\"2014-10-02T15:01:23+05:30\"`. |"]]