Comments (1)
Empty message exception is not handled at main.py, You can use my code example to handle this exception.
First paste this line to line 3 in main.py
from pyrogram.errors import UserAlreadyParticipant, InviteHashExpired, UsernameNotOccupied, MessageEmpty
Then scroll down to line 113 and change the line by using my code example. Be careful about indentation and your problem will be solved.
try:
handle_private(message,chatid,msgid)
except MessageEmpty as e:
bot.send_message(message.chat.id,f"**Caught a message empty exception** : __{e}__", reply_to_message_id=message.id)
continue
except pyrogram.errors.exceptions.TelegramError as e:
bot.send_message(message.chat.id,f"**Caught a TelegramErrorException** : __{e}__", reply_to_message_id=message.id)
continue
from save-restricted-bot.
Related Issues (20)
- Issue in downloading files HOT 6
- Running main.py Error HOT 2
- how to save restricted data from Private Group HOT 1
- Not an issue HOT 2
- #Features Request HOT 3
- add timer in bulk mode. my 1 telegram account banned because of saving .
- struct.error: unpack requires a buffer of 271 bytes
- Error while saving files
- Help HOT 1
- bot cant copy Poll (multiple choice post)
- Error when running the bot HOT 1
- error R15
- Feature Request HOT 2
- #FeatureRequest HOT 2
- Little bit improvement 😕 HOT 3
- I need help to get ID from bot message HOT 4
- Error ❌
- Please add Cancel button and Logging
- #### ⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.
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 save-restricted-bot.