* init * bot framework done * here and ready for orm * might use sea-orm * orm done * use teloxide * ready to go? * 需要完成命令部分 * 需要完成:list_handler() * 查询用户名应当以@开头 * use rustls to avoid segfault? * postgresql ready * inline query done * list_handler * flattern code * test needed * ready to build * some bugs * almost done * ready to take off Co-authored-by: senset <dummy@dummy.d>
		
			
				
	
	
		
			44 lines
		
	
	
		
			784 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			784 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
# Say something bot - Reborn
 | 
						|
 | 
						|
A telegram bot to record someone's message by forwarding
 | 
						|
 | 
						|
```usage
 | 
						|
saysthbot-reborn 0.1.0
 | 
						|
A telegram bot to record someone's message by forwarding
 | 
						|
 | 
						|
USAGE:
 | 
						|
    saysthbot-reborn [OPTIONS] --tgbot-token <TGBOT_TOKEN>
 | 
						|
 | 
						|
OPTIONS:
 | 
						|
    -d, --database-uri <DATABASE_URI>
 | 
						|
            Database URI [env: DATABASE_URI=] [default:
 | 
						|
            sqlite:///saysthbot.db]
 | 
						|
 | 
						|
    -D, --debug
 | 
						|
            Enable debug mode
 | 
						|
 | 
						|
    -h, --help
 | 
						|
            Print help information
 | 
						|
 | 
						|
    -t, --tgbot-token <TGBOT_TOKEN>
 | 
						|
            Telegram bot token [env: TGBOT_TOKEN=]
 | 
						|
 | 
						|
    -V, --version
 | 
						|
            Print version information
 | 
						|
```
 | 
						|
 | 
						|
## build
 | 
						|
 | 
						|
You should use `nightly` build kit.
 | 
						|
 | 
						|
```bash
 | 
						|
rustup default nightly
 | 
						|
cargo build
 | 
						|
```
 | 
						|
 | 
						|
Or simply use docker.
 | 
						|
 | 
						|
```bash
 | 
						|
docker build -t bot .
 | 
						|
```
 |