forked from uniborg/uniborg
add short descriptions to kbass plugins
This commit is contained in:
parent
4f05e252be
commit
b0b2b65ca4
|
@ -1,3 +1,6 @@
|
|||
"""
|
||||
Contains code used by other kbass_* plugins
|
||||
"""
|
||||
from uniborg import util
|
||||
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
"""
|
||||
Reply to a message with .e to make a draft of it (with '\n.e' appended)
|
||||
Reply to your own message with <text>.e to edit the message to <text>
|
||||
if <text> is ".", the message is edited to empty/deleted
|
||||
"""
|
||||
import asyncio
|
||||
|
||||
from telethon.errors import MessageEmptyError
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
"""
|
||||
Reply to a file with .f to send it as a photo
|
||||
"""
|
||||
from io import BytesIO
|
||||
|
||||
from stdplugins.kbass_core import self_reply_cmd
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
"""
|
||||
Reply to a message with .s <n> to forward <n> messages from that point to your
|
||||
saved messages (negative values of <n> go backwards in history)
|
||||
"""
|
||||
import asyncio
|
||||
|
||||
from stdplugins.kbass_core import self_reply_selector
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
"""
|
||||
Reply to a message with .p <y/n> to toggle the webpage preview of a message
|
||||
"""
|
||||
from telethon.errors import MessageNotModifiedError
|
||||
from telethon.tl.functions.messages import EditMessageRequest
|
||||
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
"""
|
||||
Like save but makes a draft in your chat of all the messages concatenated with
|
||||
two newlines
|
||||
"""
|
||||
import html
|
||||
|
||||
from telethon.tl.functions.messages import SaveDraftRequest
|
||||
|
|
Loading…
Reference in New Issue