Skip to content

Commit

Permalink
Fix echo and setpic
Browse files Browse the repository at this point in the history
  • Loading branch information
New-dev0 committed Dec 11, 2023
1 parent b905532 commit 7b7cb6d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/_chatactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ async def chatBot_replies(e):
return
if check_echo(e.chat_id, e.sender_id):
try:
await e.respond(e)
await e.respond(e.message)
except Exception as er:
LOGS.exception(er)
key = udB.get_key("CHATBOT_USERS") or {}
Expand Down
2 changes: 1 addition & 1 deletion plugins/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async def _(ult):
file = await ult.client.upload_file(replfile)
try:
if "pic" in mediainfo(reply_message.media):
await ult.client(UploadProfilePhotoRequest(file))
await ult.client(UploadProfilePhotoRequest(file=file))
else:
await ult.client(UploadProfilePhotoRequest(video=file))
await eod(ok, "`My Profile Photo has Successfully Changed !`")
Expand Down
2 changes: 1 addition & 1 deletion pyUltroid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class ULTConfig:
if USER_MODE:
asst = ultroid_bot
else:
asst = UltroidClient(None, bot_token=udB.get_key("BOT_TOKEN"), udB=udB)
asst = UltroidClient("asst", bot_token=udB.get_key("BOT_TOKEN"), udB=udB)

if BOT_MODE:
ultroid_bot = asst
Expand Down
2 changes: 1 addition & 1 deletion resources/startup/optional-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pytz
qrcode
requests
tabulate
git+https://github.com/xditya/telegraph.git@41fd800#egg=telegraph
telegraph
tgcrypto
youtube-search-python
yt-dlp
Expand Down

0 comments on commit 7b7cb6d

Please sign in to comment.