Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zbab #360

Closed
leworgbey opened this issue Aug 29, 2021 · 0 comments
Closed

zbab #360

leworgbey opened this issue Aug 29, 2021 · 0 comments

Comments

@leworgbey
Copy link

@leworgbey

from telethon import events

import asyncio

from userbot.events import register

@register(outgoing=True, pattern=".komik")

async def merkurkedissa(event):

if event.fwd_from:

    return

animation_interval = 0.5

animation_ttl = range(0,1 )

await event.edit("çok komik")

animation_chars = [

" ÜWŞWÜQŞSÜSLEÜWKEĞQĞEKQİDQLĞDKQÜWLWĞSLWÜELQÜAŞQÜSŞQİEKĞELEĞQSLQÜSŞQÜAŞQÜAŞQÜAŞAİÜWLDĞQLSĞQLSĞQLSĞLW "

]

for i in animation_ttl:

    await asyncio.sleep(animation_interval)

    await event.edit(animation_chars[i % 1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants