python - 使用 MQL4 代码将表情符号发送到 Telegram
问题描述
在我的 MQL4 代码中,我可以轻松地将纯文本从 mt4 发送到电报。但是,我很难将电报表情符号添加到我的代码中,以便它在电报中输出。我搜索了高低,我发现的所有这些都是使用 php 和/或 python 的示例。尝试使用纯 unicode 和字节,但没有奏效。请参阅下面的代码
if(selSig==1)
{
string msg=StringFormat("u'\U00002757' The New Signal\n --------- \nSymbol: %s\nTimeframe:
%s\nType: Sell\nPrice: %s\nTake Profit: %s\nStop Loss: %s\nTime: %s",
_Symbol,
func_timeFrameToString(_Period),
DoubleToString(sigEntry,_Digits),
DoubleToString(sigTp,_Digits),
DoubleToString(sigSl,_Digits),
TimeToString(time[0]));
int res=bot.SendMessage(InpChannelName,msg);
Print(msg);
if(res!=0)
Print("Error: ",GetErrorDescription(res));
}
}
任何帮助链接或线程任何将不胜感激。
解决方案
推荐阅读
- node.js - mongoose 或 mongoDB 如何分离和分组我的数据?
- apache - Apache、ping 等工作时无法通过 cURL 连接到本地虚拟主机(错误 7)
- c - 不在数据部分的初始化数据在STM32中被初始化,它不应该
- uwp - 我无法选择使用列表填充的网格项
- java - 当 Firebase 包含列表时应用程序崩溃
- wordpress - 在 WordPress 函数中使用 if 模板等于
- json - 角 HTTP GET
- python - 如何在 Python 中插入表格数据?
- angular - 角度形式变化检测
- java - 如何使用 chartAt() 和数组技术将两个字符串合并为一个