fix: send avatar bot to botfather

pull/114/head
Who? 2025-03-05 00:58:16 +07:00 committed by GitHub
parent 5c9cab926c
commit cd7ff2eba8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -72,7 +72,10 @@ class TokenObtainment(InlineUnit):
await fw_protect()
from .. import main
m = await conv.send_file(main.BASE_PATH / "assets" / "heroku-ava.png")
if "DOCKER" in os.environ():
m = await conv.send_file("https://raw.githubusercontent.com/coddrago/Heroku/refs/heads/master/assets/heroku-ava.png")
else:
m = await conv.send_file(main.BASE_PATH / "assets" / "heroku-ava.png")
r = await conv.get_response()
logger.debug(">> <Photo>")