Skip to content

Commit 0e21078

Browse files
committed
fix: avoid sending typing action for guest messages
1 parent a2808fc commit 0e21078

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/telegram_execution_context.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,10 @@ export default class TelegramExecutionContext {
390390
* @returns Promise with the API response
391391
*/
392392
async sendTyping() {
393+
if (this.update_type === 'guest_message') {
394+
return null;
395+
}
396+
393397
const params: SendChatActionParams = {
394398
chat_id: this.getChatId(),
395399
message_thread_id: this.getThreadId(),

0 commit comments

Comments
 (0)