Merge remote-tracking branch 'origin/send_log_adm'
This commit is contained in:
commit
b7820a1276
1 changed files with 12 additions and 1 deletions
|
@ -117,4 +117,15 @@ module.exports = (bot) => {
|
|||
await ctx.telegram.leaveChat(ctx.chat.id);
|
||||
}, '', Strings.kickingMyselfErr);
|
||||
});
|
||||
|
||||
bot.command('getfile', spamwatchMiddleware, async (ctx) => {
|
||||
const botFile = ctx.message.text.split(' ').slice(1).join(' ');
|
||||
handleAdminCommand(ctx, async () => {
|
||||
try{
|
||||
await ctx.replyWithDocument({source: botFile});
|
||||
}catch (error){
|
||||
console.log('ERROR');
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue