33from __future__ import annotations
44
55from typing import Iterable
6+ from typing_extensions import Literal
67
78import httpx
89
@@ -90,6 +91,7 @@ def update(
9091 * ,
9192 account : str ,
9293 text : str ,
94+ block_banned_words : Literal ["strict_ban" , "risky" , "replace_soften" ] | Omit = omit ,
9395 giphy_id : str | Omit = omit ,
9496 locked_text : bool | Omit = omit ,
9597 media_files : SequenceNotStr [str ] | Omit = omit ,
@@ -111,6 +113,11 @@ def update(
111113 Args:
112114 text: The message text content
113115
116+ block_banned_words: Screen `text` for OnlyFans banned words and block the update if any are found
117+ (returns a 422 listing the offending words). `strict_ban` blocks all tiers,
118+ `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften
119+ only. Omit to disable screening.
120+
114121 giphy_id: The ID of the Giphy GIF to attach to the message. Get IDs from the Giphy listing
115122 endpoints (`/giphy/trending`, `/giphy/search`).
116123
@@ -149,6 +156,7 @@ def update(
149156 body = maybe_transform (
150157 {
151158 "text" : text ,
159+ "block_banned_words" : block_banned_words ,
152160 "giphy_id" : giphy_id ,
153161 "locked_text" : locked_text ,
154162 "media_files" : media_files ,
@@ -300,6 +308,7 @@ def send(
300308 account : str ,
301309 * ,
302310 text : str ,
311+ block_banned_words : Literal ["strict_ban" , "risky" , "replace_soften" ] | Omit = omit ,
303312 excluded_lists : SequenceNotStr [str ] | Omit = omit ,
304313 giphy_id : str | Omit = omit ,
305314 locked_text : bool | Omit = omit ,
@@ -329,6 +338,11 @@ def send(
329338 Args:
330339 text: The message text content
331340
341+ block_banned_words: Screen `text` for OnlyFans banned words and block the send if any are found
342+ (returns a 422 listing the offending words). `strict_ban` blocks all tiers,
343+ `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften
344+ only. Omit to disable screening.
345+
332346 excluded_lists: Array of user list IDs that the mass message will NOT be sent to.
333347
334348 giphy_id: The ID of the Giphy GIF to attach to the message. Get IDs from the Giphy listing
@@ -375,6 +389,7 @@ def send(
375389 body = maybe_transform (
376390 {
377391 "text" : text ,
392+ "block_banned_words" : block_banned_words ,
378393 "excluded_lists" : excluded_lists ,
379394 "giphy_id" : giphy_id ,
380395 "locked_text" : locked_text ,
@@ -460,6 +475,7 @@ async def update(
460475 * ,
461476 account : str ,
462477 text : str ,
478+ block_banned_words : Literal ["strict_ban" , "risky" , "replace_soften" ] | Omit = omit ,
463479 giphy_id : str | Omit = omit ,
464480 locked_text : bool | Omit = omit ,
465481 media_files : SequenceNotStr [str ] | Omit = omit ,
@@ -481,6 +497,11 @@ async def update(
481497 Args:
482498 text: The message text content
483499
500+ block_banned_words: Screen `text` for OnlyFans banned words and block the update if any are found
501+ (returns a 422 listing the offending words). `strict_ban` blocks all tiers,
502+ `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften
503+ only. Omit to disable screening.
504+
484505 giphy_id: The ID of the Giphy GIF to attach to the message. Get IDs from the Giphy listing
485506 endpoints (`/giphy/trending`, `/giphy/search`).
486507
@@ -519,6 +540,7 @@ async def update(
519540 body = await async_maybe_transform (
520541 {
521542 "text" : text ,
543+ "block_banned_words" : block_banned_words ,
522544 "giphy_id" : giphy_id ,
523545 "locked_text" : locked_text ,
524546 "media_files" : media_files ,
@@ -670,6 +692,7 @@ async def send(
670692 account : str ,
671693 * ,
672694 text : str ,
695+ block_banned_words : Literal ["strict_ban" , "risky" , "replace_soften" ] | Omit = omit ,
673696 excluded_lists : SequenceNotStr [str ] | Omit = omit ,
674697 giphy_id : str | Omit = omit ,
675698 locked_text : bool | Omit = omit ,
@@ -699,6 +722,11 @@ async def send(
699722 Args:
700723 text: The message text content
701724
725+ block_banned_words: Screen `text` for OnlyFans banned words and block the send if any are found
726+ (returns a 422 listing the offending words). `strict_ban` blocks all tiers,
727+ `risky` blocks Risky + Replace/soften, `replace_soften` blocks Replace/soften
728+ only. Omit to disable screening.
729+
702730 excluded_lists: Array of user list IDs that the mass message will NOT be sent to.
703731
704732 giphy_id: The ID of the Giphy GIF to attach to the message. Get IDs from the Giphy listing
@@ -745,6 +773,7 @@ async def send(
745773 body = await async_maybe_transform (
746774 {
747775 "text" : text ,
776+ "block_banned_words" : block_banned_words ,
748777 "excluded_lists" : excluded_lists ,
749778 "giphy_id" : giphy_id ,
750779 "locked_text" : locked_text ,
0 commit comments