Commit Graph

84 Commits

Author SHA1 Message Date
Lonami Exo
07a7a8b404 Deprecate force_sms and sign_up
On the 10th of February, Telegram sent the following message to
those with an application registered on https://my.telegram.org.

--

Telegram API Update. Hello [REDACTED]. Thank you for contributing to the
open Telegram ecosystem by developing your app, [REDACTED].

Please note that due to recent updates to Telegram's handling of SMS and
the integration of new SMS providers like Firebase, we are changing the
way login codes are handled in third-party apps based on the Telegram API.

Starting on 18.02.2023, users logging into third-party apps will only be
able to receive login codes via Telegram. It will no longer be possible
to request an SMS to log into your app - just like when logging into
Telegram's own desktop and web clients.

Exactly like with the Telegram Desktop and Web apps, if a user doesn't
have a Telegram account yet, they will need to create one first using
an official mobile Telegram app.

We kindly ask you to update your app's login and signup interfaces to
reflect these changes before they go live on 18.02.2023 at 13:00 UTC.

This change will not significantly affect users since, according to our
research, the vast majority of third-party app users also use official
Telegram apps. In the coming months, we expect to offer new tools for
third-party developers that will help streamline the login process.
2023-02-26 10:40:53 +01:00
Lonami Exo
83bafa25e3 Stop using asyncio.get_event_loop()
It is deprecated in newer Python versions.
Closes #4013.
2023-01-11 21:02:29 +01:00
yumupdate
061a84bef2
Fix payment.py example (#4005) 2022-12-22 13:42:30 +01:00
Lonami Exo
e6ebe6b334 Replace mentions of master branch with v1 2022-09-20 17:08:53 +02:00
Lonami Exo
8b1bfcdf9c Bump to v1.25 2022-08-30 12:57:34 +02:00
painor
ad0307fda6
Add password support for quart example (#1732) 2021-03-15 22:25:06 +01:00
Lonami Exo
82d25a7e52 Fix payment example using the wrong line endings 2021-01-05 20:05:42 +01:00
Lonami Exo
3150726f32 Fix tiny documentation nits
Closes #1659.
2021-01-05 20:03:16 +01:00
Lonami Exo
d5e4398ace Adapt the rest of the library to layer 119 2020-10-01 12:22:55 +02:00
Lonami Exo
2c9d43d600 Move most of the code in assistant to the plugins repo
The assistant example will now simply be the "core" that initializes
the rest of plugins, allowing for more updates to the *bot* without
cluttering Telethon's git history.
2020-09-17 11:27:50 +02:00
Lonami Exo
1c3e7dda01 Avoid explicitly passing the loop to asyncio
This behaviour is deprecated and will be removed in future versions
of Python. Technically, it could be considered a bug (invalid usage
causing different behaviour from the expected one), and in practice
it should not break much code (because .get_event_loop() would likely
be the same event loop anyway).
2020-07-25 18:39:35 +02:00
apepenkov
165950169f
Add payment example (#1470) 2020-05-21 13:22:37 +02:00
Qwerty-Space
82943bd464 Replace hastbin with deldog (#1377)
Hopefully it's dead less often.
2020-01-22 12:29:04 +01:00
Lonami Exo
54c8771885 Properly handle #ot command in assistant.py for PMs 2020-01-19 13:33:30 +01:00
Phil Jones
e1355ae5d8 Improve Quart example (#1229) 2019-08-01 19:15:04 +02:00
Lonami Exo
2a7d4317bd Add quart-based example (#1207) 2019-06-27 13:55:54 +02:00
Lonami Exo
80f19bd1f0 Point to the new domains 2019-05-22 11:29:46 +02:00
Lonami Exo
5d41246e73 Support importing plugins in assistant when ran as module 2019-05-11 20:44:35 +02:00
Lonami Exo
560d4bed09 Move some parts of assistant to a different repo as plugins 2019-05-11 20:41:10 +02:00
Lonami Exo
7f88238d8f Update external links to the documentation 2019-05-09 14:09:22 +02:00
Lonami Exo
7523869875 Except IOError and not ConnectionError
PySocks' errors do not subclass ConnectionError so the library
was unnecessarily logging them as unexpected, when any IOError
was actually expected.
2019-03-28 09:54:35 +01:00
Lonami Exo
04ba2e1fc7 Revert disconnect() to be async again (#1133)
It's the only way to properly clean all background tasks,
which the library makes heavy use for in MTProto/Connection
send and receive loops.

Some parts of the code even relied on the fact that it was
asynchronous (it used to return a future so you could await
it and not be breaking).

It's automatically syncified to reduce the damage of being
a breaking change.
2019-03-21 12:21:00 +01:00
Lonami Exo
6db60627e6 Clearer error on send_file(chat, invalid type) 2019-02-19 16:41:51 +01:00
Lonami Exo
8f8ae9aee5 Update URLs in assistant and except message deletion errors 2019-02-12 10:48:02 +01:00
Lonami Exo
d892a537a7 Support get_peer on participants and clarify some strings 2019-01-07 16:13:37 +01:00
Lonami Exo
00c8aa847d Tidy examples and update licenses 2019-01-07 15:48:25 +01:00
Lonami Exo
f90dd76f4c New assistant command and check if hastebin is down 2018-11-15 17:54:51 +01:00
Lonami Exo
5beaf46e09 Add extra checks to the #haste command 2018-10-26 10:49:02 +02:00
Lonami Exo
0d8b15a109 Add #haste command to assistant and fix typo 2018-10-26 10:25:29 +02:00
Lonami Exo
2c61c50671 Save session on connect and fix some typos
The session is saved upon connecting with the hope to make
sure that the authorization key gets saved to disk before
the next run.
2018-10-24 16:39:59 +02:00
Lonami Exo
f51b56558d Document AUTH_KEY_DUPLICATED, better assistant UX 2018-10-19 19:32:17 +02:00
Lonami Exo
9cbc088b76 Make disconnect synchronous
This also fixes a bug when auto-reconnecting in MTProtoSender.
2018-10-16 11:56:17 +02:00
Lonami Exo
cca7055fcf Add inline mode to the assistant example 2018-10-12 13:33:55 +02:00
Lonami Exo
8c14259728 Update documentation with new sections 2018-10-06 20:20:11 +02:00
Lonami Exo
0e38ab412b Update examples to make them easier to run 2018-09-04 11:52:18 +02:00
Lonami Exo
a57e9ba2fb Fix-up 5aaa6ec missing comma 2018-09-03 18:14:00 +02:00
Tulir Asokan
5aaa6ec36e Add more commands/update strings in assistant (#981) 2018-09-03 18:10:57 +02:00
Lonami Exo
3a0b091210 Better chat history for the GUI 2018-08-28 16:37:55 +02:00
Lonami Exo
40650f93ce Display chat history and invalid characters on the GUI 2018-08-28 15:55:28 +02:00
Lonami Exo
a2bd5c09ff Document new MultiError (and better links on assistant) 2018-08-24 20:15:01 +02:00
Lonami Exo
7e1a17352d Add new commands to the asisstant and fix some bugs
Such as deleting messages from different groups or triggering
often on common questions such as "one?" -> "Docs for on".
2018-08-24 14:09:55 +02:00
Lonami Exo
a1837431b6 Fix 3.5 compatibility for the GUI example 2018-08-02 22:18:01 +02:00
Lonami Exo
a495f542ef Fix message deletion, replies and chat IDs on the GUI 2018-08-02 21:48:37 +02:00
Lonami Exo
da5914c4a0 Support editing, deleting and replying in the GUI 2018-08-02 21:25:49 +02:00
Lonami Exo
01ede081ff Create a simple example using Tkinter GUI 2018-08-02 20:24:17 +02:00
Lonami Exo
5017a9d1da Fix typos and add the URL_INVALID error 2018-07-14 10:43:24 +02:00
Lonami Exo
b834b6c16c Feature 'with client:' syntax in the examples 2018-06-27 10:03:26 +02:00
Lonami Exo
dbb81173fa Add an assistant bot example 2018-06-26 15:48:56 +02:00
Lonami Exo
026c0c4f9d Update examples to be async 2018-06-24 12:04:23 +02:00
Lonami Exo
e5ff534e2e Update examples 2018-05-24 10:58:42 +02:00