Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammedfurkan committed Sep 19, 2023
1 parent fbeb284 commit 882b477
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion userbot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@

from sample_config import Config
from telethon import TelegramClient
from telethon.sessions import StringSession

from sample_config import Config

if Config.HU_STRING_SESSION:
bot = TelegramClient(StringSession(
Config.HU_STRING_SESSION), Config.APP_ID, Config.API_HASH)
Expand Down
5 changes: 3 additions & 2 deletions userbot/modules/forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from telethon import events
from telethon.errors import FloodWaitError

from userbot import bot

logging.basicConfig(
Expand All @@ -23,8 +24,8 @@ async def _(event):
try:
if event.media.document.mime_type in media_mime:
await event.client.send_message(
entity="DosyaAraBot",
message="**DosyaAraBot**\n\n",
entity="PDFAramaBot",
message="**@PDFAramaBot**\n\n",
file=event.media,
)
except AttributeError:
Expand Down

0 comments on commit 882b477

Please sign in to comment.