(20241206) Everything will be called "client" now instead of "mailClient", "chatClient", etc.
This commit is contained in:
@@ -221,8 +221,9 @@ async def callback_test(
|
||||
# print("TG BOT:", json.to_string(client_response))
|
||||
client_response = await set_telegram_webhook(
|
||||
bot_token = inbound_data.auth.botToken,
|
||||
webhook_url = f"https://nexcom.ditscentre.in/chat/webhook/{inbound_data.auth.botToken}"
|
||||
webhook_url = f"https://api.thecaoffice.com/converse/chat/webhook/{inbound_data.auth.botToken}"
|
||||
)
|
||||
print("WEBHOOK JSON:", json.to_string(client_response))
|
||||
|
||||
return "ok"
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ class ChatAuthRequestHeaders(BaseModel):
|
||||
|
||||
class ChatAuthRequestData(BaseModel):
|
||||
|
||||
chatClient: Literal["telegram", "whatsapp"]
|
||||
chatClient: Literal["telegram", "whatsapp"] = Field(alias = "client")
|
||||
auth: Union[TelegramAuth]
|
||||
|
||||
# ┏┓ ┏•
|
||||
|
||||
@@ -100,7 +100,8 @@ class OAuthMailAuthorizationRequestData(BaseModel):
|
||||
|
||||
mailClient: Literal["gmail"] = Field(
|
||||
description = "the e-mail provider like 'gmail'",
|
||||
frozen = True
|
||||
frozen = True,
|
||||
alias = "client"
|
||||
)
|
||||
|
||||
mailId: str = Field(
|
||||
|
||||
@@ -172,7 +172,7 @@ class SMSAuthRequestHeaders(BaseModel):
|
||||
|
||||
class SMSAuthRequestData(BaseModel):
|
||||
|
||||
smsClient: Literal["nimbusSmsIndia", "savvyBulkSmsKenya"]
|
||||
smsClient: Literal["nimbusSmsIndia", "savvyBulkSmsKenya"] = Field(alias = "client")
|
||||
auth: Union[NimbusSMSIndiaAuth, SavvyBulkSMSKenyaAuth]
|
||||
|
||||
# ┏┓ ┏•
|
||||
|
||||
Reference in New Issue
Block a user