Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sdfsdhgjkbmnmxc committed Sep 16, 2020
1 parent 0f0e2ca commit 44cd358
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ Simple client library.

## Examples

All examples have `-verbose` and `-server` options.

How to get server url, team uid and chat jid:

```https://demo.tada.team/dbd248d7-25c2-4e8f-a23a-99baf63223e9/chats/g-dce6f5fd-b741-40a6-aa9c-c0e928d9dac5```

* https://demo.tada.team — server url
* dbd248d7-25c2-4e8f-a23a-99baf63223e9 – team uid
* g-dce6f5fd-b741-40a6-aa9c-c0e928d9dac5 – chat jid

How to get bot token: type "/newbot <NAME>" command in @TadaBot direct chat.

### Server version

```
Expand All @@ -18,12 +30,6 @@ go run examples/serverinfo/main.go -verbose -server https://demo.tada.team
go run examples/message/main.go -team <team uid> -token <bot token> -chat <chat jid> -message <message text>
```

For example:

```https://demo.tada.team/dbd248d7-25c2-4e8f-a23a-99baf63223e9/chats/g-dce6f5fd-b741-40a6-aa9c-c0e928d9dac5```
### Contacts

* https://demo.tada.team — server url
* dbd248d7-25c2-4e8f-a23a-99baf63223e9 – team uid
* g-dce6f5fd-b741-40a6-aa9c-c0e928d9dac5 – chat jid

How to get bot token: type "/newbot <NAME>" command in @TadaBot direct chat
```go run examples/contacts/main.go -team <team uid> -token <bot token>```

0 comments on commit 44cd358

Please sign in to comment.