mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-24 08:25:31 +00:00
add ability to send sms in emoji (#165)
This commit is contained in:
@@ -8,6 +8,7 @@ service Emoji {
|
||||
rpc Find(FindRequest) returns (FindResponse) {}
|
||||
rpc Flag(FlagRequest) returns (FlagResponse) {}
|
||||
rpc Print(PrintRequest) returns (PrintResponse) {}
|
||||
rpc Send(SendRequest) returns (SendResponse) {}
|
||||
}
|
||||
|
||||
// Find an emoji by its alias e.g :beer:
|
||||
@@ -43,3 +44,18 @@ message PrintResponse {
|
||||
// text with rendered emojis
|
||||
string text = 1;
|
||||
}
|
||||
|
||||
// Send an emoji to anyone via SMS
|
||||
message SendRequest {
|
||||
// who the message is from e.g Alice
|
||||
string from = 1;
|
||||
// phone number to send to (including international dialing code)
|
||||
string to = 2;
|
||||
// message to send including emoji aliases
|
||||
string message = 3;
|
||||
}
|
||||
|
||||
message SendResponse {
|
||||
// whether or not it succeeded
|
||||
bool success = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user