Comments (3)
First, thank you for using Telethon :P
I think that it is a good idea to provide different ways to store the sessions. Let me work on this: you can either provide a str
and so it loads the default Session
(or None
so it doesn't get saved), or you can provide a Session
super class (or an object with the same .save()
and .load()
methods, any would work). The implementation of this custom Session
object is then up to the user decision.
from telethon.
This is how it works: pass a Session
instance (or any other instance which subclasses it) and you're ready to go!
from telethon.
@XyLoNaMiyX Thanks!
from telethon.
Related Issues (20)
- unable to get all channel participants HOT 2
- Example bot from the documentation does not work HOT 3
- SendConfirmPhoneCodeRequest successful run but not code is received HOT 1
- incorrect operation of the event.MessageEdited HOT 2
- Is there a way to get accont's login email and 2fa email? HOT 2
- Memory continues to increase HOT 4
- Download speed slow even after installing cryptg HOT 2
- Missing MessagePeerReactions from recent_reactions after running iter_messages(). HOT 2
- How to set timeout between parallel requests to Telegram servers? HOT 1
- I am got Logoff on phone after closing running file HOT 1
- inject self_bot parameter in initialization or control the DIFF_LIMIT HOT 1
- send_read_acknowledge doesn't work for megagroup HOT 1
- The button and event type "KeyboardButtonRequestChat" does not exist! HOT 2
- get_participants only return part of members in megagroup HOT 2
- how to resolve an add emoji link HOT 1
- Trying to get client's channels HOT 1
- telethon.errors.rpcerrorlist.LimitInvalidError while iter_download HOT 3
- Self destructing photo, dont download. HOT 6
- Get audio or video-only stream from videos in downloader HOT 1
- events.Raw(UpdateBotInlineSend) works after 1 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 telethon.