- Namespace
- OpenTl
.ClientApi .Services .Interfaces
graph TD
Type["IMessagesService"]
class Type type-node
Syntax
public interface IMessagesService
Methods
| Name | Value | Summary |
|---|---|---|
| AddChatUserAsync |
Task |
Adds a user to a chat and sends a service message on it.
|
| CreateChatAsync |
Task |
Creates a new chat.
|
| DeleteChatUser |
Task |
Deletes a user from a chat and sends a service message on it.
|
| DeleteHistoryAsync |
Task |
Deletes communication history.
|
| DeleteMessagesAsync |
Task |
Deletes messages by their IDs.
|
| EditChatPhoto |
Task |
Changes chat photo and sends a service message on it.
|
| EditChatTitle |
Task |
Chanages chat name and sends a service message on it.
|
| ForwardMessagesAsync |
Task |
Forwards messages by their IDs.
|
| GetChatsAsync |
Task |
Returns chat basic info on their IDs.
|
| GetFullChatAsync |
Task |
Returns full chat info according to its ID.
|
| GetHistoryAsync |
Task |
Returns messages from the history of a single conversation
|
| GetMessagesAsync |
Task |
Returns the list of messages by their IDs.
|
| GetUserDialogsAsync |
Task |
Returns a list of the current user’s conversations
|
| ReadHistoryAsync |
Task |
Marks message history as read.
|
| Read |
Task |
Notifies the sender about the recipient having listened a voice message or watched a video.
|
| Received |
Task |
Confirms that a client has received messages and cancels push notifications
|
| SendMediaAsync |
Task |
Sends a non-text message.
|
| SendMessageAsync |
Task |
Sends a text message.
|
| SendTypingAsync |
Task |
Transmits the current user typing event to the conversation partner or group
|
| Send |
Task |
Sends a document with
|
| Send |
Task |
Sends a photo to user or chat
|