-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle telegram messages without fetcher #99
Handle telegram messages without fetcher #99
Conversation
Hey, thanks for raising this. That's indeed a different thought process to solve even bigger problems. I'm grateful that you opened this pull request. My only concern is regarding the downgrading of the SDK constraints and the version of the Are these downgrades necessary, or can we proceed with the current versions? I was actually planning to migrate to Dart 3 in the very near future. |
@HeySreelal yes for my current use case , am stuck with dart older version, because that cloud function only support older dart sdk, I guess keeping older version is no harm for now |
I'm still kind of confused. This is actually a good feature to be added, but degrading the versions doesn't sounds good to me. Maybe I'll ask around the team and get back to you very soon. -- This one seems to support Dart 3 and |
@HeySreelal am using appwrite cloud functions, |
Hey, yeah yeah, that'd probably work. Thanks again :) |
Hey, just to update you. I've added that minor change and merged this with Televerse. Soon to be published to the pub.dev. Thanks again for opening this PR. Feel free to jump into our discussion on our Telegram Group |
This Pr adds capability to handle updates from telegram with our custom implementations
for example, from cloud functions , we cannot start longPolling or a webhook listener
so there we can only listen to cloud function's entry point method
so only option left is to get json data from that entry method and pass that into this library to handle it
and that's where this new api :
handleUpdate(Update)
is useful , so we can simply pass the update from this method instead of starting any fetcherAlso this Pr changed dart min sdk version to :
2.17.7
because that cloud function am talking about does not support upper dart sdk for now ( probably in future soon ), and for same reason also changed version of http libraryWhich i guess no harm for now, because http latest version uses Dart3 which makes it incompatible with older dart sdk's