Comments (4)
Hey, I'm somewhat busy at the moment so I might not be able to look at this in at least another week. I'll have a look eventually but wanted to let you know about that now in case you were waiting for me.
from django-tgbot.
I solved it, but not with get_file
First , I recive the file path from telegram with the file id
Two, make url and download
But I think it's better if you add this feuther to library
Thank you ❤️
from django-tgbot.
Hello. It is very strange. My code stopped after a while. I get the following error:
image = update.get_message().get_photo()
AttributeError: 'Message' object has no attribute 'get_photo'
my code :
processor(state_manager, from_states='submit-signal-image' ,fail=state_types.Keep)
def submit_signal_taeed_adad(bot: TelegramBot, update: Update, state: TelegramState):
image = update.get_message().get_photo()
fileid= image[-1].file_id
Do you know where the problem is?
from django-tgbot.
Hi, sorry for getting back to you so late. I saw you already opened a PR for this so this shouldn't be a problem anymore but for anyone who reads this in future, if there are any attributes on any types that you think exist on the object but .get_<attr_name>
isn't implemented, you can just use .<attr_name>
directly.
from django-tgbot.
Related Issues (11)
- 'NoneType' object has no attribute 'get_id'
- Send message once after state change HOT 4
- get_id AttributeError HOT 2
- Please consider web app future? HOT 2
- Could bots be in a custom module? HOT 2
- How to handle callbacks for InlineKeyboardButtons HOT 1
- Forward a message to a channel and reply to that message HOT 2
- dependencies reference nonexistent parent node ('botdevtestbot' HOT 1
- pip install django-tgbot in host HOT 1
- What about type Command? HOT 2
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 django-tgbot.