send-message

command
v0.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2023 License: MIT Imports: 5 Imported by: 0

README

Message sending without websockets

POST https://web.tada.team/api/v4/teams/<team-uid>/chats/<chat-jid>/messages

{
    "type": "plain",
    "text": "hello world"
}

Sample response:

{
    "_time": "70ms",
    "ok": true,
    "result": {
        "content": {
            "text": "hello world",
            "type": "plain"
        },
        "push_text": "hello world",
        "from": "d-b09ad656-4cba-d004-957d-74c6fe7785a7",
        "to": "t-3d2c7835-2fb9-aed7-4d25-abbb056d12a3",
        "message_id": "be20fba3-478e-e81d-8eee-b40ce68a2a22",
        "created": "2020-09-29T15:32:13.939083Z",
        "gentime": 1601393533939084058,
        "chat_type": "task",
        "chat": "t-3d2c7835-4d25-2fb9-aed7-abbb056d12a3",
        "prev": "a43a869b-4a41-d734-87b5-709a8bf94f72",
        "is_last": true,
        "silently": true,
        "editable_until": "2020-09-30T15:32:13.939083Z",
        "num": 7
    }
}

Message fields description: https://github.com/tada-team/tdproto/blob/master/message.go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL