mirror of
https://github.com/uditkarode/bing-chat-telegram.git
synced 2025-07-01 20:58:23 +00:00
Merge pull request #3 from JeelPatel231/dot-patch
add a "." check for considering prompts
This commit is contained in:
@ -23,8 +23,8 @@ async function main() {
|
||||
|
||||
const reply = ctx.message.reply_to_message;
|
||||
const message = ctx.message;
|
||||
if ("text" in reply && "text" in message) {
|
||||
ai(ctx, message.text);
|
||||
if ("text" in reply && "text" in message && message.text.startsWith('.')) {
|
||||
ai(ctx, message.text.splice(1).trim());
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user