# Copyright 2018 Bikbov Rafis <https://it-projects.info/team/bikbov>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from odoo import models, api


class Channel(models.Model):
    _inherit = 'mail.channel'

    @api.model
    def init_odoobot(self):
        channel = super(Channel, self).init_odooboot()
        channel.write({
            'name': 'Bot'
        })
        return channel

# Copyright 2018 Bikbov Rafis <https://it-projects.info/team/bikbov>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from odoo import models, api


class Channel(models.Model):
    _inherit = 'mail.channel'

    @api.model
    def init_odoobot(self):
        channel = super(Channel, self).init_odoobot()
        channel.write({
            'name': 'Bot'
        })
        return channel

Update mail_channel.py