from lib.command import Command


class IdCommand(Command):
    name = 'id'
    description = 'Returns your user ID, or the ID of the current chat when -c or \'chat\' is passed as an argument.'

    def run(self, message, args):
        reply = 'Your Telegram ID is {0}'.format(message.from_user.id)
        if '-c' or 'chat' in args:
            reply = 'This chat\'s ID is {0}'.format(message.chat.id)
        self.reply(message, reply)

Add ID command