Documentation
¶
Overview ¶
A simple SDK client for Matrix (ElementX). API documentation: https://spec.matrix.org/latest/client-server-api/
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SendTextMessageToRoom ¶
SendText posts an m.room.message event (m.text). Отправляет текстовое сообщение в комнату (m.room.message, msgtype m.text). REF: https://spec.matrix.org/latest/client-server-api/#put_matrixclientv3roomsroomidsendeventtypetxnid
type OptionsFunc ¶
type OptionsFunc func(*Options)
func WithAccessToken ¶
func WithAccessToken(accessToken string) OptionsFunc
func WithUserId ¶
func WithUserId(userId string) OptionsFunc
Click to show internal directories.
Click to hide internal directories.