mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-16 19:41:07 +03:00
Mention add_event_handler in the docs and fix small nit
This commit is contained in:
parent
dc07d65075
commit
6f820cce97
|
@ -140,6 +140,20 @@ random number, while if you say ``'eval 4+4'``, you will reply with the
|
||||||
solution. Try it!
|
solution. Try it!
|
||||||
|
|
||||||
|
|
||||||
|
Events without decorators
|
||||||
|
*************************
|
||||||
|
|
||||||
|
If for any reason you can't use the ``@client.on`` syntax, don't worry.
|
||||||
|
You can call ``client.add_event_handler(callback, event)`` to achieve
|
||||||
|
the same effect.
|
||||||
|
|
||||||
|
Similar to that method, you also have :meth:`client.remove_event_handler`
|
||||||
|
and :meth:`client.list_event_handlers` which do as they names indicate.
|
||||||
|
|
||||||
|
The ``event`` type is optional in all methods and defaults to ``events.Raw``
|
||||||
|
for adding, and ``None`` when removing (so all callbacks would be removed).
|
||||||
|
|
||||||
|
|
||||||
Stopping propagation of Updates
|
Stopping propagation of Updates
|
||||||
*******************************
|
*******************************
|
||||||
|
|
||||||
|
|
|
@ -38,9 +38,9 @@ Kotlin
|
||||||
******
|
******
|
||||||
|
|
||||||
`Kotlogram <https://github.com/badoualy/kotlogram>`__ is a Telegram
|
`Kotlogram <https://github.com/badoualy/kotlogram>`__ is a Telegram
|
||||||
implementation written in Kotlin (the now
|
implementation written in Kotlin (one of the
|
||||||
`official <https://blog.jetbrains.com/kotlin/2017/05/kotlin-on-android-now-official/>`__
|
`official <https://blog.jetbrains.com/kotlin/2017/05/kotlin-on-android-now-official/>`__
|
||||||
language for
|
languages for
|
||||||
`Android <https://developer.android.com/kotlin/index.html>`__) by
|
`Android <https://developer.android.com/kotlin/index.html>`__) by
|
||||||
`@badoualy <https://github.com/badoualy>`__, currently as a beta–
|
`@badoualy <https://github.com/badoualy>`__, currently as a beta–
|
||||||
yet working.
|
yet working.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user