update readme.md
This commit is contained in:
parent
e93df31dad
commit
7d93aa7b3a
@ -144,6 +144,14 @@ bot.Block()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#### 发送Emoji表情
|
||||||
|
|
||||||
|
```go
|
||||||
|
friend.SendText(openwechat.Emoji.Dagger)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### 搜索好友
|
#### 搜索好友
|
||||||
|
|
||||||
```go
|
```go
|
||||||
|
25
doc.md
25
doc.md
@ -345,6 +345,31 @@ go get github.com/eatMoreApple/openwechat
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Emoji
|
||||||
|
|
||||||
|
可支持发送emoji表情,所有的`emoji`表情维护在`openwechat.Emoji`这个匿名结构体里面
|
||||||
|
|
||||||
|
```go
|
||||||
|
friend.SendText(openwechat.Emoji.Hungry)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
昵称格式化
|
||||||
|
|
||||||
|
* `FormatEmoji`:该方法可以格式化带有`emoji`表情的用户昵称
|
||||||
|
|
||||||
|
```go
|
||||||
|
func FormatEmoji(text string) string
|
||||||
|
|
||||||
|
// 多吃点苹果<span class="emoji emoji1f34f"></span> => 多吃点苹果🍏
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user