24 Commits

Author SHA1 Message Date
Alter-xyz
9c8638279e feat: Default skip telegraph account
It will print out the token in local terminal by default.

If Store_Token = True, it will store token in "token_key.json"

View my lite ver and try at <https://github.com/alterxyz/tg_bot_collections_lite>
2024-06-24 21:26:44 -04:00
Alter-xyz
e2ffd7fa57 feat: create telegraph account
- feat: create and store the telegraph token locally
 - check and use if there exist token in json
- feat: auto generate telegraph token for cohere.py and answer_it
- fix: optional delete other answer_it message and only leave a telegraph link messsage for clean view

Co-Authored-By: yihong <zouzou0208@gmail.com>
2024-06-23 09:14:19 -04:00
Alter-xyz
dbed5f08b3 feat: Cohere telegra.ph
- Enable Cohere web search
- Output the entire LLM message with its source link on Telegraph
2024-06-22 07:29:00 -04:00
yihong0618
90fd74c403 fix: command
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-06-20 15:18:29 +08:00
yihong0618
bd202851e0 fix: without command
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-06-15 15:55:16 +08:00
yihong0618
b9ed871d58 feat: answer it!
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2024-06-15 11:29:31 +08:00
F4ria
2abcc90a32 reduce code duplication and reuse image_to_data_uri 2024-04-17 14:03:26 +08:00
F4ria
f804005f5e support Claude and Yi handlers to extract and enrich text with URLs 2024-04-15 23:49:56 +08:00
F4ria
fdc9d00eb0 add a new optional argument split_text to the bot_reply_markdown function.
- The default is True, it is set to False when streaming output.
2024-04-11 16:47:16 +08:00
Y1.Zhao
14b075491e use black to format the code 2024-03-29 11:57:33 -04:00
Yi Zhao
f68f19e359 Update the MarketdownV2 message 2024-03-29 23:28:39 +08:00
Yi Zhao
790bd55517 Correct typo 2024-03-29 23:24:44 +08:00
Yi Zhao
98909312f2 Update the MarkdownV2 message 2024-03-29 23:01:34 +08:00
Yi Zhao
27444d6fa1 reply immediately and make users feel bots little resposible 2024-03-29 22:45:58 +08:00
Y1.Zhao
13090b6a42 Split to multiple reply if text length is more than 4000 bytes 2024-03-19 04:20:22 -04:00
yihong0618
d58575b428 fix: map location wrong decorator is pass
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2023-12-18 12:21:35 +08:00
yihong0618
e56b35cfd1 fix: markdown format 2023-12-17 22:56:54 +08:00
Frost Ming
3f2a768ede
fix: reuse function
Signed-off-by: Frost Ming <me@frostming.com>
2023-12-16 18:23:22 +08:00
Pagliacii
73a9c20bc7 chore: rename available_commands to list_available_commands 2023-12-16 14:37:41 +08:00
Pagliacii
d410f48db6 feat(argparse): show available commands as choices for disable_command option 2023-12-16 14:30:05 +08:00
Pagliacii
93fb98f7b5 feat: add --disable-command option to specify a command to disable 2023-12-15 22:23:10 +08:00
Frost Ming
33eb1bb197
fix bug
Signed-off-by: Frost Ming <me@frostming.com>
2023-12-15 14:08:22 +08:00
Frost Ming
7af312834c
add some comments
Signed-off-by: Frost Ming <me@frostming.com>
2023-12-15 14:05:49 +08:00
Frost Ming
7a46a22262
feat: Modularize handlers
Signed-off-by: Frost Ming <me@frostming.com>
2023-12-15 14:00:18 +08:00