Skip to content

Latest commit

 

History

History
258 lines (186 loc) · 13 KB

File metadata and controls

258 lines (186 loc) · 13 KB

Shared Types

from linq.types import (
    ChatHandle,
    LinkPartResponse,
    MediaPartResponse,
    Reaction,
    ReactionType,
    ServiceType,
    TextDecoration,
    TextPartResponse,
)

Chats

Types:

from linq.types import (
    Chat,
    LinkPart,
    MediaPart,
    MessageContent,
    TextPart,
    ChatCreateResponse,
    ChatUpdateResponse,
    ChatLeaveChatResponse,
    ChatSendVoicememoResponse,
)

Methods:

Participants

Types:

from linq.types.chats import ParticipantAddResponse, ParticipantRemoveResponse

Methods:

Typing

Methods:

  • client.chats.typing.start(chat_id) -> None
  • client.chats.typing.stop(chat_id) -> None

Messages

Types:

from linq.types.chats import SentMessage, MessageSendResponse

Methods:

Location

Types:

from linq.types.chats import GetChatLocationResponse, LocationRequestResponse

Methods:

Messages

Types:

from linq.types import (
    Message,
    MessageEffect,
    ReplyTo,
    MessageCreateResponse,
    MessageAddReactionResponse,
    MessageUpdateAppCardResponse,
)

Methods:

Attachments

Types:

from linq.types import SupportedContentType, AttachmentCreateResponse, AttachmentRetrieveResponse

Methods:

Phonenumbers

Types:

from linq.types import PhonenumberListResponse

Methods:

PhoneNumbers

Types:

from linq.types import PhoneNumberUpdateResponse, PhoneNumberListResponse

Methods:

AvailableNumber

Types:

from linq.types import AvailableNumberRetrieveResponse

Methods:

WebhookEvents

Types:

from linq.types import WebhookEventType, WebhookEventListResponse

Methods:

WebhookSubscriptions

Types:

from linq.types import (
    WebhookSubscription,
    WebhookSubscriptionCreateResponse,
    WebhookSubscriptionListResponse,
)

Methods:

Capability

Types:

from linq.types import HandleCheck, HandleCheckResponse

Methods:

Webhooks

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,
)

ContactCard

Types:

from linq.types import SetContactCard, ContactCardRetrieveResponse

Methods: