This commit is contained in:
21
.drone.yml
Normal file
21
.drone.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
kind: pipeline
|
||||
type: ssh
|
||||
name: update
|
||||
|
||||
server:
|
||||
host: 188.242.77.16:9345
|
||||
user: ubuntu
|
||||
ssh_key:
|
||||
from_secret: SSH_KEY
|
||||
|
||||
clone:
|
||||
disable: true
|
||||
|
||||
steps:
|
||||
- name: fetch remote
|
||||
commands:
|
||||
- cd /home/ubuntu/politics-mark && git fetch --all && git reset --hard origin/master
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
0
data/.gitkeep
Normal file
0
data/.gitkeep
Normal file
@@ -23,7 +23,7 @@ def cleanup(msg):
|
||||
return msg
|
||||
|
||||
|
||||
with TelegramClient('session_name', api_id, api_hash) as client:
|
||||
with TelegramClient('bot', api_id, api_hash) as client:
|
||||
f = open("data/data.txt", "w")
|
||||
for message in client.iter_messages(chat):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user