Closed Zidious closed 2 years ago
Make sendMessage and sendMessageWithPhoto take a typed object
sendMessage
sendMessageWithPhoto
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 ) ...
Make
sendMessage
andsendMessageWithPhoto
take a typed objectTo refactor:
sendMessage
sendMessageWithPhoto
Example in types: