Skip to content

Commit f6d9757

Browse files
committed
TelegramContent type casting
1 parent 0f3468a commit f6d9757

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/tests.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import type { Telegraf } from 'telegraf';
44
import type { Context } from 'telegraf';
55
import type { MessageManager } from './messageManager';
66
import type { TelegramService } from './service';
7+
import type { TelegramContent, } from './types';
8+
79

810
const TEST_IMAGE_URL =
911
'https://github.com/elizaOS/awesome-eliza/blob/main/assets/eliza-logo.jpg?raw=true';
@@ -143,7 +145,7 @@ export class TelegramTestSuite implements TestSuite {
143145
],
144146
};
145147

146-
await this.messageManager.sendMessageInChunks(mockContext as Context, messageContent);
148+
await this.messageManager.sendMessageInChunks(mockContext as Context, messageContent as TelegramContent);
147149

148150
logger.success('Message with image attachment sent successfully.');
149151
} catch (error) {

0 commit comments

Comments
 (0)