from linq.types import (
ChatHandle,
LinkPartResponse,
MediaPartResponse,
Reaction,
ReactionType,
ServiceType,
TextDecoration,
TextPartResponse,
)Types:
from linq.types import (
Chat,
LinkPart,
MediaPart,
MessageContent,
TextPart,
ChatCreateResponse,
ChatUpdateResponse,
ChatLeaveChatResponse,
ChatSendVoicememoResponse,
)Methods:
client.chats.create(**params) -> ChatCreateResponseclient.chats.retrieve(chat_id) -> Chatclient.chats.update(chat_id, **params) -> ChatUpdateResponseclient.chats.leave_chat(chat_id) -> ChatLeaveChatResponseclient.chats.list_chats(**params) -> SyncListChatsPagination[Chat]client.chats.mark_as_read(chat_id) -> Noneclient.chats.send_voicememo(chat_id, **params) -> ChatSendVoicememoResponseclient.chats.share_contact_card(chat_id) -> None
Types:
from linq.types.chats import ParticipantAddResponse, ParticipantRemoveResponseMethods:
client.chats.participants.add(chat_id, **params) -> ParticipantAddResponseclient.chats.participants.remove(chat_id, **params) -> ParticipantRemoveResponse
Methods:
Types:
from linq.types.chats import SentMessage, MessageSendResponseMethods:
client.chats.messages.list(chat_id, **params) -> SyncListMessagesPagination[Message]client.chats.messages.send(chat_id, **params) -> MessageSendResponse
Types:
from linq.types.chats import GetChatLocationResponse, LocationRequestResponseMethods:
client.chats.location.retrieve(chat_id) -> GetChatLocationResponseclient.chats.location.request(chat_id) -> LocationRequestResponse
Types:
from linq.types import (
Message,
MessageEffect,
ReplyTo,
MessageCreateResponse,
MessageAddReactionResponse,
MessageUpdateAppCardResponse,
)Methods:
client.messages.create(**params) -> MessageCreateResponseclient.messages.retrieve(message_id) -> Messageclient.messages.update(message_id, **params) -> Messageclient.messages.delete(message_id) -> Noneclient.messages.add_reaction(message_id, **params) -> MessageAddReactionResponseclient.messages.list_messages_thread(message_id, **params) -> SyncListMessagesPagination[Message]client.messages.update_app_card(message_id, **params) -> MessageUpdateAppCardResponse
Types:
from linq.types import SupportedContentType, AttachmentCreateResponse, AttachmentRetrieveResponseMethods:
client.attachments.create(**params) -> AttachmentCreateResponseclient.attachments.retrieve(attachment_id) -> AttachmentRetrieveResponseclient.attachments.delete(attachment_id) -> None
Types:
from linq.types import PhonenumberListResponseMethods:
client.phonenumbers.list() -> PhonenumberListResponse
Types:
from linq.types import PhoneNumberUpdateResponse, PhoneNumberListResponseMethods:
client.phone_numbers.update(phone_number_id, **params) -> PhoneNumberUpdateResponseclient.phone_numbers.list() -> PhoneNumberListResponse
Types:
from linq.types import AvailableNumberRetrieveResponseMethods:
client.available_number.retrieve(**params) -> AvailableNumberRetrieveResponse
Types:
from linq.types import WebhookEventType, WebhookEventListResponseMethods:
client.webhook_events.list() -> WebhookEventListResponse
Types:
from linq.types import (
WebhookSubscription,
WebhookSubscriptionCreateResponse,
WebhookSubscriptionListResponse,
)Methods:
client.webhook_subscriptions.create(**params) -> WebhookSubscriptionCreateResponseclient.webhook_subscriptions.retrieve(subscription_id) -> WebhookSubscriptionclient.webhook_subscriptions.update(subscription_id, **params) -> WebhookSubscriptionclient.webhook_subscriptions.list() -> WebhookSubscriptionListResponseclient.webhook_subscriptions.delete(subscription_id) -> None
Types:
from linq.types import HandleCheck, HandleCheckResponseMethods:
client.capability.check_i_message(**params) -> HandleCheckResponseclient.capability.check_RCS(**params) -> HandleCheckResponse
Types:
from linq.types import (
MessageEventV2,
MessagePayload,
ReactionEventBase,
SchemasMediaPartResponse,
SchemasMessageEffect,
SchemasTextPartResponse,
MessageSentWebhookEvent,
MessageReceivedWebhookEvent,
MessageReadWebhookEvent,
MessageDeliveredWebhookEvent,
MessageFailedWebhookEvent,
MessageEditedWebhookEvent,
ReactionAddedWebhookEvent,
ReactionRemovedWebhookEvent,
ParticipantAddedWebhookEvent,
ParticipantRemovedWebhookEvent,
ChatCreatedWebhookEvent,
ChatGroupNameUpdatedWebhookEvent,
ChatGroupIconUpdatedWebhookEvent,
ChatGroupNameUpdateFailedWebhookEvent,
ChatGroupIconUpdateFailedWebhookEvent,
ChatTypingIndicatorStartedWebhookEvent,
ChatTypingIndicatorStoppedWebhookEvent,
PhoneNumberStatusUpdatedWebhookEvent,
UnwrapWebhookEvent,
)Types:
from linq.types import SetContactCard, ContactCardRetrieveResponseMethods:
client.contact_card.create(**params) -> SetContactCardclient.contact_card.retrieve(**params) -> ContactCardRetrieveResponseclient.contact_card.update(**params) -> SetContactCard