adjust doc for UTF-8 support

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2019-04-13 15:07:49 +02:00
parent c944292047
commit 9eddea5ce4
6 changed files with 8 additions and 8 deletions

View File

@ -4,7 +4,7 @@ A Telegram bot written in bash.
Depends on [tmux](http://github.com/tmux/tmux).
Uses [JSON.sh](http://github.com/dominictarr/JSON.sh).
For full UTF-8 support you need python on your system (optional).
For full UTF-8 support you need [python on your system](doc/4_expert.md#UTF-8-Support) (optional).
Written by Drew (@topkecleon), Daniil Gentili (@danogentili), and Kay M (@gnadelwartz).
@ -77,4 +77,4 @@ No - its not less (in)secure as any other Bot written in any other language. But
If you feel that there's something missing or if you found a bug, feel free to submit a pull request!
#### $$VERSION$$ v0.60-dev3-0-g2550aec
#### $$VERSION$$ v0.60-dev3-1-gc944292

View File

@ -70,5 +70,5 @@ git clone --recursive https://github.com/topkecleon/telegram-bot-bash
```
3. Change to directory ```telegram-bot.bash```, run ```./bashbot.sh init``` and follow the instructions. At this stage you are asked for your Bots token given by botfather.
#### $$VERSION$$ v0.60-dev3-0-g2550aec
#### $$VERSION$$ v0.60-dev3-1-gc944292

View File

@ -147,6 +147,6 @@ Allowed values: typing for text messages, upload_photo for photos, record_video
send_action "${CHAT[ID]}" "action"
```
#### $$VERSION$$ v0.60-dev3-0-g2550aec
#### $$VERSION$$ v0.60-dev3-1-gc944292

View File

@ -153,5 +153,5 @@ To send stickers through an *inline query*:
answer_inline_query "$iQUERY_ID" "cached_sticker" "identifier for the sticker"
```
#### $$VERSION$$ v0.60-dev3-0-g2550aec
#### $$VERSION$$ v0.60-dev3-1-gc944292

View File

@ -30,7 +30,7 @@ export 'LANGUAGE=den_US.UTF-8'
To display all availible locales on your system run ```locale -a | more```. [Gentoo Wiki](https://wiki.gentoo.org/wiki/UTF-8)
#### UTF-8 Support for Telegram JSON
#### UTF-8 Support
```UTF-8``` is a variable length encoding of Unicode. UTF-8 is recommended as the default encoding in JSON, XML and HTML, also Telegram make use of it.
The first 128 characters are regular ASCII, so it's a superset of and compatible with ASCII environments. The next 1,920 characters need
@ -99,5 +99,5 @@ An example crontab is provided in ```bashbot.cron```.
- if you run bashbot as an other user or a system service edit ```bashbot.cron``` to fit your needs and replace username```nobody``` with the username you want to run bashbot. copy the modified file to ```/etc/cron.d/bashbot```
#### $$VERSION$$ v0.60-dev3-0-g2550aec
#### $$VERSION$$ v0.60-dev3-1-gc944292

View File

@ -111,5 +111,5 @@ In bashbot.sh line 490:
```
As you can see there are only two warnings in bashbots scripts. The first is a hint you may use shell substitions instead of sed, but this is only possible for simple cases. The second warning is about an unused variable, this is true because in our examples CONTACT is not used but assigned in case you want to use it :-)
#### $$VERSION$$ v0.60-dev3-0-g2550aec
#### $$VERSION$$ v0.60-dev3-1-gc944292