forked from aykutalparslan/Ferrite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4524b26
commit 3f1a2f2
Showing
7 changed files
with
55 additions
and
15 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
Ferrite.Core/Execution/Functions/BaseLayer/Messages/SetTypingFunc.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Ferrite.Services; | ||
using Ferrite.TL; | ||
using Ferrite.TL.slim; | ||
|
||
namespace Ferrite.Core.Execution.Functions.BaseLayer.Messages; | ||
|
||
public class SetTypingFunc : ITLFunction | ||
{ | ||
private readonly IMessagesService _messages; | ||
|
||
public SetTypingFunc(IMessagesService messages) | ||
{ | ||
_messages = messages; | ||
} | ||
public async ValueTask<TLBytes?> Process(TLBytes q, TLExecutionContext ctx) | ||
{ | ||
var result = await _messages.SetTyping(ctx.AuthKeyId, q); | ||
return RpcResultGenerator.Generate(result, ctx.MessageId); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters