Fix incorrect return type
[SonOfLokstallBot.git] / src / common.php
index 1a29ef3..272b868 100644 (file)
@@ -32,7 +32,7 @@ function getMessageSenderId(TelegramUpdate $update) : int {
     return $update->get('message')->get('from')->get('id');
 }
 
-function getMessageSenderDisplayName(TelegramUpdate $update) : int {
+function getMessageSenderDisplayName(TelegramUpdate $update) : string {
     return $update->get('message')->get('from')->get('first_name');
 }