mirror of
https://github.com/MuRuLOSE/limoka.git
synced 2026-06-18 23:24:18 +02:00
Commited backup
This commit is contained in:
17
SekaiYoneya/Friendly-telegram/Pic.py
Normal file
17
SekaiYoneya/Friendly-telegram/Pic.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# @Sekai_Yoneya
|
||||
|
||||
from .. import loader
|
||||
from random import choice as Yoneya
|
||||
|
||||
|
||||
def register(cb):
|
||||
cb(PicPhotosMod())
|
||||
|
||||
class PicPhotosMod(loader.Module):
|
||||
"""Фотографии из @pic."""
|
||||
strings = {'name': 'Pic'}
|
||||
|
||||
async def gowcmd(self, event):
|
||||
await event.edit('<b>Бог Войны!</b>')
|
||||
reslt=await event.client.inline_query('pic',Yoneya(['Кратос убил Зевса']))
|
||||
await reslt[reslt.index(Yoneya(reslt))].click(event.to_id)
|
||||
Reference in New Issue
Block a user