Skip to content

Commit

Permalink
amharic updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Proteseus committed Nov 1, 2023
1 parent 70753c8 commit 562f8db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ptb20.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,12 @@ async def subscription_optin(update: Update, context: CallbackContext) -> int:
async def subscription_type(update: Update, context: CallbackContext) -> int:
"""Store subscription type"""
sub_type = update.effective_message.text
context.user_data['subscription_type'] = sub_type
sub_dict = {'በየሳምንቱ': 'Weekly', 'በየሁለት ሳምንቱ': 'Bi-Weekly', 'ወርሃዊ': 'Monthly'}
if context.user_data['lang'] == "Amharic":
context.user_data['subscription_type'] = sub_dict[sub_type]
elif context.user_data['lang'] == "English":
context.user_data['subscription_type'] = sub_type

logger.info("Subscription type: %s", sub_type)

if context.user_data['lang'] == "English":
Expand Down

0 comments on commit 562f8db

Please sign in to comment.