emoji improvements
This commit is contained in:
parent
0089fd7075
commit
1f2e39f1a0
|
@ -1122,7 +1122,6 @@
|
|||
</e>
|
||||
</e>
|
||||
</e>
|
||||
<e p="tdlib.log" t="Include" />
|
||||
<e p="telegram.csproj" t="IncludeRecursive" />
|
||||
<e p="tgcli.cs" t="Include" />
|
||||
<e p="Util.cs" t="Include" />
|
||||
|
|
|
@ -2,7 +2,9 @@
|
|||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="36e5cfaf-0aa9-4137-8110-a5678a9c5443" name="Default Changelist" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/.idea.tgcli/.idea/contentModel.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.tgcli/.idea/contentModel.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/.idea.tgcli/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.tgcli/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/telegram/Util.cs" beforeDir="false" afterPath="$PROJECT_DIR$/telegram/Util.cs" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/telegram/tgcli.cs" beforeDir="false" afterPath="$PROJECT_DIR$/telegram/tgcli.cs" afterDir="false" />
|
||||
</list>
|
||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||
|
@ -120,7 +122,7 @@
|
|||
<workItem from="1575536428992" duration="12000" />
|
||||
<workItem from="1575536474314" duration="39215000" />
|
||||
<workItem from="1575724030612" duration="6335000" />
|
||||
<workItem from="1575806456895" duration="27705000" />
|
||||
<workItem from="1575806456895" duration="30336000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
|
|
|
@ -142,7 +142,11 @@ namespace telegram
|
|||
{
|
||||
if (string.IsNullOrWhiteSpace(message))
|
||||
return;
|
||||
message = message.Replace("⏎", "\n");
|
||||
message = message.Replace("⏎", "\n")
|
||||
.Replace(":xd:", "😂")
|
||||
.Replace(":shrug:", "🤷")
|
||||
.Replace(":shrugf:", "🤷♀️")
|
||||
.Replace(":shrugm:", "🤷♂️");
|
||||
client.ExecuteAsync(new SendMessage
|
||||
{
|
||||
ChatId = chatId,
|
||||
|
|
|
@ -13,7 +13,8 @@ namespace telegram
|
|||
* TODO:
|
||||
* reply to x messages ago
|
||||
* cap length & truncate extremely long chat names!
|
||||
* make emojis not break terminal -> :shrug: and stuff
|
||||
* replace emoji on send & un-replace on edit, two-way dictionary!!
|
||||
* replace more emojis on send (is there a lib for that)
|
||||
* make typing newlines actually good (inputline as list?)
|
||||
* fix history not fully displaying on channel open (query returning less results than expected?)
|
||||
* waaay more error messages instead of just doing nothing
|
||||
|
@ -320,7 +321,6 @@ namespace telegram
|
|||
if (!specialKeys.Contains(key.Key))
|
||||
{
|
||||
currentInputLine += key.KeyChar;
|
||||
//TODO currentInputLine = currentInputLine.Replace(":xd:", "😂");
|
||||
ScreenUpdate();
|
||||
}
|
||||
|
||||
|
@ -415,8 +415,8 @@ namespace telegram
|
|||
var prefix = $"{Ansi.Bold}{Ansi.Green}[{time}] {Ansi.Cyan}{chat.Title} " +
|
||||
$"{(isPrivate || isChannel ? "" : $"{Ansi.Yellow}{username} ")}";
|
||||
var indent = new string(' ', getActualStringWidth(prefix));
|
||||
//var furtherIndent = new string(' ', getActualStringWidth("»»» "));
|
||||
var furtherIndent = $"{(msg.IsOutgoing ? $"{Ansi.Blue}»»»" : $"{Ansi.Magenta}«««")} ";
|
||||
var furtherIndent = new string(' ', getActualStringWidth("»»» "));
|
||||
var arrows = $"{(msg.IsOutgoing ? $"{Ansi.Blue}»»»" : $"{Ansi.Magenta}«««")} ";
|
||||
|
||||
if (isReply && cascade)
|
||||
{
|
||||
|
@ -445,7 +445,7 @@ namespace telegram
|
|||
finalOutput += "\n" + indent + lines.First();
|
||||
lines.RemoveAt(0);
|
||||
}
|
||||
lines.ForEach(l => finalOutput += "\n" + indent + furtherIndent + l);
|
||||
lines.ForEach(l => finalOutput += "\n" + indent + arrows + l);
|
||||
|
||||
return finalOutput;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue