yihong0618/tg_bing_dalle là dự án tập trung tự động hoá trên GitHub với 407 sao, viết chủ yếu bằng Python. Telegram bing bot DALL-E 3
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
In any chat with the bot, send your message like prompt: something or /prompt something or @bot_name something.
You can also send your message like /quota or quota? or @bot_name quota? to get the limit.
Using /prompt_pro or prompt_pro: will make use of GPT to rewrite your prompt.
Using /prompt_gem or prompt_gem: will make use of gemini to rewrite your prompt.
You can also send image then use startsword, prompt:or prompt_gem to draw based on the picture
note if you want to use prompt_gem you need:
visit https://makersuite.google.com/app/apikey get the key
export GOOGLE_GEMINI_KEY=${the_key} or save in config.toml file
How to
How to make your own DALL-E 3 bing tg bot.
Method 1 (Run Python directly)
[!IMPORTANT]
This project requires openai-python which does not install on Python 3.12 due to a compatibility issue.
Read this first if you are new to code
Make sure your ip can open https://bing.com/create not jump cn.bing (can use GitHub to login)
Use https://bing.com/images/create create a new png, F12 in chrome to get cookie string as bing_cookie
Highly recommanded to use Edge or Chrome to get the cookie, and don't use incognito/privacy mode. We encountered errors when using cookie got by Firefox.
Get tg token, ask Google or ChatGPT, need get it from BotFather
pip install -r requirements.txt
python tg.py '${tg_token}' '${bing_cookie}'
you can also save your cookies to a new .cookies file in this directory, one cookie per line. then run python tg.py '${tg_token}'
You can provide multiple cookies, to increase the use limit. see:
usage: tg.py [-h] [-c CONFIG_FILE] tg_token bing_cookie [bing_cookie ...]
positional arguments:
tg_token tg token
bing_cookie bing cookie
options:
-h, --help show this help message and exit
-c CONFIG_FILE additional config file
Method 2 (Run from a shell script)
Or you can start with run.sh:
Save your tg token to a new .token file in this directory.
Save your cookies to a new .cookies file in this directory, one cookie per line.
If you are running it using Method 4 (Deploy to Fly.io), you need to add the option -e config_file='config.toml' to deploy.
flyctl deploy -e config_file='config.toml'
Gemini Enhance
To enable prompt_gemini, copy config.sample.toml to config.toml, and edit the file to setup your Gemini API.
@bot
To enable @bot_name ${prompts}, you can either disable privacy mode or add the bot as a Group Admin (not recommended for public groups).
Please note that this may decrease the efficiency of the bot since it will have to process all messages in the group, potentially overloading the server running it.
Recommend
lark version lark-dalle3-bot
Contribution
Any issue reports or PRs are welcome.
Any other bot type like slack/discord welcome
Before PR, use pip install -U black then black . first
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/yihong0618/tg_bing_dalle là nguồn chính thức.
yihong0618/tg_bing_dalle có bao nhiêu sao?
yihong0618/tg_bing_dalle có 407 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/yihong0618/tg_bing_dalle. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
yihong0618/tg_bing_dalle có những chủ đề gì?
GitHub topics của yihong0618/tg_bing_dalle: "dall-e", "telegram-bot". TopGit xếp repo vào nhóm Automation.
yihong0618/tg_bing_dalle có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho yihong0618/tg_bing_dalle. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
yihong0618/tg_bing_dalle còn đang phát triển không?
Commit gần nhất trên yihong0618/tg_bing_dalle là 2.5 năm trước (theo timestamp GitHub). Repo có 53 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
yihong0618/tg_bing_dalle dùng license gì?
yihong0618/tg_bing_dalle phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
yihong0618/tg_bing_dalle viết bằng ngôn ngữ gì?
yihong0618/tg_bing_dalle chủ yếu viết bằng Python. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về tg_bing_dalle?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về tg_bing_dalle.