-
Notifications
You must be signed in to change notification settings - Fork 0
Message
A message is an individual chat or DM message sent within a Whop channel. The SDK supports creating, listing, reading, updating, and deleting messages.
$client->messages // Matchable\Whop\Resource\MessageResource| HTTP | POST messages |
| Does | Creates (sends) a new message. |
| Parameters |
$data — message attributes (e.g. channel ID, content). |
| Returns | array |
| HTTP | GET messages |
| Does | Lists messages. |
| Parameters |
$query — optional filters / pagination (e.g. by channel). |
| Returns | array |
| HTTP | GET messages/{id} |
| Does | Retrieves a single message by ID. |
| Parameters |
$id — the message ID. |
| Returns | array |
| HTTP | PATCH messages/{id} |
| Does | Updates (edits) a message. |
| Parameters |
$id — the message ID; $data — fields to change. |
| Returns | array |
| HTTP | DELETE messages/{id} |
| Does | Deletes a message. |
| Parameters |
$id — the message ID. |
| Returns | array |
$message = $client->messages->create([
'channel_id' => 'chan_...',
'content' => 'Hello from the SDK',
]);
$client->messages->update($message['id'], ['content' => 'Edited content']);
$client->messages->delete($message['id']);Official Whop documentation: https://docs.whop.com
Core Company · AccountLink · File · AccessToken · AuthorizedUser · User · Member · Webhook
Payments & Billing Payment · Checkout · Plan · Product · Membership · Refund · Invoice · PromoCode · PaymentMethod · SetupIntent
Platform & Finance Transfer · FeeMarkup · Topup · Withdrawal · LedgerAccount · PayoutAccount · PayoutMethod
Disputes Dispute · DisputeAlert · ResolutionCenter
Commerce Shipment · Lead · Entry · Review · Affiliate · Stats
Experiences & Courses Experience · Course · CourseChapter · CourseLesson · CourseLessonInteraction · CourseStudent
Communication ChatChannel · DmChannel · DmMember · Message · Reaction · Forum · ForumPost · SupportChannel · Notification
Advertising AdCampaign · AdGroup · Ad
Apps & AI App · AppBuild · AiChat · CompanyTokenTransaction
Verifications Verification