Zidious / crypto-telegrambot

A cryptocurrency Telegram BOT
MIT License
0 stars 1 forks source link

Make `sendMessage` and `sendMessageWithPhoto` take a typed object #26

Closed Zidious closed 2 years ago

Zidious commented 2 years ago

Make sendMessage and sendMessageWithPhoto take a typed object

To refactor: sendMessage sendMessageWithPhoto

Example in types:

export interface IMessageParams {
  text: string;
  display_text_range?: number[];
  bot: Telegraf;
  ctx: any;
  tweetURL: string
}
const sendMessage = ( params: IMessageParams ) ...