Keyboards #11
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: thereadme/node-telegram-api#11
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
how to set a custom keyboard with this package?
we must define keyboard on every message that i recieve?
Hey, do you want to set a global keyboard? Something like this would do:
So you define a message with your global keyboard and for each response, you only change the message/other properties. If you don't like this approach, you can make something yourself like:
So now instead of creating messages using
new Message
, you usemsg()
which always sets your global keyboard, the second appraoch is more reliable, so I recommend it.agha dame shoma garm,hal dadi.packagetam alie!tabrik migam be tavanaiiiit
@Behnamgh: Khoshhalam be karet oomad 😁, mamnoon ✌️