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

Add DSL for actions #358

Closed
InsanusMokrassar opened this issue Apr 5, 2021 · 0 comments · Fixed by #357
Closed

Add DSL for actions #358

InsanusMokrassar opened this issue Apr 5, 2021 · 0 comments · Fixed by #357

Comments

@InsanusMokrassar
Copy link
Owner

Add DSL for actions like typing:

// val bot: TelegramBot = ...

bot.sendActionTyping()

bot.sendTextMessage(...)

Should be replaced with

// val bot: TelegramBot = ...

bot.withTypingAction(chatId) { // each 5 seconds TypingAction must be sent to telegram system
    sendTextMessage(...)
}
InsanusMokrassar added a commit that referenced this issue Apr 5, 2021
@InsanusMokrassar InsanusMokrassar linked a pull request Apr 5, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant