-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from beabee-communityrm/user-feedback/custom-k…
…eyboard feat(keyboard): Improvments from user feedback
- Loading branch information
Showing
43 changed files
with
1,418 additions
and
674 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,6 @@ | |
}, | ||
"imports": { | ||
"alosaur/": "https://deno.land/x/[email protected]/", | ||
"grammy/": "https://deno.land/x/[email protected]/", | ||
"grammy_types/": "https://deno.land/x/[email protected]/", | ||
"std/": "https://deno.land/[email protected]/", | ||
"typeorm": "npm:[email protected]", | ||
"sqlite3": "https://deno.land/x/[email protected]/mod.ts", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export const CHECKMARK = "✓"; | ||
export const DOT = "•"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
// Event related constants | ||
export const BUTTON_CALLBACK_PREFIX = "callback_query:data"; // Do not change this prefix | ||
export const INLINE_BUTTON_CALLBACK_PREFIX = "callback_query:data"; | ||
|
||
// Note: We choose short strings here because the length of these strings is limited in the Telegram bot API | ||
// and the slug is appended here.The max allowed size of a callback string is 64 bytes. | ||
export const BUTTON_CALLBACK_SHOW_CALLOUT = "1"; | ||
export const BUTTON_CALLBACK_CALLOUT_INTRO = "2"; | ||
export const BUTTON_CALLBACK_CALLOUT_PARTICIPATE = "3"; | ||
export const INLINE_BUTTON_CALLBACK_SHOW_CALLOUT = "1"; | ||
export const INLINE_BUTTON_CALLBACK_CALLOUT_INTRO = "2"; | ||
export const INLINE_BUTTON_CALLBACK_CALLOUT_PARTICIPATE = "3"; | ||
|
||
/** | ||
* Prefix for the callout response interaction events, used for skip and done inline buttons, perhaps useful for others. | ||
* @example | ||
* ``` | ||
* ${INLINE_BUTTON_CALLBACK_CALLOUT_RESPONSE}:skip | ||
* ${INLINE_BUTTON_CALLBACK_CALLOUT_RESPONSE}:done | ||
* ``` | ||
*/ | ||
export const INLINE_BUTTON_CALLBACK_CALLOUT_RESPONSE = "ibccr"; | ||
|
||
export const TRUTHY_MESSAGE_KEY = "yes"; | ||
export const FALSY_MESSAGE_KEY = "no"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from "./characters.ts"; | ||
export * from "./events.ts"; | ||
export * from "./html.ts"; | ||
export * from "./render.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,6 @@ | |
}, | ||
"imports": { | ||
"alosaur/": "https://deno.land/x/[email protected]/", | ||
"grammy/": "https://deno.land/x/[email protected]/", | ||
"grammy_types/": "https://deno.land/x/[email protected]/", | ||
"std/": "https://deno.land/[email protected]/", | ||
"typeorm": "npm:[email protected]", | ||
"sqlite3": "https://deno.land/x/[email protected]/mod.ts", | ||
|
Oops, something went wrong.