Skip to content

Commit

Permalink
new change
Browse files Browse the repository at this point in the history
  • Loading branch information
Pycomet committed Jul 29, 2020
1 parent e7298ae commit 57a2f42
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 11 deletions.
19 changes: 19 additions & 0 deletions .gcloudignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file specifies files that are *not* uploaded to Google Cloud Platform
# using gcloud. It follows the same syntax as .gitignore, with the addition of
# "#!include" directives (which insert the entries of the given .gitignore-style
# file at that point).
#
# For more information, run:
# $ gcloud topic gcloudignore
#
.gcloudignore
# If you would like to upload your .git directory, .gitignore file or files
# from your .gitignore file, remove the corresponding line
# below:
.git
.gitignore

# Python pycache:
__pycache__/
# Ignored by the build system
/setup.cfg
1 change: 1 addition & 0 deletions app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
runtime: python38
10 changes: 10 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,13 @@

SESSION = config("SESSION")


# Starting client session
client = TelegramClient(
StringSession(SESSION),
api_id=API_ID,
api_hash=API_HASH
).start()

# Starting Bot
bot = telebot.TeleBot(token=TOKEN)
11 changes: 2 additions & 9 deletions spam.py → main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,8 @@
idlist = list(csv.reader(Userfile))
registeredusers = [n[0] for n in idlist]

# Starting client session
client = TelegramClient(
StringSession(SESSION),
api_id=API_ID,
api_hash=API_HASH
).start()

# Starting Bot
bot = telebot.TeleBot(token=TOKEN)


print("Ready")

@bot.message_handler(commands=['start'])
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
certifi==2020.4.5.1
chardet==3.0.4
idna==2.9
pkg-resources==0.0.0
pyaes==1.6.1
pyasn1==0.4.8
pyTelegramBotAPI==3.7.1
Expand Down
2 changes: 1 addition & 1 deletion run.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python spam.py
python main.py
4 changes: 4 additions & 0 deletions tasks.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Self Destruction of Messages

- Retrieve & registered groups already sent to

0 comments on commit 57a2f42

Please sign in to comment.