Class: SpreeCmCommissioner::UserIdentityProvider

Inherits:
Base
  • Object
show all
Defined in:
app/models/spree_cm_commissioner/user_identity_provider.rb

Instance Method Summary collapse

Instance Method Details

#telegram_chat_idObject

sub is a telegram uid, which telegram considered a chatID if user have /started with bot.



20
21
22
23
24
# File 'app/models/spree_cm_commissioner/user_identity_provider.rb', line 20

def telegram_chat_id
  return sub if telegram?

  nil
end