Collections of yihong0618's telegram bot
for yihong0618's channel: https://t.me/hyi0618
fake: ${message}
to generatetts: ${message}
to generatekling: ${message}
to generate images/kling_pro ${message}
to generate videosgemini: ${message}
to askclaude: ${message}
to askNote, if you are using third party service, you need to export ANTHROPIC_BASE_URL=${the_url}
to change the url.
yi: ${message}
to askgpt: ${message}
to askNote, if you are using third party service, you need to export OPENAI_API_BASE=${the_url}
to change the url.
llama_pro: ${message}
to askqwen_pro: ${message}
to askdify: ${message}
to askNote, currently its support dify Chatbot with instructions(System prompt) and different MODEL with its parameters.
cohere: ${message}
to askYou do not need to do anything.
But you may not be able to edit any generated post since you do not have the token.
Change "Store_Token" to "True" in "handlers/init.py" TelegraphAPI/_create_ph_account. It will store the token in "token_key.json".
Log in as ${Account} on this device
tph_token
is the token for telegra.ph APIDo not share the token with others, it's like a password.
docker build -t tg_bot_collections .
docker run -d --name tg_bot_collections -e GOOGLE_GEMINI_KEY='${GOOGLE_GEMINI_KEY}' -e TELEGRAM_BOT_TOKEN='${TELEGRAM_BOT_TOKEN}' --network host tg_bot_collections
docker run -d --name tg_bot_collections -e ANTHROPIC_API_KEY='${ANTHROPIC_API_KEY}' -e TELEGRAM_BOT_TOKEN='${TELEGRAM_BOT_TOKEN}' --network host tg_bot_collections
docker run -d --name tg_bot_collections -e YI_API_KEY='${YI_API_KEY}' -e YI_BASE_URL='${YI_BASE_URL}' -e TELEGRAM_BOT_TOKEN='${TELEGRAM_BOT_TOKEN}' --network host tg_bot_collections
docker run -d --name tg_bot_collections -e OPENAI_API_KEY='${CHATGPT_API_KEY}' -e TELEGRAM_BOT_TOKEN='${TELEGRAM_BOT_TOKEN}' --network host tg_bot_collections
Note, this may break your system config -> check this https://github.com/yihong0618/tg_bot_collections/issues/5
/gemini: ${message}
to askgemini: ${message}
and upload picture to ask with picture[!Note] If you don't want to use one of these command, you can use
--disable-command <command>
option to disable it. This option can be used multiple times.
pip install -U black
then black .
first