package Ġdev . o leg the lil fix . article flow . service Ċ Ċ import Ġdev . o leg the lil fix . article flow . service . operations . Bot Operation Ċ import Ġdev . o leg the lil fix . article flow . service . operations . Error Operation Ċ import Ġdev . o leg the lil fix . article flow . utils . parse Params Ċ import Ġorg . springframework . stereotype . Service Ċ import Ġorg . telegram . telegram bots . meta . api . objects . Update Ċ import Ġjava . util . stream . Collectors Ċ Ċ @ Service Ċ class ĠTelegram Operation Service ( telegram Operation Ġ: ĠList < Bot Operation >, Ġprivate Ġval Ġerror Operation : ĠError Operation ) Ġ{ ĊĠĠĠ Ġprivate Ġval Ġoperations : ĠMap < String , ĠBot Operation > Ġ= Ġtele gram Operation . stream (). collect ( Collectors . toMap ({ it . getName ()}, Ġ{ it })) ĊĊĠĠĠ Ġfun Ġexecute Operation ( update : ĠUpdate ): ĠList < String > Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġargs Ġ= Ġparse Params ( update ) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġoperations . get OrDefault ( args . command , Ġerror Operation ). execute ( args ) ĊĠĠĠ Ġ} Ċ } Ċ