added option to react to messages

This commit is contained in:
2024-04-11 18:22:55 +02:00
parent d067ee702a
commit c4a7533315
5 changed files with 129 additions and 87 deletions

View File

@ -10,6 +10,8 @@ class ChatProps extends DataHolder {
GetChatResponse? _getChatResponse;
GetChatResponse get getChatResponse => _getChatResponse!;
int? referenceMessageId;
@override
List<ApiResponse?> properties() => [_getChatResponse];
@ -30,6 +32,11 @@ class ChatProps extends DataHolder {
);
}
void setReferenceMessageId(int? messageId) {
referenceMessageId = messageId;
run();
}
void setQueryToken(String token) {
_queryToken = token;
_getChatResponse = null;