Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
Adam Millerchip | dbc2a91b15 | |
Adam Millerchip | cc9e0386f0 |
|
@ -95,3 +95,9 @@ LineBot.APIClient.get("richmenu/list")
|
||||||
### Flex Message Update
|
### Flex Message Update
|
||||||
|
|
||||||
Recent additions to the Flex message API have not been added yet.
|
Recent additions to the Flex message API have not been added yet.
|
||||||
|
|
||||||
|
## Online Documentation
|
||||||
|
|
||||||
|
Documentation for this package is available online at [Hexdocs](https://hexdocs.pm/line_bot/) and interactively in iex via [`h/1`](https://hexdocs.pm/iex/IEx.Helpers.html#h/1), for example:
|
||||||
|
|
||||||
|
iex> h LineBot
|
||||||
|
|
|
@ -182,9 +182,7 @@ defmodule LineBotSample do
|
||||||
code
|
code
|
||||||
|> String.trim()
|
|> String.trim()
|
||||||
|> String.upcase()
|
|> String.upcase()
|
||||||
|> String.to_charlist()
|
|> (&for(<<cp::utf8 <- &1>>, into: "", do: <<cp + 0x1F1A5::utf8>>)).()
|
||||||
|> Enum.map(&(&1 + 0x1F1A5))
|
|
||||||
|> List.to_string()
|
|
||||||
|
|
||||||
log_and_reply(request_message, %Message.Text{text: code}, reply_token)
|
log_and_reply(request_message, %Message.Text{text: code}, reply_token)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue