def call(self, chat, author, event_id): player = db.find_player_by_telegram_id(author) if player is None: telegram.send(chat, "Introduce yourself by providing your psn id: /r register <psn-id>") return db.leave_event(player, event_id) telegram.send(chat, "Left")
def call(self, chat, author, event_id): player = db.find_player_by_telegram_id(author) if player is None: telegram.send( chat, "Introduce yourself by providing your psn id: /r register <psn-id>" ) return db.leave_event(player, event_id) telegram.send(chat, "Left")
def delete(self, event_id): player = db.find_player(users.get_current_user().user_id()) db.leave_event(player, event_id) events_for(self, player)