Comments (3)
Hello! Sorry for taking so long to come to this. I'm curious as to why you're running multiple channels this way? Telepathy supports working with multiple channels at the same time, for example "$ telepathy -t CHANNELONE -t CHANNELTWO -t CHANNEL3 -c"
However, to address your issue directly, this seems to be a clash with multiple processes running at the same time, causing the .session file Telepathy runs on to crash. I'm working on alternative methods for this file (at the moment it's a sqlite database that cannot be opened more than once before being closed). There's a potential that a future update will fix this.
from telepathy-community.
Hi Jordan,
thank you for reply, i need to scrap over 200 channels(the list changes form time to time), thats why i use loop.
is there a know workaround? i can use? like for example:
subprocess.run('telepathy -t' + channel+' -f',shell=True)
?
from telepathy-community.
Hi there!
I would (and have in the past done) a shell script for this, like so:
#!/bin/bash
declare -a StringArray=("CHANNEL_ONE" "CHANNEL_TWO" "CHANNEL_THREE")
for val in ${StringArray[@]}; do
python3 /path/to/telepathy -t $val -c
done
Once you've put that in a file, make it executable with:
chmod +x FILENAME.sh
and then you can run it simply with:
./FILENAME.sh
You'll need to declare the full list in the string array, but I'm sure there's also a way to enumerate over a list in a file. This also works with throwing the bash script into a cron job if you want to automatically do this every x amount of days.
Let me know if you need anything else!
from telepathy-community.
Related Issues (20)
- Question: does Telepathy support viewing history? HOT 1
- Telepathy is not recognized as a command. HOT 2
- Upgrading version of telethon? HOT 2
- Hi guys, HOT 2
- Trouble fetching data from private group HOT 1
- Session SqlLite bug HOT 3
- Unable to login. Not asking for "Login code", error returned instead HOT 1
- Problem installing Telepathy HOT 1
- Problem Connecting Telepathy to Telegram
- Slow parsing
- Request to add for channel existence verification...
- UnboundLocalError: local variable 'c_replies' referenced before assignment HOT 1
- crashes at start on windows
- Need some help HOT 1
- forward option not working
- Token not sent to telegram from config menu HOT 2
- Installation problem HOT 1
- Wrong phone number
- An exception occurred. A wait of 61 seconds is required (caused by GetUsersRequest)
- channel link not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telepathy-community.